IFM AL1327 handleiding

125 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 59 van 125
IO-Link master with EtherNet/IP interface AL1327
59
Name Description
../subscribe Subscribe to notifications
../unsubscribe Unsubscribe from notifications
../getsubscriptioninfo Display information about notifications
9.2.25.3 Example: Subscribing to notifications
Task: Every 0.5 seconds, the current values of the following parameters are to be sent regularly to a
network server with the IP address 192.168.0.4/temp.
Cyclic IO-Link input data of the IO-Link device at IO-Link port 2
Operating temperature of the IO-Link master.
The following options are additionally available:
via WebSockets (ws://): Example: Using WebSockets (Ò/67)
via MQTT (mqtt://): Example: Configure and activate MQTT command channel (Ò/64)
Solution:
u Subscribe to the required data using the subscribe service.
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/temperature"]
}
}
u Set the timer to 500 ms.
Request:
{
"code":"request",
"cid":4712,
"adr":"/timer[1]/interval/setdata",
"data":{
"newvalue":500
}
}
Response:
{
"cid":4712,
"code":200
}
Notification (Format: JSON)

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