Using the wrong work offset on a multi-part fixture cost me 2 hours and a ruined vise jaw. After that mistake, I mastered FANUC's three work offset methods. Here's when to use each one and why.
Work offsets tell the machine where part zero is located relative to machine zero. FANUC provides three ways to set them:
Usage: Set on OFFSET page, called in program with G54, G55, etc.
O1000 (PART 1)
G90 G54 G00 X0 Y0 ; Use G54 for part 1
S2500 M03
...
M30
O1001 (PART 2)
G90 G55 G00 X0 Y0 ; Use G55 for part 2
S2500 M03
...
M30
Advantages:
Usage: Set offset values directly in G-code program
O2000 (SET OFFSETS)
G10 L2 P1 X-250.0 Y-150.0 Z-300.0 ; Set G54
G10 L2 P2 X-350.0 Y-150.0 Z-300.0 ; Set G55
G10 L2 P3 X-450.0 Y-150.0 Z-300.0 ; Set G56
M30
O2001 (MAIN PROGRAM)
G90 G54 G00 X0 Y0
...
G90 G55 G00 X0 Y0
M30
Advantages:
L2 P#: P1=G54, P2=G55, ..., P6=G59
Usage: Temporary shift from current work offset
O3000 (MAIN)
G90 G54 G00 X0 Y0 ; Start at G54 origin
G52 X100.0 Y50.0 ; Shift origin +100 X, +50 Y
G00 X0 Y0 ; Now at X100 Y50 (relative)
... (machining operations)
G52 X0 Y0 ; Cancel local shift
G00 X0 Y0 ; Back to G54 origin
M30
Key Points:
Recommended approach:
O4000 (SETUP)
G10 L2 P1 X-250.0 Y-150.0 Z-300.0 ; Fixture reference
G10 L2 P2 X-300.0 Y-150.0 Z-300.0 ; Part 1
G10 L2 P3 X-400.0 Y-150.0 Z-300.0 ; Part 2
G10 L2 P4 X-500.0 Y-150.0 Z-300.0 ; Part 3
M30
O4001 (MILL PART 1)
G90 G55 G00 X0 Y0
G52 X10.0 Y5.0 ; Local shift for this part's datum
... (machining)
G52 X0 Y0 ; Cancel local shift
M30
To prevent operators from modifying critical offsets:
Password: Parameter 3210 (set password to unlock)
All FANUC CNC articles complete. Next: Finance series