CM1-C

CML Examples

Torque Mode Example

The following example uses the CML registers to run a torque move. This could be run from a Control Room CML script, PC, PLC or microcontroller application using serial communication.

C++
R1=0		//clear the controlword before setting the mode
_mop=10		//set the mode of operation to 10. Torque mode
S1=100		//set target speed
N1=300		//set the target torque to 30.0% of rated
R1=1		//start the profile move

//While R1=1 any change in the torque register will execute an immediate change