-
Format of end
The last block should contain M02 or M03 to indicate the end of program.
-
Format of Comments
All information after the ";" is regarded as comments.
All information between "( )" is regarded as comments.
1.8.2
1.8.2
Main
Main
Program
Program
1.8.2
1.8.2 Main
Main Program
Program and
There are two type of program: main program and subprogram. The CNC operates
according to the main program. When a execution command of subprogram is at the
execution line of the main program, the subprogram is called. When the execution of
subprogram is finished, the system returns control to the main program.
Follow the direction
ofthe subprogram
Note:
Note:
Note:
Note:
Main program and its subprogram must be written in a same file with a different program
codes.
end of of of of program
end
end
program
program
program
Comments
Comments
Comments
and
and
Subprogram
Subprogram
and Subprogram
Subprogram
Main program
Instruction 1
Instruction 2
Instruction n
Instruction n+1
Figure 1.27 Main program and subprogram
Subprogram
Instruction 1
Instruction 2
Return to the main program
20
1. General
Need help?
Do you have a question about the HNC-18iT v4.0 and is the answer not in the manual?