471
7
7 Motion Control 7.3 Execution and Call of Motion Control Subprogram
c) Creating a G-code subprogram
Create a G-code subprogram to enable the main program to call CNC00 (MC10000), as shown in the
following gure.
Motion control
subroutine label
set
Motion control
subroutine
enable
The CNC subprogram is a G-code subprogram input in text. If G-code is generated using a third-party
tool, the Import function on the menu can be used to import the G-code. The content of the created CNC
subprogram is shown in the following gure.
The following table shows the relationship between the main program, subprograms, and instructions.