IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
61
"callback":"http://192.168.0.4:80/temp",
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/temperature"]
}
}
In addition, the time interval of the timer[1] must be set to a value between 500 ms and
2147483647 ms.
•
Request:
{
"code":"request",
"cid":4712,
"adr":"/timer[1]/interval/setdata",
"data":{"newvalue":500}
}
•
Response:
{
"cid":4712,
"code":200
}
•
Notification (JSON)
{
"code":"event",
"cid":4711,
"adr":"",
"data":{
"eventno":"6317",
"srcurl":"/timer[1]/counter/datachanged",
"payload":{
"/timer[1]/counter":{"code":200,"data":1},
"/processdatamaster/temperature":{"code":200,"data":39},
"/iolinkmaster/port[2]/iolinkdevice/pdin":{"code":200,"data":"03B0"}}}
}
>
Example: Changing a subscription
61161
Task:
The existing subscription (
Example: Subscribing to notifications
(
)) is to be changed.
Instead of the temperature of the IO-Link master, the operating voltage applied is to be transmitted.
Solution:
Overwrite the existing subscription. For this purpose, the parameter values for "cid" and
"callback" in the request must be the same as those of the existing subscription.
•
Request:
{
"code":"request",
"cid":4711,
"adr":"/timer[1]/counter/datachanged/subscribe",
"data":{
"callback":"http://192.168.0.4:80/temp",
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/voltage"]}
}
>