Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 3. Take the connection between PLC and VFD-B for example, the tables below explains the status when PLC reads VFD-B status. (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 2. M1136→M1138: retain communication setting 3. D1252→D1249: Set value for data receiving timeout 4. M1320→M1139: ASCII/RTU mode selection 5. M1316→M1312: sending request 6. M1318→M1314:

receiving completed flag M1002 Set communication protocol as 9600,8,E,1 Retain communication setting Set communication timeout as 100ms M1320 = OFF ASCII mode M1320 = ON RTU mode X0 Sending request X0 Data length(word) Data storing register Data address: H2100 Function code: Read multiple words K3 Receiving completed M1318 Connection device address: K1 Processing received data ASCII mode: The received data is converted to Hex value and stored in registers starting from D0 RTU mode: The received data is stored in registers starting from D0 Reset M1318 ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):

When X0 = ON, MODRW instruction executes the function specified by Function Code 03 PLC  VFD-B, PLC sends: “ 01 03 2100 0006 D5 ” VFD-B  PLC, PLC receives: “ 01 03 0C 0100 1766 0000 0000 0136 0000 3B ” Registers for received data (responding messages) 3-374 MOV H87 D1109 SET M1136 MOV K100 D1252 RST M1320 SET M1320 SET M1316 MODRW K1 K3 H2100 D0 K6 RST M1318 Register Data Descriptions D0 0100 H PLC converts ASCII codes in 2100 H and stores the converted data automatically.