IFM AL1327 handleiding

125 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 67 van 125
IO-Link master with EtherNet/IP interface AL1327
67
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 AL1327, 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

MerkIFM
ModelAL1327
CategorieNiet gecategoriseerd
TaalNederlands
Grootte10357 MB