Download Print this page

Xinje XD Series User Manual page 263

Hide thumbs Also See for XD Series:

Advertisement

2) Operands
Operands
Function
S1
Specify the remote communication station no.
S2
Specify the remote coil start address
S3
Specify the coil quantity
D1
Specify the local coil start address
D2
Specify the serial port no.
3) Suitable soft components
Operands
D F
T
C
D
D
D
S1
● ●
S2
● ●
S3
● ●
D1
D2
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.
Function
S1·
X0
COLR
K1
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.
Word soft elements
System
Constant
D
D
D
D
X
Y
M
S
S2·
S3·
D1·
D2·
K500
K3
M1
K2
262
Type
16 bits, BIN
16 bits, BIN
16 bits, BIN
bits
16 bits, BIN
Bit soft elements
Module
K/H
I
Q
X Y M S T C
D
D
● ● ● ● ● ●
K
System
Dn.
m

Advertisement

loading