|
Setting the Axes Zero Points
Some machines support the definition of multiple homes on the machine, each with its own XYZ origin and its own orientation. For such a home, the angle zero points are also redefined (so sending the alpha axis to 0 will reach the new home orientation, not the original REF zero orientation).
The SET_OUTPUT_UCS statement allows the definition of a new home zero position (For example, to the current procedure zero point). However, it does not affect the rotary axes zero points.
In order to allow GPP2 to output correct angles in such a case, it is necessary to define the zero point of each rotary axis. This is done with the two new system variables, M5_A_ZERO and M5_B_ZERO.
These variables should be set in conjunction to setting a new machine home (For example, with M55 machine code).
Example
M5_A_ZERO = A_CURPOS; // set the zero at the current angle
M5_B_ZERO = B_CURPOS;
|