DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
API
Mnemonic
Operands Function
80 RS
Serial Communication
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
RS: 9 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S: Start device for data to be sent m: Length of data to be sent (m = 0~255) D: Start device for
data to be received n: Length of data to be received (n = 0~255)
Explanations:
1. RS instruction is used for data transmitting and receiving between PLC and external/peripheral
equipment (AC motor drive, etc.). Users have to pre-store word data in registers starting from
S, set up data length m, specify the data receiving register D and the receiving data length n. If
S and S are modified by an E device or an F device, the setting value of the E device or the F
device can no be changed when the instruction is executed, otherwise a reading error or w
writing error will occur.
2. RS instruction supports communication on COM1 (RS-232), COM2 (RS-485) and COM3
(RS-485). COM3 is only applicable to DVP-ES2/EX2/12SA2/12SE, and is not applicable to
DVP-ES2-C.
3. Designate m as K0 if data sending is not required. Designate n as K0 if data receiving is not
required.
4. Modifying the communication data during the execution of RS instruction is invalid.
5. There is no limitation on times of using this instruction, however, only 1 instruction can be
executed on one communication port at the same time..
6. If a peripheral device is equipped with RS-485 communication, and the communication format
of the device is open, the PLC and the device can transmit data by means of the instruction
RS.
7. If the communication format of the peripheral device is Modbus, DVP series PLC offers handy
communication instructions MODRD, MODWR, and MODRW, to work with the device.
8. If a Delta VFD series AC motor drive is used, the PLC provides the convenience instructions
API 102 FWD, API 103 REV, API 104 STOP, API 105 RDST, and API 106 RSTEF. If a Delta
ASD series servo drive is used, the PLC provides the convenience instruction API 206
ASDRW. If a Delta DMV series product is used, the PLC provides the convenience instruction
API 295 DMVRW.