CNCezPRO™ Software

Real-Time 3D Graphics Simulation for Computer Numerical Control



G54-G59 WORKPIECE COORDINATE SYSTEM
N_ G54 through G59
The G54 G59 commands are used to reposition the origin per a user- defined working coordinate system.
Example G54
% (PROGRAM START FLAG)
:1019
N5 G90 G80 G20
N10 M06 T6
N15 M03 S1300
N20 G55 G00 X1.0 Y1.0 (Rapid to X1, Y1 of work coordinate system 2)
N25 Z0.5
N30 G82 Z-0.25 R0.125 P500 F5
N35 Y2
N40 X2
N45 Y1
N50 X1.5 Y1.5 (COMPENSATE TOOL 4 -- 0.25 INCHES)
N60 G80 G00 Z1
N65 G56 G00 X1.0 Y1.0 (Rapid to X1, Y1 of work coordinate system 3)
N70 Z0.5
N75 G82 Z-0.25 R0.125 P500 F5
N80 Y2
N85 X2
N90 Y1
N95 X1.5 Y1.5
N100 G80 G00 Z1
N102 G54 (Reset work coordinate system)
N105 X0 Y0
N110 M05
N115 M30