5 Programming
5 Programming
Basic programming commands Compensation and offset Fixed cycles Macro and subroutine programming
only one block. Example G18 G03 X_ Z_ J_ F_ arc interpolation in ZXplane G17 G03 X_ Y_ Z_ R_ F_ Helical cutting with circular motion in the XY-plane and linear motion in Z axis.
Arc programming
Command format with IJK method (G17) G02 X_ Y_ I_ J_ F_ X_, Y_: end point of arc (Ii = Xc - Xs, Jj = Yc Ys)
G90 G00 X-1.0 Y-1.0 (S) G01 X0 Y0 F7.5 (A) Y2.314 (B) G03 X0.5 Y3.0 I-0.5 J0.866 (C) X0. Y3.866 I-1. J0 (D) G01 Y5.5 (E) G02 X0.5 Y6.0 I0.5 J0 (F) G01 X4.5 (G) G02 X6.0 Y4.5 I0 J-1.5 (H) G01 Y0 (I) X0 (A) G00 X-1.0 Y-1.0 (S)
Example
Arc programming
Command format with R method (G19) G03 Y_ Z_ R_ F_
Example
G90 G00 X-2.0 Y-1.0 (S) G01 X0 Y0 F8.0 (A) Y4.0 (B) G02 X2.0 Y6.0 R2.0 (C) G01 X8.0 (D) G02 X9.0 Y2.268 R2.0 (E) G01 X0 Y0 (A) G00 X-2.0 Y-1.0 (S)
Position Systems (G90, G91) G90: Absolute system G91: Incremental system Input Unit Selection (G70 G20, G71 G21) G70 G20: inch system G71 G21: metric system Absolute Zero Setting (G92) G92 X_ Y_ Z_ (X, Y, Z) is the current tool position in the defined coordinate system
Example
Example
Example
Example
Home Work