IFM AL1921 handleiding
Handleiding
Je bekijkt pagina 68 van 135

AL1921 IO-Link master with EtherNet/IP interface
68
u Send subscribe/unsubscribe requests with "callback” parameter ("ws:///myTopic").
w ifm IoT-Core sends notifications about existing WebSocket connections to the myTopic topic.
Example: Using WebSockets
Task: The current values of the following parameters are to be sent regularly to the myTopic data sink
via an existing WebSocket connection:
• Product name of the IO-Link device at IO-Link port 2
• Cyclic IO-Link input data of the IO-Link device at IO-Link port 2
• Operating temperature of the IO-Link master.
Solution: Subscribe to the required data using the subscribe service.
• Request:
{
"code":"request",
"cid":4711,
"adr":"/timer[1]/counter/datachanged/subscribe",
"data":{
"callback":"ws:///myTopic",
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/productname",
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/temperature"]
}
}
If the notifications are to be transmitted via the existing WebSocket connection, but without a special
data sink, the callback parameter is not required.
• Request:
{
"code":"request",
"cid":4711,
"adr":"/timer[1]/counter/datachanged/subscribe",
"data":{
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/productname",
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/temperature"]
}
}
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 |







