|
The RECONFIG MACHINE Block
This GPP2 block is called when GPP2 is ready for the machine to be redefined, using the DEFINE_MACHINE statement.
The EX2 program should do the following tasks inside that block:
Output any commands needed to the machine in order to bring it to the new configuration (For example, rotate the head or one of the table axes).
Re-assign any GPP2 variables (For example, tool orientation vector) that are relevant to the new machine definition.
Call the DEFINE_MACHINE statement, with the new configuration. This call must take place even if the statement arguments are the same each time. GPP2 reads in many other variables as response to this command.
In some cases, the rotary axes angles must be reset (A_CURPOS, A_LASTPOS, B_CURPOS and B_LASTPOS). This is especially important when the machine type is being changed (For example, from Table-Table to Table-Head), since the actual roles of these variables change completely.
It is wise to record the new configuration in a user variable (For example, Vertical vs. Horizontal head) for future processing.
|