System information
SECTION FOUR - PREPARATORY FUNCTIONS (G CODES)
7. R can be used instead of AA for rotation angle.
3D Rotation (G0, G1, G2, G3, G68 AND G69)
G0, G1, G2, and G3 respond to 3D rotation when a G68 ABm has been entered.
G68 ABm
The ABm signifies 3D rotation. The angle m in degrees is the rotation of the primary axis
into the tertiary. For example, G17 G68 AB30 causes a 30 degree rotation of X
coordinates into Z coordinates.
P1=0 G69
G1 Z0
G68 AB[P1]
G1 X3 Y5
Sample program: G31
N1 G0 X0 Y0
G17
(part to rotate)
X1 Y2
G3 R1 AA0 AB45
Y6
G69
G31
P1=P1-5
IF P1 >= -180 GOTO 1
The program above will make the following part:
262










