上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
Specialized, Concentrated, Focused - 49 -
3.7
Offset Setting
3.7.1
WCS (Workpiece Coordinate System)
In programming, programmers select one certain given point on workpiece as origin (also called
programming origin) to establish a new coordinate system (i.e. workpiece coordinate system), also a set
of right-hand coordinate system. The origin of WCS, i.e. workpiece origin, is fixed relative to a certain
point on workpiece and floating relative to the machine origin. The selection of origin of WCS should
meet the conditions of simple programming, simple dimensional conversion, and small caused
machining error.
The corresponding coordinate systems of workpiece offset are G55, G56, G57, G58, G59. And the
relationship of workpiece offset and machine coordinate system is shown in Fig. 3-22.
G54(X)
G
5
4
(Y
)
Machine Origin
Workpiece
Origin
Limit of axial motion
Workpiece
Fig. 3-22 The relationship of workpiece offset and machine coordinate system
One, two or multi-workpiece offset can be used in machining program. As shown in Fig. 3-23, if
three workpieces are installed or setup on the workbench, then each workpiece holds a workpiece origin
relative to G code of WCS. The programming example is as follows: drill one hole on each of the three
workpieces, with calculation depth as Z-0.14.
G54(X)
G
5
4
(Y
)
Machine origin
Workpiece
Workpiece
Workpiece
G55(X)
G56(X)
G
5
6
(Y
)
G
5
5
(Y
)
Fig. 3-23 Sketch map