
5.PROGRAM INPUT NC FUNCTION B-63942EN/02
- 176 -
5.19.2.1 Setting a Workpiece Coordinate System
By using the following program command, a workpiece coordinate
system can be set so that the current tool position is at a specified
position.
Format
G92 IP_ ;
(G50 when G code system A is used on the lathe system)
Example
- Example 1
As shown below, place the tool tip at the start point of the program,
and specify G92 at the start of the program.
25.2
X
Z
23.0
0
G92 X25.2 Z23.0 ;
Z
X
Origin
375.1
Start
oint
φ
128.7
G92 X128.7 Z375.1 ; (diameter programming)
For milling machining
For lathe turning
- Example 2
Set the reference position on the tool holder or turret as shown in the
figure below, then specify G92 at the beginning of the program. By
specifying an absolute programming in this condition, the reference
position is moved to a specified position. To move the tool tip to a
specified position, compensate the distance between the reference
position and the tool tip by using tool length compensation.
X
Z
600.0
0
Reference
position
1200.0
G92 X60.0 Z1200.0 ;
Setting the start point at a given
reference position on the tool holder
Z
X
700.0
Start point =
reference
position
φ
1200.0
Setting the start position at a given
reference position on the turret
G92 X1200.0 Z700.0 ;
(diameter programming)
For milling machining For lathe turning