Mitsubishi — Chapter 8 Application Instructions API 100-149

9 Application Instructions API 150-199 Registers (D0) for PLC received data (responding messages): Program example 6: COM1(RS-232) / COM3(RS-485), Function Code H05 1. Function Code K5 (H05): Force ON/OFF bit device. 2. PLC1 connects PLC2: (M1320 = OFF, ASCII Mode ), (M1320 = ON, RTU Mode ) 3. n = 1 indicates Force ON (set FF00H) and n = 0 indicates Force OFF (set 0000H) 4. PLC COM1/COM3 will not process the received data. 5. Take the connection between PLC1 (PLC COM3) and PLC2(PLC COM1) for example, the tables below  If PLC1 applies COM1 for communication, the below program can be usable by changing: explains the status when PLC1 reads Y0~Y17 of PLC2 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 DVP-PLC Application Manual 9-16 Register DATA Explanation D1260 low 00 H Set bit On/Off Request bit ON/OFF D1261 low 00 H D1262 low CD H CRC CHK Low D1263 low 06 H CRC CHK High Register DATA Explanation D1070 low 01 H Address D1071 low 05 H Function D1072 low 05 H Starting data address D1073 low 00 H D1074 low 00 H Set bit On/Off Request bit ON/OFF D1075 low 00 H D1076 low CD H CRC CHK Low D1077 low 06 H CRC CHK High