
9. Modicon Programming
9.1 Supported Modbus Commands
The
status), command 3 (0x03: read holding registers), command 5 (0x05: force single
coil), command 6 (0x06: preset single register) and command 16 (0x10: preset multiple registers). Not all registers or coils support all commands (for example,
Command | RTU Mode | RTU Mode | ASCII Mode | ASCII Mode | |
Read Max | Write Max | Read Max | Write Max | ||
| |||||
1 | 32 coils | N/A | 32 coils | N/A | |
3 | 125 registers | N/A | 61 registers | N/A | |
5 | N/A | 1 coil only | N/A | 1 coil only | |
6 | N/A | 1 register only | N/A | 1 register only | |
16 | N/A | 123 registers | N/A | 59 registers |
9.2 Programmable Pointer Register Function
To configure this function, program as many registers as necessary (up to 32) in the range 0x6000 ∼ 0x601F with the register numbers of the registers you would like to continuously access. In this example, we would set register 0x6000 to 0xFE03 (the first register number we want to access), register 0x6001 to 0xFE04, register 0x6002 to 0xFE06, and register 0x6003 to 0xFD00. The data located at these drive status registers can then be obtained by accessing the corresponding registers in the range 0x6080 ∼ 0x609F (data register 0x6080 corresponds to address register 0x6000, data register 0x6081 corresponds to address register 0x6001, etc.) Therefore, the 4 registers that are to be monitored can now be accessed simply by issuing 1 holding register read command with a length of 4 starting from register 0x6080. The returned
15