Single Coil Write [Colw] - Xinje XD Series User Manual

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS. M includes M, HM, SM; S includes S
and HS; T includes T and HT; C includes C and HC.
Function
Read input coil, Modbus function code is 02H.
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).
Operand S3: K1~K2000, max input coil number is 2008.
When X0 is ON, INPR instruction is executed, Modbus read write flag SM160(serial
port2) is set ON, SM160 is set OFF when the execution is completed. 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.
This instruction cannot read XINJE PLC input coil.

Single Coil Write [COLW]

Summary
Write local device specified coil to remote station no's coil.
Single Coil write [COLW]
16 bits
COLW
instruction
Execution
Normally ON/OFF, edge
Condition
triggering
Hardware
-
Requirement
Operands
Operands
Function
D1
Specify remote communication station number
D2
Specify remote coil start address
S1
Specify start address of local coil
S2
Specify serial port number
Suitable soft components
Operands
Word
D*
D1
D2
S2
32 bits
instruction
Suitable
Models
Software
Requirement
System
241
FD
TD*
CD*
DX
DY
-
XD, XL
-
Type
16 bits,BIN
16 bits,BIN
bit
16 bits,BIN
Constant
Module
DM*
DS*
K /H
ID
QD
K

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents