8 Application Instructions API 100-149 API 101 Operands: S 1 : Address of communication device S 2 : Address of data to be read n : Data to be written Explanations: 1. Range of S 1 : K0 ~ K254 2. See the specifications of each model for their range of use. 3. ES/EX/SS series MPU does not support E, F index register modification. 4. Flags: See API 80 RS for explanations on M1120 ~ M1131, M1140 ~ M1143 5. MODWR is a drive instruction exclusively for peripheral communication equipment in MODBUS ASCII mode/RTU mode. The built-in RS-485 communication ports in Delta VFD drives (except for VFD-A series) are all compatible with MODBUS communication format.
MODRD can be used for controlling communication (write data) of Delta drives. 6. If the address of S 2 is illegal to the designed communication device, the device will respond with an error, PLC will records the error code in D1130 and M1140 will be On. For example, if 8000H is illegal to VFD-S, M1141 will be On and D1130 = 2. For error codes, see the user manual of VFD-S. 7. The feedback (returned) data from the peripheral equipment will be stored in D1070 ~ D1076. After receiving the feedback data is completed, PLC will auto-check if all data are correct. If there is an error, M1140 will be On. 8.
After M1140 or M1141 turn On, the program will send a correct datum to the peripheral equipment. If the feedback datum is correct, M1140 and M1141 will be reset. DVP-PLC Application Manual 8-5 Mnemonic Operands Function MODWR 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 MODWR: 7 steps S 1 * * * S 2 * * * n * * * PULSE 16-bit 32-bit S A 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