EM600 High-Performance Vector Control Inverter User Manual RTU message includes address code, PDU (Protocol DataUnit) and CRC [3] Parity. PDU comprises funciton code and data (mainly including register address, register number and register content; all function codes have different definitions, see function code 12.3.3). [3]: CRC parity, with low byte in the front and high byte in the back. 12.3.2 Address Code 12.3.3 Function Code MODBUS function code classification is shown in Figure 12-2.
127 ( 0x7F ) Common Function Code 100 ( 0x64 ) 110 ( 0x6E ) User-Defined Function Code Common Function Code User-Defined Function Code 65 ( 0x41 ) 72 ( 0x48 ) Common Function Code 1 ( 0x1 ) Figure 12-2 MODBUS Function Code Classification As shown in Table 12-1, EM600 inverters mainly involve common function codes, for example 0x03 read multiple registers or status words, 0x06 write single register or command, 0x10 write multiple registers or commands, and 0x08 diagnosis function code.
Besides, to perform some special functions, for example write register RAM and not to save in EEPROM, user shall define 0x41 as write single register or command (no to save) and 0x42 as write multiple registers or commands in user-defined function code area (no to save). After receiving abnormal valid data from device, relevant abnormal information (see 12.3.7 Abnormal Information Response) will be returned. For distinguishing it from normal communication data, abnormal function codes are defined. Similar to normal request function code, abnormal function code = request function code + 0x80.
Table 12-1 EM600 Defined Function Code In the following sections, PDUs different depending upon functions shall be explained in detail. 253 Address Scope Purpose 1 - 247 Slave 0 Broadcast Function Abnormal Function Code Function Code 03 83 Read multiple registers or status bytes. 41 C1 Write single register or command (not to save) 42 C2 Write multiple registers or commands (not to save) 08 88 Diagnosis function code 06 86 Write single register or command 10 90 Write multiple registers or commands