IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
54
>
9.2.12
IO-Link ports: Indicating port events
59796
Substructure: iolinkmaster/port[n] (n = 1...4).
Available data points:
Name
Description
Access
../portevent
Indication of the following events at IO-Link port n:
▪
plugging IO-Link device
▪
pulling IO-Link device
▪
changing operating mode of IO-Link port
r
r ... read only
Subscribing events:
→
Subscribing to notifications
(
>
9.2.13
IO-Link devices: Accessing parameters
59800
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
>