GROUPID        Set group ID with specified value

Syntax                        

GROUPID (value_1, value_2,…)

Set GROUP ID address

Operandsvalue_1, value_2: specify a group number between 1 and 8

PlaceTMLOnline

Binary code

GROUPID

DescriptionThe command sets the group ID. On each axis, the group ID represents a filter for a multicast transmission. When a multicast message is received, each axis compares the message group ID with its own group ID. If the two group IDs have at least one group in common, the message is accepted. For example, if an axis is member of group 1 and group 3, it will receive all the messages sent with a group ID including group 1 or group 3. The group ID is an 8-bit integer value. Each bit corresponds to one group: bit 0 – group 1, bit 1 – group 2… bit 7 – group 8.

After the execution of this command, the group ID value is set as follows:

Bit 0 is set to 1, if (group) 1 occurs in the parenthesis, else it is set to 0
Bit 1 is set to 1, if (group) 2 occurs in the parenthesis, else it is set to 0
Bit 7 is set to 1, if (group) 8 occurs in the parenthesis, else it is set to 0.

 

Example                

GROUPID (1, 3);        //local axis belongs to groups 1 and 3

...

[G3] {STOP;}        //send stop command to all axes from group 3

//the command is executed by local axis too