
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
204 -
For example: function 05 (0x05), Write DO
Sets the DO2 to ON of PPDS-721D-MTCP
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 06
01 05 00 02 FF 00
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 06
01 05 00 02 FF 00
Descriptions as follows:
Command:
[Leading 6 bytes]
Byte 00-03:
01 02 00 00 (Message number)
Byte 04-05:
00 06 (Number of remaining bytes in this frame)
[Request]
Byte 00:
01 (Net ID)
Byte 01:
05 (Function Code)
Byte 02-03:
00 02 (DO address)
Byte 04-05:
FF 00 (Set the output to ON)
Response:
[Leading 6 bytes]
Byte 00-03:
01 02 00 00 (Message number)
Byte 04-05:
00 06 (Number of remaining bytes in this frame)
[Response]
Byte 00:
01 (Net ID)
Byte 01:
05 (Function Code)
Byte 02-03:
00 02 (DO address)
Byte 04-05:
FF 00 (Set the output to ON)