AS you have seen from previous posts I have been trying to understand the control language that enhances G-Code.
I wrote a simple routine:
(Safe Block)
G17 G21 G90 G54 G40 G49 G80
(Read the current tool mechanical coordinate position i.e MACH workspace)
(#20 is X, #21 is Y, #22 is Z)
#20=#864
#21=#865
#22=#866
(I want things nice and slow)
F50.0
IF #22 LT 20 GOTO 1; If Z < 20
G01 Y#21 - 10; Z is > 20 so Move Y minus 10
GOTO 2
N1 G01 X#20 + 10; Z is < 20 so Move X plus 10
N2 M30
%
and it actually works!!
Next is to try to get subroutine calls working
BTW: I read on another forum that if you select a file on the memory stick and press start (i.e. the file is not loaded yet) you get the tool path window showing a simulation of the code!
Onwards and upwards