![Acrel ARTU Скачать руководство пользователя страница 16](http://html.mh-extra.com/html/acrel/artu/artu_installation-and-operation-instructions_3046842016.webp)
13
0005H
DO6
W
05
0XFF00=ON
,
0X0000=OFF
0006H
DO7
W
05
0XFF00=ON
,
0X0000=OFF
0007H
DO8
W
05
0XFF00=ON
,
0X0000=OFF
Reading DI state :(allow operation port COMM1)
Read DI status with MODBUS command 02.
Among which 1=ON, 0=OFF
Data ADD
Data content
Data types
Read/Write
Command
word
Numerical range
0000H
DI1
BIT
R
02
1=ON,0=OFF
0001H
DI2
BIT
R
02
1=ON,0=OFF
0002H
DI3
BIT
R
02
1=ON,0=OFF
0003H
DI4
BIT
R
02
1=ON,0=OFF
0004H
DI5
BIT
R
02
1=ON,0=OFF
0005H
DI6
BIT
R
02
1=ON,0=OFF
0006H
DI7
BIT
R
02
1=ON,0=OFF
0007H
DI8
BIT
R
02
1=ON,0=OFF
5.2.5
Communication Example
Example 1: Read the current switching state of the remote signaling unit with meter address 2
Send: 0x02,0x03,0x00,0x0C,0x00,0x01,0x44,0x3A
Return: 0x02,0x03,0x02,0x03,0x00,0xFC,0xB4
Description: the first and second channel switches of the remote signaling unit with instrument address 2 are
closed.
Example 2: Read 1 to 5 switch states
Send: 0x01,0x02,0x00,0x00,0x00,0x05,0xB8,0x09
Return: 0x01,0x02,0x01,0x10,0xA0,0x44
Description: 0x10 is converted into a binary number of 00010000, that is, the fifth switch is in the closed state,
the others are in the open state.
Example 3: Read relay state 1 to 5
Send: 0x01,0x01,0x00,0x00,0x00,0x05,0xFC,0x09
Return: 0x01,0x01,0x01,0x0C,0x51,0x8D
Description: 0C is converted into binary number of 01100, that is, the relay in the 3rd and 4th channels is in
closed state, the other 3 channels are in open state, and the high 3 bits are filled with 0, which does not represent
any meaning.
Example 4: Closing the first relay
Send: 0x01,0x05,0x00,0x00,0xFF,0x00,0x8C,0x3A
Return: 0x01,0x05,0x00,0x00,0xFF,0x00,0x8C,0x3A
Example 5: Set the relay of the first line as the pulse output of 3 seconds, that is, the communication control will
automatically disconnect after 3 seconds of closure
Send: 0x01,0x10,0x00,0x14,0x00,0x01,0x02,0x0B,0xB8,0xA2,0x06
Return: 0x01,0x10,0x00,0x14,0x00,0x01,0x41,0xCD