![ICP DAS USA PETL Series Скачать руководство пользователя страница 101](http://html1.mh-extra.com/html/icp-das-usa/petl-series/petl-series_user-manual_3886670101.webp)
Ethernet I/O Modules
ICP DAS CO., LTD.
PETL/tET/tPET DIO Series User Manual, Ver. 2.2, Aug. 2017, Page: 101
Example: Function 15 (0x0F), Write DOs
[Leading 6 bytes]
[Request]
Command:
01 02 00 00 00 08
01 0F 01 0B 00 02 01 03
[Leading 6 bytes]
[Response]
Response:
01 02 00 00 00 06
01 0F 01 0B 00 02
Sets the safe value (DO0 – DO1)
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 08
(Number of bytes remaining in this frame)
[Request]
Byte 00
01
(Net ID)
Byte 01
0F
(Function Code)
Bytes 02-03
01 0B
(Starting DO Address)
Bytes 04-05
00 02
(Number of Output Channels)
Byte 06
01
(Byte Count)
Byte 07
03
(Output Value)
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
0F
(Function Code)
Bytes 02-03
01 0B
(Starting DO Address)
Bytes 04-05
00 02
(Number of Input Channels)