
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
206 -
For example: function 0F (0x0F), Write DOs
Sets DO0 ~ DO6 to NO of PPDS-721D-MTCP
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 08
01 0F 00 00 00 07 01 7F
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 06
01 0F 00 00 00 07
Descriptions as follows:
Command:
[Leading 6 bytes]
Byte 00-03:
01 02 00 00 (Message number)
Byte 04-05:
00 08 (Number of remaining bytes in this frame)
[Request]
Byte 00:
01 (Net ID)
Byte 01:
0F (Function Code)
Byte 02-03:
00 00 (Starting DO address)
Byte 04-05:
00 07 (Number of output channels)
Byte 06:
01 (Byte count)
Byte 07:
7F (Output value)
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:
0F (Function Code)
Byte 02-03:
00 00 (Starting DO address)
Byte 04-05:
00 07 (Number of output channels)