IFM AL1921 handleiding
Handleiding
Je bekijkt pagina 61 van 135

IO-Link master with EtherNet/IP interface AL1921
61
{
"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"}
}
}
}
9.2.25.4 Example: Changing a notification
Task: The existing sbscription is to be changed (Ò Example: Subscribing to notifications/60).
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"]
}
}
9.2.25.5 Example: Subscribing to a notification in CSV format
Task: Every 2 seconds, the current values of the following parameters are to be sent to a network
server with the IP address 192.168.0.4
• Cyclic IO-Link input data of the IO-Link device at port 2
• Operating temperature of the IO-Link master.
The data should be transmitted in CSV format (comma separator).
Solution:
u Use the subscribe service to subscribe to the required data and set the output format to "csv0".
Data in CSV format can only be sent via TCP connection.
• Request:
Bekijk gratis de handleiding van IFM AL1921, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
| Merk | IFM |
| Model | AL1921 |
| Categorie | Niet gecategoriseerd |
| Taal | Nederlands |
| Grootte | 11184 MB |







