ET-2200 Series Ethernet I/O Modules
Copyright © 2020 ICP DAS CO., Ltd. All Rights Reserved.
-119 -
Example: Function 05 (0x05), WriteDO
Sets channel DO1 to ON
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 06
01 05 00 01 FF 00
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 06
01 05 00 01 FF 00
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
05
(Function Code)
Byte 02-03
0001
(DO Address)
Byte 04-05
FF 00
(Setsthe output to ON)
Response:
[Leading 6 bytes]
Bytes 00-03
01 02 00 00
(Message Number)
Bytes 04-05
00 06
(Number of bytes remaining in this frame)
[Response]
Byte 00
01
(Net ID)
Byte 01
05
(Function Code)
Byte 02-03
00 01
(DO Address)
Byte 04-05
FF 00
(Indicates that the DO has been set to ON)