Download USBCNC manual

Transcript
EDINGCNC
Manual
An example:
sub do_circle_holes
#1=0
g0 z1 x0 y0
while [#1 <> 360]
#2 = [10 * sin[#1]]
#3 = [10 * cos[#1]]
g0 x[#3] y[#2]
g1 z-1
g1 z1
#1 = [#1 + 30]
if [#1 == 360]
msg "Done"
else
msg "processing at angle "#1
endif
endwhile
endsub
gosub do_circle_holes
m30
This example drills holes at a circle with a radius of 10, each 30 degrees. The
code that performs this is put in a subroutine, which can be called as many
times as needed in the main program.
Special interpreter commands, non G-Code
Messages:
Msg "Hello there, the value of #1 = "#1" and the value of #2 = "#2
4.2.4.1 ERRMSG
Same as Msg, but this one generates an error
4.2.4.2 STORE POSITION
SP <filename> [0 or 1]
This command stores the actual position in given file name.
The extra parameter 0 means create the file.
1 means add to existing file.
If only file name is given, the position is added to existing file.
4.2.4.3 DLGMSG
Gives a dialog message for an interactive g-code program.
04 December 2015
Release 4.02
166