262
2) Operands
Specify the remote communication station no.
Specify the remote coil start address
Specify the coil quantity
Specify the local coil start address
Specify the serial port no.
3) Suitable soft components
Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM. M includes M, HM, SM; S includes S and HS; T includes T and
HT; C includes C and HC.
COLR K1 K500 K3 M1
X0
K2
S1· S2· S3· D1· D2·
Read the coil, Modbus function code 01H.
Serial port: K0~K5.K0: Port0 (RS232), K1: Port1(RS232), K2: Port2(RS485), K3:
Port3(left extension port), K4: Port4(above extension port 1), K5: Port5(above
extension port 2).
Operands S3: K1~K2000, the max coil quantity is 2000.
When X0 is ON, COLR instruction is executed. When the instruction starts to execute,
the Modbus read and write flag SM160 (serial port 2) is set on; when the execution is
completed, SM160 (serial port 2) is set OFF. If a communication error occurs and the
number of resend is set, it will be automatically resend. Users can check the relevant
registers to determine the cause of the error. The execution result of Modbus read and
write instructions of serial port 2 is in SD160.
Input coil read [INPR]
1)Summary
Read the specified station’s input coil status to local device.
tudonghoatoancau.com