Read from the IO-Link Device
This example uses the Raw_Get (0x32) service in the IO-Link Service Parameter object.
To read parameters from the IO-Link device, complete these steps.
- Create a message instruction and the message tag.
- Create the associated destination tag of the correct data types for the IO-Link data. You can also use an array.
- Open the Message Configuration dialog and enter the following information in the Configuration tab.
- Service Type = Custom
- Service Code = 0x32 (hex)
- Class = 0x10B (hex)
- Instance = IO-Link index number
For IO-Link index 0, the instance is represented as 0x10000, since CIP Instance 0 is used to address class attribute.- Attribute = 0 or the IO-Link subindex number (hex)
- Source Element = Leave blank
- Source Length = 0
- Destination Element = The tag to hold the subindex data
- On the Communication tab, select the path to the IO-Link device.
- Select OK. The message is now configured and ready to use.If any element of the return data is larger than one byte, you must reverse the byte order of the element.
Provide Feedback