BEGIN        Begin a TML program

Syntax                        

BEGIN

Beginning of a TML program

 

Operands

PlaceTML

Binary code

DescriptionThis command must be the first in a TML program. In the AUTORUN mode, the drive/motor reads the first EEPROM memory location at address 0x4000 and checks if the binary code is 0x649C corresponding to the TML instruction BEGIN. If this condition is true, the TML program from the EEPROM memory is executed starting with the next instruction after BEGIN. If the condition is false, the drive/motor enters in the slave mode and waits to receive commands from a host via a communication channel.

 

Example        

BEGIN;                // Starting point of a TML program

...

ENDINIT;                //End of initialization

...

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