Smithy CNC Mills User Manual
Page 34

SmithyCNC Programmer’s Reference Manual: G Codes
2-19
See Section [sub:Coordinate-Systems] for an overview of coordinate systems.
To make the current point have the coordinates you want (without motion), program
G92 X- Y- Z- A- B- C- , where the axis words contain the axis numbers you want. All
axis words are optional, except that at least one must be used. If an axis word is not
used for a given axis, the coordinate on that axis of the current point is not
changed. It is an error if:
1. all axis words are omitted.
When G92 is executed, the origin of the currently active coordinate system moves. To
do this, origin offsets are calculated so that the coordinates of the current point with
respect to the moved origin are as specified on the line containing the G92. In addition,
parameters 5211 to 5216 are set to the X, Y, Z, A, B, and C-axis offsets. The offset for
an axis is the amount the origin must be moved so that the coordinate
of the controlled point on the axis has the specified value.
Here is an example. Suppose the current point is at X=4 in the currently specified coor-
dinate system and the current X-axis offset is zero, then G92 x7 sets the X-axis offset to
-3, sets parameter 5211 to -3, and causes the X-coordinate of the current point to be 7.
The axis offsets are always used when motion is specified in absolute distance mode
using any of the nine coordinate systems (those designated by G54 - G59.3). Thus all
nine coordinate systems are affected by G92.
Being in incremental distance mode has no effect on the action of G92.
Non-zero offsets may be already be in effect when the G92 is called. If this is the
case,the new value of each offset is A+B, where A is what the offset would be if the old
offset were zero, and B is the old offset. For example, after the previous example, the
X-value of the current point is 7. If G92 x9 is then programmed, the new X-axis offset is
-5, which is calculated by [[7-9] + -3].
To reset axis offsets to zero, program G92.1 or G92.2. G92.1 sets parameters 5211 to
5216 to zero, whereas G92.2 leaves their current values alone.
To set the axis offset values to the values given in parameters 5211 to 5216, program
G92.3.
You can set axis offsets in one program and use the same offsets in another program.
Program G92 in the first program. This will set parameters 5211 to 5216.
Do not use G92.1 in the remainder of the first program. The parameter values will be
saved when the first program exits and restored when the second one starts up. Use
G92.3 near the beginning of the second program. That will restore the offsets saved in
the first program. If other programs are to run between the the program that sets the