Skip to main content
Skip table of contents

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.

CPP
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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.