DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 80 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. 9. Please refer to the points to note below for more information about the flags and the special data registers which are related to RS-485 communication instructions. 3-220 Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 SX2 RS Serial Communication SE 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 S * m * * * D * n * * * 16-bit 32-bit SA2 SA2 SX2 SA2 SS2 SX2 ES2/EX2 SS2 ES2/EX2 SS2 SX2 SE SE SE