END                End of TML program main section

Syntax                        

END

END of a TML program

Operands

PlaceTMLOnline

Binary code

DescriptionThe END command indicates the end of a TML program main section. Next TML instructions (if present) are not executed. After this command the TML program should contain TML functions and TML interrupt service routines as well as other data like the cam tables. The END command effectively stops the execution a TML program putting the drive/motor in a wait loop for TML commands received via a communication channel.

Remark: The END instruction does not modify the control loops. Use TML commands AXISON / AXISOFF to enable / disable the control loops, the reference generator and the PWM outputs.

 

Example        

BEGIN;                // Starting point of a TML program

...

ENDINIT;                //End of initialization

...

END;                        //end of main section of a TML program