First a huge thanks to the MPCNC dev team, nice work. Really appreciate all your efforts!
I’m 95% complete on my MPCNC and have been testing the z probe function.
Using Fusion 360 with a MPCNC post processor to generate gcode (see below for z probe code).
I’m using unmodified MPCNC firmware.
I have validated stepper movements, I have run gcode to engrave several items and it worked properly.
I’m using the 2 pin endstop cable that was in the mini-rambo box about 14" long.
Work Flow
- Power up mini-rambo
- Locate head / place probe plate on work piece
- Connect 1 z axis min wire to the probe plate and the wire other to the cutter
- Run gcode (the head moves 40mm up to the tool change position)
- Home position was not updated.
From videos posted I see the logic appears to be:
- circuit is normally open
- the G28 Z command should drive the head down until the endstop circuit is closed (tool hits probe plate), the X, Y and Z coords are zeroed to establish physical home position of the head.
My Debug Work Flow
- Power up mini-rambo
- Short z axis min wire S and - together
- Run gcode , the head moves DOWN to the work piece as it should.
- Just before the head makes contact with the work piece I unshort the S & - and the head moves 40 mm up to the tool change position. It appears the home position is now set based on me shorting the S & - leads.
- Now it appears the z position was captured when I opened the circuit and the machining process starts at this point. So it seems to me the logic is inverted???
So I can test the endstop function of the mini-rambo firmware but it seems the logic is backwards in my setup? Any help is appreciated.
THANKS IN ADVANCE!
Jim
======
;Fusion 360 CAM 2.0.9512
; Posts processor: DIYCNC_Marlin20.cps
; Gcode generated: Saturday, January 9, 2021 7:18:44 PM GMT
; Document: Untitled
; Setup: Setup1
;When using Fusion 360 for Personal Use, the feedrate of
;rapid moves is reduced to match the feedrate of cutting
;moves, which can increase machining time. Unrestricted
;rapid moves are available with a Fusion 360 Subscription.
;
; Ranges table:
; X: Min=-5.707 Max=5.707 Size=11.413
; Y: Min=-5.707 Max=5.707 Size=11.413
; Z: Min=0.5 Max=15 Size=14.5
;
; Tools table:
; T2 D=3 CR=1 - ZMIN=0.5 - bullnose end mill
; *** START begin ***
G90
G21
M84 S0
G92 X0 Y0 Z0
; COMMAND_TOOL_MEASURE
M0 Attach ZProbe
G28 Z
G92 Z0.0
G0 Z40 F300
M400
M0 Detach ZProbe
; *** START end ***
; *** SECTION begin ***
;2D Pocket1 - Milling - Tool: 2 - bullnose end mill
; X Min: -5.707 - X Max: 5.707
; Y Min: -5.707 - Y Max: 5.707
; Z Min: 0.5 - Z Max: 15
; COMMAND_START_SPINDLE
; COMMAND_SPINDLE_CLOCKWISE
M0 Turn ON 12000RPM
; COMMAND_COOLANT_ON
M117 2D Pocket1
; MOVEMENT_CUTTING
G1 X-5.139 Y4.162 Z15 F1206
G1 Z5
; MOVEMENT_LEAD_IN
G1 Z1.5
G1 Z0.0
G1 X-5.135 Z0.753
G1 X-5.124 Z0.707
G1 X-5.106 Y4.16 Z0.664
G1 X-5.081 Y4.159 Z0.624
G1 X-5.051 Y4.157 Z0.588
G1 X-5.015 Y4.155 Z0.557
G1 X-4.975 Y4.152 Z0.533
G1 X-4.932 Y4.149 Z0.515
G1 X-4.886 Y4.146 Z0.504
G1 X-4.839 Y4.143 Z0.5
G3 X-3.424 Y4.566 I0.135 J2.129
; MOVEMENT_CUTTING
G2 X3.424 Y-4.566 I3.424 J-4.566
G2 X-3.424 Y4.566 I-3.424 J4.566
; MOVEMENT_LINK_TRANSITION
G2 X-2.564 Y4.591 I0.448 J-0.597
G3 X-1.709 Y4.495 I0.521 J0.785
; MOVEMENT_CUTTING
G2 X1.709 Y-4.495 I1.709 J-4.495
G2 X-1.709 Y4.495 I-1.709 J4.495
; MOVEMENT_LINK_TRANSITION
G2 X-0.868 Y4.274 I0.266 J-0.698
G3 X-0.078 Y3.912 I0.77 J0.64
; MOVEMENT_CUTTING
G2 X0.078 Y-3.912 I0.078 J-3.912
G2 X-0.078 Y3.912 I-0.078 J3.912
; MOVEMENT_LINK_TRANSITION
G2 X0.648 Y3.405 I0.015 J-0.752
G3 X1.245 Y2.749 I1.058 J0.363
; MOVEMENT_CUTTING
G2 X-1.245 Y-2.749 I-1.245 J-2.749
G2 X1.245 Y2.749 I1.245 J2.749
; MOVEMENT_LINK_TRANSITION
G2 X1.684 Y1.943 I-0.314 J-0.693
G3 X1.849 Y1.04 I1.398 J-0.21
; MOVEMENT_CUTTING
G2 X-1.849 Y-1.04 I-1.849 J-1.04
G2 X1.849 Y1.04 I1.849 J1.04
; MOVEMENT_LINK_TRANSITION
G2 X1.677 Y0.066 I-0.679 J-0.382
G3 X1.023 Y-0.676 I2.319 J-2.705
; MOVEMENT_CUTTING
G2 X-1.023 Y0.676 I-1.023 J0.676
G2 X1.023 Y-0.676 I1.023 J-0.676
; MOVEMENT_LINK_TRANSITION
G2 X0.566 Y-0.537 I-0.208 J0.137
G3 X0.156 Y-0.291 I-0.278 J0.001
; MOVEMENT_CUTTING
G2 X-0.156 Y0.291 I-0.156 J0.291
G2 X0.156 Y-0.291 I0.156 J-0.291
; MOVEMENT_LEAD_OUT
G1 X0.121 Y-0.307 Z0.508
G1 X0.085 Y-0.319 Z0.515
G1 X0.047 Y-0.327 Z0.523
G1 X-0.001 Y-0.33 Z0.555
G1 X-0.05 Y-0.327 Z0.588
G1 X-0.082 Y-0.32 Z0.637
G1 X-0.113 Y-0.311 Z0.685
G1 X-0.134 Y-0.302 Z0.8
; MOVEMENT_CUTTING
G1 Z15
; *** SECTION end ***