1
Mach4 General Discussion / Re: 2 separate displays with independent screens, is it possible?
« on: February 03, 2020, 11:42:29 PM »
where does one obtain this tasty nugget??
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#107 = 0 ; Starting (and Current) Y Position
#101 = 46.5 ; X Max (Static Variable, Object width)
#102 = 34.0 ; Y Max (Static Variable, Object height)
#103 = 0.1 ; Step overlap (Static Variable)
#104 = 1 ; Tool Diameter (Static Variable)
#105 = #104-#103 ; Y Increment <<<======= FAILS HERE - UNKNOWN COMMAND
#106 = -0.010 (Depth of Cut)
G0 G90 G54 G17 G40 G49 G80 ;Safety Line
G0 X0 Y0 Z.2 ; Home
;M03 S18000; Start spindle
G1 Z0.2 F10 ; Get close to surface
G04 P5000 ; Pause 3 seconds for VFD comes to speed
M0 ; Confirm the Cycle Start
G01 Z#106 ; Z to Depth
WHILE [#107 LE #102] DO1 ; Start Loop, run until Y value reached
G01 Y#107 F10. ; move TO Y
G01 X#101 ; Go To X Max
#107=#107+#105 ; Increment Y variable by step over value
G01 Y#107 F10. ; move Y to next step
G01 X0 ; Move to X Min
#107=#107+#105 ;increment Y by step over value
END1 ; End Loop
G0 Z5.0 ; Raise Spindle
M04 ; stop spindle
G0 G90 G54 G17 G40 G49 G80
G0 X0.0 Y0.0 ; Go Home
M30 ; exit routine