2 G Code
2 - 58
NJ/NY-series G code Instructions Reference Manual (O031)
The following program rotates a figure defined in the subprogram.
Programming Example
N11 G17 G64 G91 G01 F1000
N12 M03 S500
N13 X10
N14 G68 X10 Y0 R90
// Sets the rotation angle to 90°
N15 M98 P1000
// Cuts the rotated figure (indicated by the solid
line in the following figure)
N16 G69
// Disables rotation
N17 M98 P1000
// Cuts the unrotated figure (indicated by the
broken line in the following figure)
N18 M05
N19 M30
// Subprogram drawing a triangle
// NC Program No.1000
N01 G17 G01 X10 Y3
N02 Y-6
N03 X-10 Y3
N04 M99
// End of the subprogram
N15
N17
R90
N13
0
Y
X
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: ......