How does Omori NC call subroutines?

O 10 program name? (main program)

G50? X 170。 ? Z 100。 ; ? Workpiece coordinate system setting

G99? M03? ; ? Every feed? Spindle forward rotation

T0 100? ; Call the first tool tool.

M98? P 1 1? H0 1? L6? ; ? Call the program 1 1? From where?

N20? M05N0 1 section starts to be executed,

W90。 ;

M30 called six times.

O 1 1? Program name? (subroutine)

N0 1? G00? X29.Z90? Tool rapid positioning

N02? G0 1? X 17。 f 0. 1; Automobile end face

N03? G00? X 170。 Z 100。 ; retract

N04? T0202? ; ? Change 60 sharp knives

N07? G00X24.95? Z90。 ; location

N08? g 0 1W-2.5f 0. 1; ? Cut φ 25 excircle

N09? G0 1X23。 ; Automobile 30 degree angle

N 10? W-8.8? ; Tangent φ 23 excircle

N 1 1? X24.95

N 12? W-3。 ;

N 13? G00X 170。 Z 100。 T0200? Return the knife and remove it to make up the value.

N 14? T0303? ; ? Replace the tool

N 15? X26.Z75

N 16? X 19。 f 0. 1; ? cut off

N 17? X 170。 T0300? Return the knife and remove it to make up the value.

N 18? W 10。 ; ? Z direction retraction

N 19? G50Z 100。 ? ; ? Re-establish coordinate system

M99? N20? ; Return to the main program after calling.