
2 G Code
2 - 56
NJ/NY-series G code Instructions Reference Manual (O031)
The following program reverses a figure defined in the subprogram across the symmetric axes.
As shown in the above figure, the rotation direction of the spindle axis does not change in mirroring. As
Up cut/Down cut are not maintained, adjust the rotation direction of the spindle axis according to your
purpose.
Programming Example
N11 G64 G90 G01 F100
N12 M03 S300
N13 G51.1 X30
// Line symmetry to X=30
N14 M98 P1000
// Cuts the mirrored figure by calling the subprogram
(indicated by the solid line in the following figure).
N15 G50.1
N16 G01 X0 Y0
N17 M98 P1000
// Cuts the original figure by calling the subprogram
(indicated by the broken line in the following figure).
N18 M05
N19 M30
// Subprogram drawing a figure
// NC Program No.1000
N01 G17 G01 X10 Y10
N02 G01 X20 Y10
N03 G01 X20 Y30
N04 G01 X15 Y30
N05 G03 X10 Y25 R5
N06 G01 X10 Y10
N07 M99
// End of the subprogram
0
N14
N17
Y
X
30
30
40
20
10
50
10
Summary of Contents for NJ501-5300
Page 13: ...11 CONTENTS NJ NY series G code Instructions Reference Manual O031...
Page 28: ...Revision History 26 NJ NY series G code Instructions Reference Manual O031...
Page 40: ...2 G Code 2 2 NJ NY series G code Instructions Reference Manual O031...
Page 72: ...2 G Code 2 34 NJ NY series G code Instructions Reference Manual O031...
Page 108: ...3 M Code 3 2 NJ NY series G code Instructions Reference Manual O031...
Page 112: ...3 M Code 3 6 NJ NY series G code Instructions Reference Manual O031...
Page 124: ...3 M Code 3 18 NJ NY series G code Instructions Reference Manual O031...
Page 128: ...3 M Code 3 22 NJ NY series G code Instructions Reference Manual O031...
Page 136: ...4 PROGRAM CODES 4 8 NJ NY series G code Instructions Reference Manual O031...
Page 141: ......