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 | COM1 Modbus Address Offset | 0 | 0 - 32767 | Set an offset for the Modbus Address of COM1 Note |
---|
It is recommended to leave the offset set to 0 |
| K79 | COM2 Modbus Address Offset | 0 | 0 - 32767 | Set an offset for the Modbus Address of COM2 Note |
---|
It is recommended to leave the offset set to 0 |
addresses | K81 | COM1 Modbus Slave AddressID | 0 | 0 : Disabled 1- 32767 : Station ID | Set the CM2 station addressID | K82 | Parity | 0 | 0: None 1: Even 2: Odd 2: Odd | Set the communications parity | K84 | COM2 Modbus Slave ID | 0 | 0 : COM2 Modbus Disabled 1: COM2 Modbus Enabled (ID=1) | Set the Station ID for the second COM port. If using COM2, the ID must be set to 1Set the communications parity | K85 | Modbus Endianness | 0 |
Value | COM0COM1COM1 | COM2 |
---|
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
|
Note |
---|
K65 MUST be set to 0 (38400 Baud) in order to use Modbus on COM2. |
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 |
---|
|
|