9 Application Instructions API 150-199 Registers for received data (responding messages) 9. RTU Mode: When PLC is connected to VFD-S AC motor drive PLC VFD-S, PLC sends: “01 06 2000 0012 02 07” VFD-S PLC, PLC receives: “01 06 2000 0012 02 07” Registers for sent data (sending message) Registers for received data (responding message) Program example 8: COM1 (RS-232) / COM3 (RS-485), Function Code H06 1. Function code K6 (H06): Write in single Word device. 2. Set the value to be written into VFD-B in the register specified by operand S . 3. PLC COM1/COM3 will not process the received data. 4.
Take the connection between PLC (PLC COM3) and VFD-B for example, the tables below explains the status when PLC COM3 writes in single Word device in VFD-B (M1320 = OFF, ASCII Mode ), (M1320 = ON, RTU Mode) If PLC applies COM1 for communication, the below program can be usable by changing: 1. D1109→D1036:
communication protocol DVP-PLC Application Manual 9-19 Register DATA Explanation D1070 Low ‘0’ 30 H ADR 1 ADR 0 D1070 High ‘1’ 31 H D1071 Low ‘0’ 30 H CMD 1 CMD 0 D1071 High ‘6’ 36 H D1072 Low ‘0’ 30 H Data Address D1072 High ‘1’ 31 H D1073 Low ‘0’ 30 H D1073 High ‘0’ 30 H D1074 Low ‘1’ 31 H Data content D1074 High ‘7’ 37 H D1075 Low ‘7’ 37 H D1075 High ‘0’ 30 H D1076 Low ‘7’ 37 H LRC CHK 1 LRC CHK 0 D1076 High ‘1’ 31 H Register DATA Explanation D1256 Low 01 H Address D1257 Low 06 H Function D1258 Low 20 H Data Address D1259 Low 00 H D1260 Low 00 H Data content The content of register D50 (H12) D1261 Low 12 H D1262 Low 02 H CRC CHK Low D1263 Low 07 H CRC CHK High Register DATA Explanation D1070 Low 01 H Address D1071 Low 06 H Function D1072 Low 20 H Data Address D1073 Low 00 H D1074 Low 00 H Data content D1075 Low 12 H D1076 Low 02 H CRC CHK Low D1077 Low 07 H CRC CHK High