The following list indicates important setup information for running in Modbus TCP. Ensure that the master is setup with the same configuration. - Port 502 - Modbus-TCP uses port 502. This is fixed.
- Holding register addressing depends on the system used. Refer to your modbus master documentation to understand the address format.
- Additional information is below to list the most common address types
- Max holding registers for read and write is 16
- Use function code 0x10 for write single register. Function code 0x06 is not supported.
- All registers are 32-bit
- Exceptions are the registers used used directly in the CM1-T Library (IEC 61131-3).
- 32-bit word mapping is little endian
The following Parameters must be set in order to use modbus mode: Parameter | Description | Default | Available Options | Description |
---|
K20 | Baud Rate | 0 | 0: 38.4 kbps 1: 9.6 kbps 2: 19.2 kbps 3: 57.6 kbps 4: 115.2 kbps 5: 230.4 kbps | Sets the baud rate of the Motor. Default is 38400 | K78 | Modbus Address Offset | 0 | 0-32767 | Set an offset for the Modbus addresses | K81 | Modbus Slave Address | 0 | 0-32767 | Set the CM2 station address | K82 | Parity | 0 | 0: None 1: Even 2: Odd | Set the communications parity | K85 | Modbus Endianness | 0 |
Value | COM0 | COM1 |
---|
0 | Big Endian | Big Endian | 1 | Little Endian | Big Endian | 2 | Big Endian | Little Endian | 3 | Little Endian | Little Endian |
| Sets the Endianness of the Modbus data only. E.g. Transmission of 6553600(0x640000) Big Endian [ Word 1] [Word 2] 0x0064 0x0000 Little Endian [ Word 1] [Word 2] 0x0000 0x0064
|
Turning off Modbus ModeIf the Motor is currently in Modbus mode, you can temporarily turn this off and communicate through the normal serial communications by sending the motor nine upper case letter F (FFFFFFFFF). When the motor receives this, it will switch to communicate via the normal serial mode until the motor is power cycled again.
Default CM2 Modbus Programming: View file |
---|
name | Default CM2 Modbus CML program.crp |
---|
height | 150 |
---|
|
|