Hello Guest it is April 25, 2024, 10:01:42 AM

Show Posts

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.


Topics - thespindoctor

Pages: « 1 2 3 4 5 6 7 »
31
SmoothStepper USB / G31 will run twice only
« on: April 02, 2017, 11:28:37 AM »
g31 will only run 2 times.  Is this a bug in the ess plugin??


Quote

inst = mc.mcGetInstance()

mc.mcCntlGcodeExecuteWait(inst,"G90G00 X-4.2 Y-.6") --position at beginning at pin setpoint

mc.mcCntlProbeFileOpen(inst, "C:\\mach4Hobby\\GcodeFiles\\KFCProbeValues.csv","%.4AXIS_ %.4AXIS_Y\n", true)

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")


mc.mcCntlProbeFileClose(inst) --close probe file


32
Mach4 General Discussion / G31 will run twice only
« on: April 02, 2017, 11:20:17 AM »
This code seems correct.  No matter what I try, I can only get 2 probe moves.  It does the same thing in a loop with only 2 iterations then bombs out.    
The file is opening and 2 lines of x and y position are recorded correctly.  It will not do the third block.  The screen blinks at the end of the second block.
Any code after the second block is skipped so no message etc can be displayed.

Why is it aborting like this?

Quote

inst = mc.mcGetInstance()

mc.mcCntlGcodeExecuteWait(inst,"G90G00 X-4.2 Y-.6") --position at beginning at pin setpoint

mc.mcCntlProbeFileOpen(inst, "C:\\mach4Hobby\\GcodeFiles\\KFCProbeValues.csv","%.4AXIS_ %.4AXIS_Y\n", true)

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")

     mc.mcCntlGcodeExecuteWait(inst,"G31 Y-.65 F20.0")
     mc.mcCntlGcodeExecuteWait(inst,"G91G00 X-.1 Y.07")
     mc.mcCntlGcodeExecuteWait(inst,"G90")


mc.mcCntlProbeFileClose(inst) --close probe file


33
Mach4 General Discussion / probing with do loop
« on: April 01, 2017, 06:54:40 PM »
Using a do loop to repeat a probing action but in the loop it does not work properly, not sure why

This is the code from the probe a single Y surface from the probing screen. I have just added a loop to increment an X axis move.  The code preceeding is not shown but remains as it was written by the coding Guru...

Quote

local iter
local travel = -4.2

for iter = 1, 100 do

 local rc = mc.mcCntlGcodeExecuteWait(inst, "G00 X"..travel)
        mm.ReturnCode(rc) 

    prb.SingleSurfY(ypos,work)

    travel=travel-.1

end


Quote
prb.SingleSurfY(ypos,work)  -- works fine when used alone without the other code to loop and increment X


34
Mach4 General Discussion / file i/o
« on: April 01, 2017, 06:05:43 PM »
Why does this fail with error that the file cannot be created?
Not sure how to open and close files for probe data.

Quote

local rc=mc.mcCntlProbeFileOpen (inst, "KFCProbeFile.csv", "%.4Axis_X, %.4Axis_Y", TRUE)

local rc=mc.mcCntlProbeFileClose(inst)


Thanks

35
Mach4 General Discussion / Simple Lua question
« on: March 29, 2017, 09:57:48 PM »
Trying to learn Lua.  Simple try by cutting and pasting does not work.  I took the script from the Single Surface Y button on the probing screen which works fine when copied to another button.  Then I would like to move x and run the single surface y again.  So the last lines are below


prb.SingleSurfY(ypos, work)
Local rc=mc.mcCntlGcodeExecuteWait(Inst,"G0 X-5.0")
mm.ReturnCode(rc)
prb.SingleSurfY(ypos, work)


It probes twice very nicely but skips the G0 move.  Why?

Thanks

36
Mach4 General Discussion / Understanding Lua
« on: December 18, 2016, 09:54:39 PM »
i note in the screen for probing for  Measure Z that Prb.SingleSurfZ  is the function called but in
the probing module it is called Probing.SingleSurfZ     How can that be?

THanks
Keith

37
Mach4 General Discussion / Designing a tool changer for a Mill
« on: December 17, 2016, 10:17:50 AM »
I would like to develop an automatic tool changer since Mach4 can handle one.
Not sure where to look for how a rack style changer is set up and how the tools would be picked up such as with a drawbar.
I have been studying the Mach4 doc on Lua programming to read a file for tool positions and that's made me want to go for it!
Thanks for any guidance!

Keith

38
Mach4 General Discussion / Can soft limits be automatically on at start up?
« on: December 11, 2016, 09:53:59 AM »
My machine is working great with limit override and soft limits!  ;D It is wonderful to be able to go at rapids to the limits and it always stops now with no limit switches being hit.  The only issue is that I have is that I have to activate soft limits by going to another screen to hit the button to turn on soft limits.  It would be better to have soft limits on when the Mach4 boots then turn off soft limits if not needed.  I see no reason to ever run the machine with soft limits off?  Is there a way to set soft limits on at boot. 

Thanks
Keith

39
SmoothStepper USB / charge pump function
« on: November 28, 2016, 06:59:29 PM »
Using the ESS and C62 BOB with newly implemented charge pump.  The Gecko drives get power as soon as I relieve the Estop condition and there is no motor movement until I click enabled.  This is better but I thought I used to get no power to Geckos until I hit enable using old system with Mach3.   Would that be better?  Can that be done? 

Thanks
Keith

40
I have the newest plugin and ESS and the limit switches are now working well as sell as Estop and motors.
However the ref all button moves the first axis and hits the switch fine but backs off and cut continues to move away never stopping.  This happens with any axis
I have used DaztheGas' workaround with scripts changed as recommended as well as the updated version.  ESS was supposed to correct the problem
with a new plugin but apparently the Home offset feature in Mach4 is still not working for me.  Using the C62 BOB.

THanks
Keith

Pages: « 1 2 3 4 5 6 7 »