|
Set UCS
SET_UCS ( <qualifier> <position> <rotation> <string> )
This action invokes the new GPP2 "SET UCS" block, specifically intended for defining work planes in 5X machines. It is similar to the MACHINE CONTROL block, except that GPP2 uses a specific logic to avoid repetitive calls in case the block is not needed (see below).
It uses the following arguments:
Argument |
Allowed values |
Effect |
<qualifier> |
Any string constant (For example, "ref" or "proc") |
This argument becomes the qualifier used by GPP2 when invoking the SET UCS block. This block supports user-defined qualifiers for better program organization. |
<position> |
Any numeric constant |
The value of this argument is copied to the CONTROL_NUM_1 variable, to be used by the EX2 program in the SET UCS block. By convention (only), use the UCS position definition, such as POS_REF. |
<rotation> |
Any numeric constant |
The value of this argument is copied to the CONTROL_NUM_2 variable, to be used by the EX2 program in the SET UCS block. By convention (only), use the UCS rotation definition, such as ROT_RESET. |
<string> |
Any string constant |
The value of this argument is copied to the CONTROL_STRING variable, to be used by the EX2 program in the SET UCS block. |
GPP2 keeps track of the SET_UCS actions used. If a SET_UCS action is invoked with the same qualifier as a previous one, and there was no change in alpha or beta angles between the two calls, the second SET_UCS action will be skipped (since the work plane did not change between the actions).
The <position> and <rotation> arguments do not have to be used for this purpose, and can really be set to anything. GPP2 only looks at the qualifier when it comes to decide if that SET_UCS action is "the same" as the previous one.
|