What is the difference between G54 and G92?+−
G54 selects a row of the work offset table, which is stored data you can see on the screen. G92 redefines the origin on the fly by declaring what coordinate the current position has, and that shift stays active invisibly until it is cancelled. For repeatable work you use G54.
How many work offsets does a machine have?+−
The classic six, G54 to G59, plus the extended ones: G54.1 P1...P48 on Fanuc (up to P300 with the option) and G154 P1...P99 on Haas. On Siemens the list grows with G505 to G599 and on Heidenhain with the rows of the preset table.
What exactly is stored in the G54 row?+−
The distance from machine zero to part zero on each axis, with its sign. On a mill with machine zero at the back right corner, X and Y come out negative. It is not the probe position and not the tool height: just where the zero of the part is.
Do I have to repeat G54 in every tool?+−
It is not required because it is modal, but it is good practice: if the operator starts the program part way through, at the block for the third tool, that block has to bring its own G90 G54 and its G43 H so the machine does not inherit the state of the previous program.
Can I change work offset in the middle of a program?+−
Yes, and it is the normal thing with several parts on the table: you machine the first one under G54, call the subprogram under G55, and so on. Every offset change should happen with the tool retracted and in a safe positioning block.