
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
202 -
For example: Function 02 (0x02), Read DIs
Reads digital input value of PPDS-721D-MTCP:
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 06
01 02 00 00 00 06
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 04
01 02 01 3B
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:
02 (Function Code)
Byte 02-03:
00 00 (Starting DI address)
Byte 04-05:
00 06 (Number of points)
Response:
[Leading 6 bytes]
Byte 00-03:
01 02 00 00 (Message number)
Byte 04-05:
00 04 (Number of remaining bytes in this frame)
[Response]
Byte 00:
01 (Net ID)
Byte 01:
02 (Function Code)
Byte 02:
01 (Byte count of response)
Byte 04:
3B (DI5~DI0 Value)