3. Instruction Set RTU mode (M1143 = ON): When X0 = ON, MODRW instruction executes the function specified by Function Code 03 PLC VFD-B, PLC sends: ” 01 03 2100 0006 CF F4” VFD-B PLC, PLC receives: “01 03 0C 0000 0503 0BB8 0BB8 0000 012D 8E C5” Registers for data to be sent (sending messages) Registers for received data (responding messages) H04 is the same as the function code H03.) Program example 4: COM1(RS-232) / COM3(RS-485), Function Code H03 (The function code 1. Function code K3 (H03): read multiple Word devices, up to 16 words can be read. For COM2 ASCII mode, only 8 words can be read.. 2.
PLC COM1 / COM3 stores the received data in registers starting from S , and the stored data can be transformed and moved by using DTM instruction for applications of other purposes.
3-373 Register Data Descriptions D1256 Low byte 01 H Address D1257 Low byte 03 H Function D1258 Low byte 21 H Data Address D1259 Low byte 00 H D1260 Low byte 00 H Number of data (count by word) D1261 Low byte 06 H D1262 Low byte CF H CRC CHK Low D1263 Low byte F4 H CRC CHK High Register Data Descriptions D0 low byte 01 H Address D1 low byte 03 H Function D2 low byte 0C H Number of data (count by byte) D3 low byte 00 H Content of address H2100 0000 H PLC COM2 automatically stores the value in D1296 D4 low byte 00 H D5 low byte 05 H Content of address H2101 0503 H PLC COM2 automatically store the value in D1297 D6 low byte 03 H D7 low byte 0B H Content of address H2102 0BB8 H PLC COM2 automatically stores the value in D1298 D8 low byte B8 H D9 low byte 0B H Content of address H2103 0BB8 H PLC COM2 automatically store the value in D1299 D10 low byte B8 H D11 low byte 00 H Content of address H2104 0000 H PLC COM2 automatically store the value in D1300 D12 low byte 00 H D13 low byte 01 H Content of address H2105 012D H PLC COM2 automatically store the value in D1301 D14 low byte 2D H D15 low byte 8E H CRC CHK Low CRC CHK High D16 low byte C5 H