86
ifm
Device Manual IO-Link Master with Modbus interface CabinetLine 8 Ports IP 20 (AL1940)
05 / 2018
Appendix
Modbus
>
Response channel
6916
Register
Contents
Bits 8-15
Bits 0-7
0
Port No.
1
Index
2
Subindex
3
Command
User ID
4
Result
5
Data Length (Number of Bytes)
6
Data (byte 1) / Error Code
Data (byte 0) / Error
...
...
...
21
Data (byte 31)
Data (byte 30)
Legend:
[Port No.]
Number of the IO-Link port
1 Word
0x0001
Port X01
0x0002
Port X02
...
...
0x0008
Port X08
[Index]
Index of the IO-Link object
1 Word
0x0000...0xFFFF
[Subindex]
Subindex of the IO-Link object
1 Word
0x0000...0xFFFF
[Command]
Command number
1 byte
0x01
Read
0x02
Write
[User ID]
reflected User ID from request channel
1 byte
0x00...0xFF
[Result]
Status of the command processing
1 Word
0x0000
OK
0x000F
OK, but data length too long
(only with [Command] = 0x02)
0x00FF
Error
[Data Length
(Number of
Bytes)]
Number of bytes that contain relevant user data
1 Word
0x0000
0 bytes
...
....
0x0020
32 bytes
[Error]
Error ID
1 byte
→
Error codes
(
[Error Code]
additional error codes
1 byte
depends on the IO-Link device
[Data (Byte n)]
User data (byte n)
n bytes
per byte: 0x00...0xFF