100
ifm
Operating Instructions IO-Link Master with EtherNet/IP interface StandardLine 8 Ports IP 65 / IP 67 (AL1122)
2017-05-31
Appendix
>
Example: reading the parameter value of anIO-Link device
23110
Task:
reading the value of the parameter X of an IO-Link device
IO-Link device in the port: 0x02
Parameter X in the object directory of an IO-Link device: Index: 90, sub-index 3
From this, the following results for the configuration of the EtherNet/IP command Message (MSG):
CIP format
Data type MSG Config
Description
Class ID
UINT
0x80
IO-Link acyclic access
Instance ID
UINT
0x01
IO-Link master
Attributes
USINT
0x02
Port number
Service code ID
USINT
0x4B
Service "ISDU_Read"
User specific service data
UINT
0x005A
IO-Link ISDU object index
USINT
0x03
IO-Link ISDU object sub-index
After successful execution of the request, the response area has the following content:
CIP format
Data type MSG Config
Description
Class ID
UINT
0x80
Object class "IO-Link Requests"
Instance ID
UINT
0x01
IO-Link master
Attributes
USINT
0x02
Port number
Service code ID
USINT
0x4B
Service "ISDU_Read"
Error code
USINT
0x00
Request processed successfully
Extended error code
USINT
0x00
--
User specific service data
USINT
e.g. 0x12
Parameter value that has been read (byte 0)
USINT
e.g. 0x34
Parameter value that has been read (byte 1)
If an error occurs while the request is executed, the response area has the following content:
CIP format
Data type MSG Config
Description
Class ID
UINT
0x80
Object class "IO-Link Requests"
Instance ID
UINT
0x01
IO-Link master
Attributes
USINT
0x02
Port number
Service code ID
USINT
0x4B
Service "ISDU_Read"
Error code
USINT
9x1E
Error code: Embedded service error
Extended error code
USINT
0x00
--
User specific service data
USINT
e.g. 0x04
IO-Link error code: wrong parameter
USINT
e.g. 0x27
Additional code