![background image](http://html1.mh-extra.com/html/icp-das-usa/petl-series/petl-series_user-manual_3886670103.webp)
Ethernet I/O Modules
ICP DAS CO., LTD.
PETL/tET/tPET DIO Series User Manual, Ver. 2.2, Aug. 2017, Page: 103
Example: Function 16 (0x10), Write AOs
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 0B
01 10 00 32 00 01 02 03 E8 00 00
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 06
01 10 00 32 00 01
Sets the Preset value for the digital counter
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 0B (Number of bytes remaining in this frame)
[Request]
Byte 00
01 (Net ID)
Byte 01
10 (Function Code)
Bytes 02-03
00 32 (Starting AO Address)
Bytes 04-05
00 01 (Number of 16-bit Registers)
Byte 06
02 (Byte Count)
Bytes 07-10
03 E8 00 00 (Preset Value for the digital counter)
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
10 (Function Code)
Bytes 02-03
00 32 (Starting AO address)
Bytes 04-05
00 01 (Word Count)