Appendices
A - 4
NJ/NY-series G code Instructions Reference Manual (O031)
The following gives an example of program parsing by CNC Operator.
The original NC program created by the user
Main program
N01 G17 G64 G91 G01 F1000
// block-number = N{line-number}
N02 M03 S1000
/1 N03 X10
// Optional Block Skip
N04 X[P0]
// Variable Indirection
N05 if (Q0==1){X10}
// Control syntax
N06 M98 P1000
// Subprogram call
N07 M100 VA0
// M-code
N11 G91 G99 G84 X10 Y0 Z-10 R-5 P1000 K1// Start of Tapping Cycle
N12 G99 X10
N13 G98 X10
N14 G80
// End of Tapping Cycle
N15 M05
N16 M30
// End of program
Subprogram
N01 G04 P100
N02 M99
// End of subprogram
NC program after program parsing by CNC Operator
Main program
open prog 1
N1 G17 G64 G91 G01 F1000 M999.002
N3 M03 S1000 M999.002
cskip1 N4 X10 M999.002
N5 X(P0) M999.002
if(Q0 == 1)
{
N6 X10 M999.002
}
N7 M98 P1000 M999.002
N8 M100 A0 M999.002
N10 G91 G99 G80.001 G84 X10 Y0 Z-10 R-5 P1000 K1 M999.002
N11 G99 G84 X10 M999.002
N12 G98 G84 X10 M999.002
N13 G80 M999.002
N14 M05 M999.002
N15 M30 M999.002
close
Subprogram
open subprog 1000
N1 G04 P100 M999.002
N2 M99 M999.002 return
close
A-1-2
Program Parsing Example
Содержание NJ501-5300
Страница 13: ...11 CONTENTS NJ NY series G code Instructions Reference Manual O031...
Страница 28: ...Revision History 26 NJ NY series G code Instructions Reference Manual O031...
Страница 38: ...1 Basic Information on NC Programming 1 10 NJ NY series G code Instructions Reference Manual O031...
Страница 40: ...2 G Code 2 2 NJ NY series G code Instructions Reference Manual O031...
Страница 53: ...2 15 NJ NY series G code Instructions Reference Manual O031 2 Dwell Instruction Name Page G04 Dwell P 2 16...
Страница 72: ...2 G Code 2 34 NJ NY series G code Instructions Reference Manual O031...
Страница 108: ...3 M Code 3 2 NJ NY series G code Instructions Reference Manual O031...
Страница 112: ...3 M Code 3 6 NJ NY series G code Instructions Reference Manual O031...
Страница 124: ...3 M Code 3 18 NJ NY series G code Instructions Reference Manual O031...
Страница 128: ...3 M Code 3 22 NJ NY series G code Instructions Reference Manual O031...
Страница 136: ...4 PROGRAM CODES 4 8 NJ NY series G code Instructions Reference Manual O031...
Страница 141: ......