IO-Link Master with IoT Interface DataLine 8 Ports IP 65 / IP 66 / IP 67
43
>
Example: Change the parameter value of an IO-Link device
33844
Task:
Set the output configuration OUT1 of the ifm temperature sensor TN2531 at IO-Link port X02 to
the value "Hnc / hysteresis function, normally closed".
Solution:
Change the parameter [ou1] of the sensor to the value 4 using the iolwriteacyclicdata
service. The parameter can be accessed via IO-Link index 580, subindex 0 (
→ IO-Link description of
the sensor).
Request:
{
"code":"request",
"cid":4711,
"adr":"/iolinkmaster/port[2]/iolinkdevice/iolwriteacyclic",
"data":{"index":580,"subindex":0,"value":"34"}
}
The value has to be given in hexadecimal format. The conversion of the STRING value in a HEX value
is: 34.
Response:
{
"cid":4711,
"code":200
}