EasyManua.ls Logo

IFM AL1940 - Example: Subscribe to Event

IFM AL1940
110 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
44
ifm Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940) 05 / 2018
Configuration IoT Core
>
Example: Subscribe to event
17946
Task: The current values of the following parameters should be sent regularly to a network server with
IP address 192.168.0.4: product name of the IO-Link device at IO-Link port X02, cyclic input data of
the IO-Link device at IO-Link port X02 and the operating temperature of the IO-Link master.
Solution: Subscribe to the required data using the subscribe service.
Request object:
{
"code":80,
"cid":4711,
"adr":"/timer[1]/counter/datachanged/subscribe",
"data":{"callback":"http://192.168.0.44/temp",
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/productname",
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/temperature"]
}
}
Additionally the interval of the timer[1] has to be set to a value between 500 ms and 2147483647 ms.
Request object:
{
"code":10,
"cid":4712,
"adr":"/timer[1]/interval/setdata",
"data":{"newvalue":500}
}
Response object
{
"cid":4712,
"code":200
}

Table of Contents

Related product manuals