9 Application Instructions API 150-199 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 receiving timeout as 100ms M1320 = ON ASCII mode M1320 = OFF RTU mode X0 X0 Sending request Data register: D50=H1770 Data length Data address: H2000 Function code: K6 Write in single Word data Receiving completed Connection device address: K1 M1318 Received data ASCII mode: No processing on received data . RTU mode: No processing on received data .
Reset M1318 ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF): When X0 = ON, MODRW instruction executes the function specified by Function Code H06 PLC VFD-B, PLC sends: “01 06 2000 1770 52” VFD-B PLC, PLC receives: “01 06 2000 1770 52” (No data processing on received data) RTU mode (COM3: M1320 = ON, COM1: M1139 = ON) When X0 = ON, MODRW instruction executes the function specified by Function Code H06 PLC VFD-B, PLC sends: “01 06 2000 1770 8C 1E” VFD-B → PLC, PLC receives: “ 01 06 2000 1770 8C 1E ” (No data processing on received data) DVP-PLC Application Manual 9-20 MOV H87 D1109 SET M1136 MOV K100 D1252 RST M1320 SET M1320 SET M1316 MODRW K1 K6 H2000 D50 K1 RST M1318