IO-Link Master with IoT Interface DataLine 4 Ports IP 65 / IP 66 / IP 67
42
>
9.2.6
Configure IO-Link devices
52249
The ifm IoT Core supports the configuration of the connected IO-Link devices. A parameter is
accessed via IO-Link index and subindex (
→ IO Device Description (IODD) of the device).
Substructure:
iolinkmaster/port[n]/iolinkdevice
(n = 1...4)
Applicable services:
Service
Description
../iolreadacyclic
Read a parameter of an IO-Link device (acyclic)
../iolwriteacyclic
Write a parameter of an IO-Link device (acyclic)
>
Example: Read the parameter value of an IO-Link device
33847
Task:
Read the serial number of the ifm temperature sensor TN2531 at IO-Link port X02
Solution:
Read the serial number with the
iolreadacyclic
service from the IO-Link device (index:
21, subindex: 0)
Request:
{
"code":"request",
"cid":4711,
"adr":"/iolinkmaster/port[2]/iolinkdevice/iolreadacyclic",
"data":{"index":21,"subindex":0}
}
Return:
{
"cid":4711,
"data":{"value":"4730323134323830373130"},
"code":200
}
The returned value is given in hexadecimal format. The conversion of the HEX value in a STRING
value is: G0214280710