
Rockwell Automation Publication 871FM-UM002A-EN-P - April 2017
79
Appendix
D
Explicit Messaging Examples
Although the parameters are configured within the Add-on Profile (AOP), it is
possible to read and write parameters via Explicit Messaging. Use the device
index table to establish the index number and its properties.
details of Service Codes that are used in Explicit Messaging, these
codes along with the Index and Subindex numbers are used in the
configuration of the MSG instruction.
This appendix also gives index read/write examples (
and
) and
sub index read/write examples (
).
Service Codes
Table 6 - Service Codes
Service Code Hex
(Dec)
Need in Implementation
Service Name
Description
Class
Instance
4b (75)
Required
Required
Read Subindex
Read a parameter value from the IO-Link device
4c (76)
—
Required
Write Subindex
Write a parameter value from the IO-Link device
4e (78)
Required
Required
Read Index
Read an entire index (all parameters within an index) from the IO-Link
device
4d (77)
—
Required
Write Index
Writes an entire index (all parameters within an index) from the IO-Link
device
Table 7 - Ladder Logic Rules
(1)
Instruction
Message Configuration
Array[0]
Array[1]
Source Length [bytes]
Service Code
Attribute ID
Write
4IOL
Channel#
value
4IOL
index value 1
4e
0
8IOL
Channel#
value
8IOL
index value 1
4e
0
Instruction
Message Configuration
Array[0]
Array[1]
Source Length [bytes]
Service Code
Attribute ID
Read
4IOL
Channel#
4IOL
1
4d
0
8IOL
Channel#
8IOL
1
4d
0
(1) For more information about Service Codes, see Appendix A.