1.0.0 |
Version: |
IntroductionModbus gives read/write access to all Cool Muscle registers such as K-parameters, positions, speeds and accelerations. A CML program needs to reside in the motor to execute functions depending on the status of these registers. Below you will find an example program that is used in all Modbus-TCP motors. It uses a control word in the R1 register to execute a number of functions. This code is useful for point-to-point motion and speed control. An application may require a significantly more complex program which can replace the example program. The CML is written to be compiled and sent from Control Room. The user does not need to understand the code but only how to use it. The full program code is supplied for those users wanting to change or get a better understanding of how the program works. Modbus-TCP motors come standard with the Modbus program loaded. Running the motorThe following list of holding registers can be used to the read and write move data to the motor.
Position, Speed and AccelerationThe default setting for the motor is K37=3 which sets the following units. This can easily be changed by modifying the value of K37.
Control WordThe R1 register is used for the Control Word. It has the following value options
Some things to note when using the control word
CML CodeThe following is the CML code used for motor control in Modbus. It is not required for users to understand the code unless they are looking to change it.
|