Syntax
ADDGRID (value_1, value_2,…)
|
Add the specified groups to GROUP ID
|
Operands | value_1, value_2: specify a group number between 1 and 8 |
Binary code
Description | The command adds more groups to 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 modified as follows:
• | Bit 0 is set to 1, if (group) 1 occurs in the parenthesis |
• | Bit 1 is set to 1, if (group) 2 occurs in the parenthesis |
• | Bit 7 is set to 1, if (group) 8 occurs in the parenthesis. |
Example
//local axis has group ID = 1 -> belongs to group 1
ADDGRID (2, 4); //local axis belongs also to groups 2 and 4
//new group ID = 11 (00001011b)
....
[G4] {STOP;} //send stop motion to all axes from group 4
//local axis will stop too as member of group 4
|