![ICP DAS USA PETL Series Скачать руководство пользователя страница 93](http://html1.mh-extra.com/html/icp-das-usa/petl-series/petl-series_user-manual_3886670093.webp)
Ethernet I/O Modules
ICP DAS CO., LTD.
PETL/tET/tPET DIO Series User Manual, Ver. 2.2, Aug. 2017, Page: 93
Example: Function 03 (0x03), Read AOs
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 06
01 03 01 03 00 02
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 07
01 03 0450 32 41 32
Reads the name of the module for the tPET-P2A2
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
03
(Function Code)
Bytes 02-03
01 03
(Starting AO Address)
Bytes 04-05
00 02
(Number of Points)
Response:
[Leading 6 bytes]
Bytes 00-03
01 02 00 00
(Message Number)
Bytes 04-05
00 07
(Number of bytes remaining in this frame)
[Response]
Byte 00
01
(Net ID)
Byte 01
03
(Function Code)
Byte 02
04
(Byte Count of the Response)
Bytes 03-04
50 32
(The low word for the module name: The ASCII code
“0x50, 0x32” represents the characters “P” and “2”)
Byte 05-06
41 32
(The high word for the module name: The ASCII code
“0x41, 0x32” represents the characters “A” and “2”)