上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
Specialized, Concentrated, Focused 49
G37 Chessboard Hole Cycle
Command Format:
G37 Xx Yy IΔx Pnx JΔy Kny
Description:
Chessboard hole cycle.
X, Y: the first position to be drilled (G90/91 is influential)
I: hole interval in X axis
P: number of holes in X axis
J: hole interval in Y axis
K: number of holes in Y axis
G37 drills P*K holes in XY plane with XY as start position. The space between adjacent holes is
Δx in X axis, while in Y axis, the space is Δy, G0 speed used when moving from one hole to another
one.
N001 G91 G81 G99 Z-5 R6 F500 K1
N002 G37 X300 Y-100 I50 P10 J100 K15
Machine tool moves from P, first to A, then drills 10
holes with hole interval as 50mm in X-axis until to
B, then moves 100mm in Y+ direction to C, and
then drills 10 holes until to D in X axis. The rest can
be done in the same manner until J is reached with
15*10 holes drilled. Drilling action is specified by
G81 of program block N001.
X1
1
=300m
m
y1=100mm
△
x=50mm
Position before Execting G37
B
A
D
C
F
E
G
J
H
I
P
△
y=100mm
Fig. 4-36 Demonstration for Chess Hole Cycle Drilling
Customized Canned Cycle
The user can customize G coeds by writing a subprogram in public.dat.
Subprogram no. 200~999 is used by internal parse engine. The code range of M command is
200~599, while that of G code is 600~999.
Therefore, G code (0~99) plus 600 is regarded as the corresponding subprogram.
Содержание Ncstudio
Страница 74: ...RMB 21 00 ...