3. Instruction Set Registers for received data (responding messages) RTU mode (M1143 = ON) When X0 = ON, MODRW instruction executes the function specified by Function Code 05 PLC1 PLC2, PLC1 sends: “ 01 05 0500 FF00 8C F6 ” PLC2 PLC1, PLC1 receives: “ 01 05 0500 FF00 8C F6 ” Registers for data to be sent (sending messages) Registers for 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.
3-377 Register Data Descriptions D1070 low byte ‘0’ 30 H ADR 1 ADR 0 D1070 high byte ‘1’ 31 H D1071 low byte ‘0’ 30 H CMD 1 CMD 0 D1071 high byte ‘5’ 35H D1072 low byte ‘0’ 30 H Data Address D1072 high byte ‘5’ 35 H D1073 low byte ‘0’ 30 H D1073 high byte ‘0’ 30 H D1074 low byte ‘F’ 46 H High byte to be force ON/OFF D1074 high byte ‘F’ 46 H D1075 low byte ‘0’ 30H Low byte to be force ON/OFF D1075 high byte ‘0’ 30 H D1076 low byte ‘6’ 36 H LRC CHK 1 LRC CHK 0 D1076 high byte ‘F’ 46 H Register Data Descriptions D1256 Low byte 01 H Address D1257 Low byte 05 H Function D1258 Low byte 05 H Data Address D1259 Low byte 00 H D1260 Low byte FF H Data content (ON = FF00H) D1261 Low byte 00 H D1262 Low byte 8C H CRC CHK Low D1263 Low byte F6 H CRC CHK High Register Data Descriptions D1070 Low byte 01 H Address D1071 Low byte 05 H Function D1072 Low byte 05 H Data Address D1073 Low byte 00 H D1074 Low byte FF H Data content (ON = FF00H) D1075 Low byte 00 H D1076 Low byte 8C H CRC CHK Low D1077 Low byte F6 H CRC CHK High