I m trying to do a Boss Probing using the capabilities built into Mach4 but it doesn't work. All it does is move the gantry to the positive Y (plus the Approach value) location and then stops. What it should do is move to the max Y position, drop to the Z position indicated in the UI an then probe in the reverse direction until it hits the outer wall.
When I debug further, I see that the return code for the GCODE_EXECUTE_WAIT probing calls returns the dreaded MERROR_NOT_NOW error code !
Is this a known issue and is there a resolution
The mcProbing code is : (snippet)
------------- Probing sequence -------------
local rc = mc.mcCntlGcodeExecuteWait(inst, "G0 G90 G40 G80")
mm.ReturnCode(rc)
rc = mc.mcCntlGcodeExecuteWait(inst, string.format("G43 H%.0f", OffsetNum))
mm.ReturnCode(rc)
local ProbeTo = ProbeToYp
mc.mcCntlSetLastError(inst, "BOSS Probe A :"..string.format("G%.1f Y%.4f F%.1f", ProbeCode, ProbeTo + Approach, FastFeed))
rc = mc.mcCntlGcodeExecuteWait(inst, string.format("G%.1f Y%.4f F%.1f", ProbeCode, ProbeTo + Approach, FastFeed))
mm.ReturnCode(rc)
mc.mcCntlSetLastError(inst, "BOSS Probe A, rc = "..rc)
>>>>rc = 0
rc = Probing.CheckProbe(1, ProbeCode); if not rc then; do return end; end
rc = mc.mcCntlGcodeExecuteWait(inst, string.format("G%.1f Z%.4f F%.1f", ProbeCode, ZLevel, FastFeed))
mc.mcCntlSetLastError(inst, "BOSS Probe B : "..string.format("G%.1f Z%.4f F%.1f", ProbeCode, ZLevel, FastFeed))
mc.mcCntlSetLastError(inst, "BOSS Probe B, rc = "..rc)
>>>> rc = -18 !!
mm.ReturnCode(rc)
rc = Probing.CheckProbe(1, ProbeCode); if not rc then; do return end; end
rc = mc.mcCntlGcodeExecuteWait(inst, string.format("G%.1f Y%.4f F%.1f", ProbeCode, ProbeTo, FastFeed))
mm.ReturnCode(rc)
mc.mcCntlSetLastError(inst, "BOSS Probe C : "..string.format("G%.1f Y%.4f F%.1f", ProbeCode, ProbeTo, FastFeed))
mc.mcCntlSetLastError(inst, "BOSS Probe C, rc = "..rc)
>>>> rc = -18 !!
rc = Probing.CheckProbe(0, ProbeCode); if not rc then; do return end; end