IFM AL1921 handleiding
Handleiding
Je bekijkt pagina 62 van 135

AL1921 IO-Link master with EtherNet/IP interface
62
{
"code":"request",
"cid": 1,
"adr":"/timer[1]/counter/datachanged/subscribe",
"callback":"tcp://192.168.50.59:1883/topic",
"codec":"csv0",
"data":{
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/temperature"]
}
}
u Set the interval of the timer to 2 seconds:
• Request:
{
"code":"request",
"cid":4712,
"adr":"/timer[1]/interval/setdata",
"data":{"newvalue":2000}
}
The cyclically sent notification has the following structure:
/timer[1]/counter/datachanged,6317,200,1,200,39,200,03B0
9.2.25.6 Example: Unsubscribing from a notification
Task: The existing subscription Example: Subscribing to notifications (Ò/60) is to be deleted.
Solution: Use the unsubscribe service to delete the subscription. For this purpose, the value of the
parameter "callback" in the request must be equal to the value of the existing subscription.
• Request:
{
"code":"request",
"cid":4711,
"adr":"/timer[1]/counter/datachanged/unsubscribe",
"data":{
"callback":"http://192.168.0.4:80/temp"
}
}
9.2.25.7 Example: checking a notification
Task: Display information about the existing subscription Example: Subscribing to notifications
(Ò/60).
Solution: Use the service getsubscriptioninfo and the parameter values cid, "adr" and "callback" of the
existing subscription to retrieve the information.
• 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 |







