{TML}        Send a TML command to another axis or a group of axes

Syntax                [Axis/Group] {TML command; }

 

Operands        Axis/Group:

An integer 1 to 255 representing an Axis ID
G followed by an integer 1 to 8 representing one of the 8 groups
B for a broadcast to all axes

TML command: any single axis TML instruction

PlaceTML

Binary code

SENDCommand

DescriptionWhen an axis executing a TML program encounters this instruction, sends the TML command specified between { } to another axis or group of axes. At destination, the command is executed as any other on-line TML command received via a communication channel. In the binary code, Axis/Group represents either an Axis ID (if A/G=0) or a Group ID (if A/G = 1). A transmission with Group ID can be:
For all the axes from a single group, if one bit from the 8-bit Group ID is 1
A broadcast to all the axes, if the Group ID = 0

Remark: You may specify between { } multiple commands, separated by semicolons “;”. The TML compiler splits them in single commands, each having the above binary code. The single commands are sent in the same order as set in the command between { }

 

Execution        Send the “TML Command” between { } to the destination

 

 

Example

[G1]{CPOS=2000;};        // send a new CPOS command to all axes from group 1

[G1]{UPD};                // send an update command to all the axes from group 1

// all axes from group 1 will start to move simultaneously

[B]{STOP;};                // broadcast a STOP command to all axes from the network