Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 80 Operands: S : Start device for the data to be transmitted m : Length of data to be transmitted D : Start device for receiving data n : Length of data to be received Explanations: 1. Range of m : 0 ~ 256 2. Range of n : 0 ~ 256 3. See the specifications of each model for their range of use. 4. ES series MPU does not support E, F index register modification. 5. The instruction RS supports COM1 (RS-232), COM2 (RS-485), and COM3 (a communication card) in a DVP-EH3/SV2 series PLC. (COM1 only supports DVP-EH3/SV2 series PLCs. COM3 in DVP-EH3 series PLCs 6.

This instruction is a handy instruction exclusively for MPU to use RS-485 serial communication interface. The is only applicable to the communication cards DVP-F232 and DVP-F485.) user has to pre-store word data in S data register, set up data length m and the data receiving register D and received data length n . If E, F index registers are used to modify S and D , the user cannot change the set values of E and F when the instruction is being executed; otherwise errors may cause in data writing or reading. 7. Designate m as K0 if you do not need to send data. Designate n as K0 if you do not need to receive data. 8.

There is no limitation on the times of using this instruction in the program, but only one instruction is allowed to be executed at a time. 9. During the execution of RS instruction, changing the data to be transmitted will be invalid. 10. If the peripheral devices, e.g. AC motor drive, are equipped with RS-485 serial communication and its communication format is open, you can use RS instruction to design the program for the data transmission between PLC and the peripheral device. 11. If the communication format of the peripheral device is Modbus, DVP series PLC offers handy communication instructions API 100 MODRD, API 101 MODWR, and API 150 MODRW, to work with the device.

See explanations of the instructions in this application manual. 12. 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. DVP-PLC APPLICATION MANUAL 7-97 Mnemonic Operands Function RS Serial Communication Instruction 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 * * * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS ES EX SS SA SX SC EH SV SV2