15. Communication Protocol
15.2.2 ProtocoleCommand CodeDescriptions
(1) Read Coils (0x01)
Reads the values of sinlge bit and continuous bit block
Request
Function code
Starting Address
Quantity of Coils
1Byte
2Byte
2Bytes
Request OK
Function code
Byte count
Coil Status
1Byte
1Byte
n Bytes
Response not OK
Error code
Exception code
1Byte
1Byte
0x01
0x0000 to 0xFFFF
1 to 2000 (0x7D0)
0x01
N*
n = N or N+1
*N = Quantity of Outputs/8
0x81
0x01 ~ 0x04
Command code : Read Coils can read status of contacts of drive status input and output1,2.
The corresponding address of drive status input and output 1,2 are as below.
Drive status input 1, 2 communication address
Communication
address
10진수 16진수
0
0x0000
1
0x0001
2
0x0002
3
0x0003
4
0x0004
5
0x0005
6
0x0006
7
0x0007
Output
contacts
POT
NOT
HOME
STOP
PCON
GAIN2
P_CL
N_CL
Accessi
bility
RW
RW
RW
RW
RW
RW
RW
RW
Communication
address
10진수 16 진수
16
0x0016
17
0x0017
18
0x0018
19
0x0019
20
0x0020
21
0x0021
22
0x0022
23
0x0023
Output
contacts
Accessi
bility
START
RW
PAUSE
RW
REGT
RW
HSTART
RW
ISEL0
RW
ISEL1
RW
ISEL2
RW
ISEL3
RW
15-5