60 | Section 4 System Programming |
G02 | X1.0 | ||
|
|
| circular interpolation to the Program |
|
|
| coordinate X=3.0, Y=4.0, |
|
|
| center point at Program coordinate X=2.5, |
|
|
| Y=4.5, |
G90 |
|
| All XYZ coordinates after this command |
|
|
| will be interpreted as Program coordinates. |
G01 | X1.0 | Y2.0 | Moves the tool directly to the Program |
|
|
| coordinate X=1.0, Y=2.0, |
M00 Program Pause
The M00 command pauses processing of the
M30 End of Program
The M30 command ends processing of the
M98, M99, M02 Subroutine Commands
Subroutines allow you to eliminate repetitive programming. LC supports the use of subroutines with the M98, M99, and M02 (or M30) commands. Use of these commands is best explained through a simple example. The following
Example: |
|
|
G01 | X1 Y1 F10 | First line of main program. |
M98 Pmysub | Jump to subroutine “mysub”. | |
G01 | X0 Y0 | Continued execution after “mysub” ends. |
M02 | End of main program. | |
Omysub | First line of the subroutine called “mysub”. | |
G01 | X2 Y2 | Continued execution within the subroutine. |
M99 | End of subroutine “mysub”. |
In the main program, the M98 command causes program execution to jump to the first line of the subroutine named "mysub". Notice that the letter "P" must immediately precede the name of the subroutine with no spaces.