Mitsubishi — Chapter 8 Application Instructions API 100-149

9 Application Instructions API 150-199 150 Operands: S 1 : Address of communication device S 2 : Function code S 3 : Device address of data to be read/written S : Register for storing read/written data (source or destination) n : Length of read/written data Explanations: 1. The content of S 2 shall only be: K2(H02), K3(H03), K4(H04), K5(H05), K6(H06), K15(H0F), K16(H10), K23(H17). 2. ES/EX/SS V.4.9 (and above) support the continuous execution instruction (MODRW). Other versions do not 3. ES/EX/SS series MPU does not support E, F index register modification. support this instruction. 4. The instruction MODRW supports COM1 (RS-232), COM2 (RS-485), and COM3 (a communication card).

(COM1 only supports DVP-EH3/SV2 series PLCs. COM3 in DVP-EH3 series PLCs is only applicable to the communication cards DVP-F232 and DVP-F485.) 5. Flags: M1120 ~ M1131, M1140 ~ M1143. See remarks for more details. 6. S 1 : Address of communication device; S 2 : Function code; S 3 , S , n : Their functions vary with the function code used. (Please refer to the description below for more information.) 7. S 1 : must be in the range of K0 to K254. If the function code K2/K3/K4/K23 is used, the address specified can not be K0. 8. S 2 : Funcation code. Only these function codes are available currently; other function codes are still not executable. See program examples for more information.

DVP-PLC Application Manual 9-1 Mnemonic Operands Function MODRW Read/Write MODBUS Data Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F MODRW:

11 steps S 1 * * * S 2 * * * S 3 * * * S * 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 Code Function Applicable models H02 Reading several bit devices SA/SX V1.8, SC V1.6 and EH2/SV/EH3/SV2 V V1.2 and later versions H03 Reading several word devices ES/SA/EH series MPU H04 Reading several word devices (read-only devices) EH2 V2.2, SV V2.4, EH3/SV2 V1.0, SX V3.0, and later versions H05 Writing a state in a single bit device EH2/SV/EH3/SV2 V1.4, SX V3.0, and later versions H06 Writing data in a single word device ES/SA/EH series MPU H0F Writing states in bit devices SA/SX V1.8, SC V1.6 and EH2/SV/EH3/SV2 V1.2 and later versions H10 Writing data in word devices ES/SA/EH series MPU