Ethernet I/O Modules
ICP DAS CO., LTD.
PETL/tET/tPET DIO Series User Manual, Ver. 2.2, Aug. 2017, Page: 91
Example: Function 02 (0x02), Read DIs
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 06
01 02 00 00 00 02
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 04
01 02 01 03
Reads the digital input value
A description of the command and response is as follows:
Command:
[Leading 6 bytes]
Bytes 00-03
01 02 00 00
(Message Number)
Bytes 04-05
00 06
(Number of bytes remaining in this frame)
[Request]
Byte 00
01
(Net ID)
Byte 01
02
(Function Code)
Bytes 02-03
00 00
(Starting DI Address)
Bytes 04-05
00 02
(Number of Points)
Response:
[Leading 6 bytes]
Bytes 00-03
01 02 00 00
(Message Number)
Bytes 04-05
00 04
(Number of bytes remaining in this frame)
[Response]
Byte 00
01
(Net ID)
Byte 01
02
(Function Code)
Byte 02
01
(Byte Count of the Response)
Byte 03
03
(Value for DI1 to DI0)