Koda: |
% G21 (metrične enote) G91 G38.2 F350 Z-60 (1. spust Z osi do stika oz. max 60mm) G90 G0 Z[#5063+2.5] (ob stiku se dvigne za 2.5mm) G91 G38.2 F150 Z-3.5 (ponoven počasnejši spust do ponovnega stika oz. max 3.5mm) G90 G0 Z[#5063+2.0] (višina stika + 2.00mm -> postavi se 2mm nad PCB ploščico) G10 L20 P1 Z3.50 (postavi Z na trenutno višino ki znaša ploščica"1.50mm" + 2mm=3.50) (debug, Rezkar se nazaja 3.50mm nad obdelovancem.) % |
Koda: |
net remote-z-off halui.mdi-command-00 <= pyvcp.z-off (prva vrstica) net remote-z-off halui.mdi-command-01 <= pyvcp.z-off (druga vrstica) net remote-z-off halui.mdi-command-02 <= pyvcp.z-off (tretja vrstica) net remote-z-off halui.mdi-command-03 <= pyvcp.z-off (četrta vrstica) ... |
Koda: |
# set up the z-axis touchoff button net remote-z-axis-touchoff classicladder.0.in-00 <= pyvcp.z-axis-touchoff # set to mdi mode # show pin net mode halui.mode.is-mdi => classicladder.0.in-01 # wait for motion to finish Use this file if you are using the EMC2 version 2.3.x or newer. net in_pos motion.in-position => classicladder.0.in-02 # wait for motion to finish Use this for motion if you are using version 2.2.X or older of EMC2 #net in_pos motion.motion-inpos => classicladder.0.in-02 # mdi command 1 MDI_COMMAND = G38.2 Z-3 F16 net z-touchoff classicladder.0.out-00 => halui.mdi-command-00 # mdi command 2 MDI_COMMAND = G92 Z0.25 net z-zero classicladder.0.out-01 => halui.mdi-command-01 # mdi command 3 MDI_COMMAND = G0 Z1 #net rapid-away classicladder.0.out-02 => halui.mdi-command-02 # mdi command 4 MDI_COMMAND = G0 X-2 Y1 net zero-x-y halui.mdi-command-03 <= pyvcp.x-y_zero |
Koda: |
<?xml version='1.0' encoding='UTF-8'?> <pyvcp> <!-- Include your PyVCP panel here. The contents of this file will not be overwritten when you run stepconf again. --> <labelframe text="Zero Axes"> <button> <halpin>"o100"</halpin> <text>"Touch Off Z"</text> <font>('fixed',10)</font> </button> </labelframe> </pyvcp> |
Koda: |
#limits debounce to stop false triggers loadrt debounce cfg=2 setp debounce.0.delay 100 addf debounce.0 base-thread #net deb-probe-in debounce.0.0.in <= parport.0.pin-13-in-not #net probe-in debounce.0.0.out net probe-in => motion.probe-input |
Koda: |
MDI_COMMAND = o100 call |
Koda: |
net remote-o100 halui.mdi-command-00 <= pyvcp.o100 |
Koda: |
[b]<pre> o100 sub[/b] #1 = 1.47 (PLATE THICKNESS) #2 = 2 (UP OFF PLATE FOR 2ND TOUCH) #3 = -3.5 (Distance depth for retouch) #4 = 8.53 (offset) G21 (uporabi metrične enote) (DEBUG,PROBE is ACTIVE) G10 L20 P0 Z0 ( Set current Z position to 0 so that we will always be moving down ) G38.2 Z-60 F450 (1st probe move) G90 G0 Z[#5063+2.5](move #2 above PCB plate for 2nd touch) G91 G38.2 F150 Z#3 (retouch max -3.5mm) G90 G0 Z[#5063+#4] (Plate tickness + offset) G10 L20 P1 Z10 (Set Z to current position = PCB + OffSet = 10mm ) (DEBUG,REMOVE TOUCH PLATE AND PRESS START TO CONTINUE) [b]o100 endsub </pre>[/b] |