60

Section 4 System Programming

G02

X1.0

Y-1.0 I0.5 J-0.5 Moves the tool using counter-clockwise

 

 

 

circular interpolation to the Program

 

 

 

coordinate X=3.0, Y=4.0, Z=-2.0 with a

 

 

 

center point at Program coordinate X=2.5,

 

 

 

Y=4.5, Z=-2.0.

G90

 

 

All XYZ coordinates after this command

 

 

 

will be interpreted as Program coordinates.

G01

X1.0

Y2.0 Z-0.5

Moves the tool directly to the Program

 

 

 

coordinate X=1.0, Y=2.0, Z=-0.5.

M00 Program Pause

The M00 command pauses processing of the G-Code program. You can use this command anywhere in the program. By default, LC displays a dialog box to inform you that it has paused processing. You can control whether or not this dialog box appears using the Message on M00 Program Pause checkbox in the G/M Code Setup dialog box.

M30 End of Program

The M30 command ends processing of the G-Code program and automatically resets the program to the top.

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 G-code program uses one subroutine called "mysub":

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.

Page 64
Image 64
Anaheim DPJ72LC2, DPJ72LC3, DPJ72LC4 manual M00 Program Pause, M30 End of Program, M98, M99, M02 Subroutine Commands