AXISOFF        Set the axis OFF

Syntax                        

AXISOFF

AXIS is OFF (deactivate control)

Operands

PlaceTMLOnline

Binary code

 

DescriptionThe command deactivates the drive control loops, the reference generator and the PWM output commands for the power stage (all the switching devices are off). All the measurements remain active and therefore the motor currents, speed, position as well as the supply voltage continue to be updated and monitored. The AXISOFF command is automatically generated when a protection is triggered or when the drive Enable input goes from status enabled to status disabled.

 

Example        

// Execute repetitive moves. After each one, set AXISOFF.

// Motor may move freely. Restart after 20s. Position

// feedback: 500 lines incremental encoder (2000 counts/rev)

CACC = 0.3183;//acceleration rate = 1000[rad/s^2]

CSPD = 33.3333;//slew speed = 1000[rpm]

CPOS = 6000;//position command = 3[rot]

CPA; //position command is absolute

Loop: MODE PP; // position profile

       CPOS += 6000; set new position command

UPD; //execute immediate

       AXISON;        //Activate the control loops and PWM outputs

!MC; // set event on motion complete

WAIT!;//Wait until the event occurs i.e. the motor stops

AXISOFF; //Deactivate the control loops and PWM outputs

!RT 20000;        //set a 20s delay (1s = 1000 slow loop samplings)

WAIT!;        //Wait until the event occurs (to pass the 20s)

GOTO Loop;        //Restart the motion