Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version V3.3

...

Section

Setup Information

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:

ParameterDescriptionDefaultAvailable OptionsDescription
K20Baud Rate0

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
K78COM1 Modbus Address Offset00 - 32767

Set an offset for the Modbus Address of COM1

Note

It is recommended to leave the offset set to 0


K79COM2 Modbus Address Offset00 - 32767

Set an offset for the Modbus Address of COM2

Note

It is recommended to leave the offset set to 0

Modbus addresses


K81COM1 Modbus Slave AddressID0

0 : Disabled
1- 32767 : Station ID

Set the CM2 station addressID
K82ParityParity0

0: None
1: Even
2: Odd

Set the communications parity
K84COM2 Modbus Slave ID0

0 : NoneCOM2 Modbus Disabled
1: Even
2: Odd  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
K85Modbus Endianness0


ValueCOM0COM1COM1COM2
0Big EndianBig Endian
1Little EndianBig Endian
2Big EndianLittle Endian
3Little EndianLittle 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 Mode

If 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
nameDefault CM2 Modbus CML program.crp
height150

...