Hello Guest it is April 27, 2024, 10:56:54 PM

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.


Messages - Bill_O

291
Mach4 General Discussion / Re: spindle dwell before run
« on: July 29, 2020, 08:48:29 AM »
Graham,

I feel like a real idiot.
I looked at that page 10 times and never looked at the column headings.
I just looked at the bottom.

thanks,
bill

292
Mach4 General Discussion / spindle dwell before run
« on: July 28, 2020, 05:25:57 PM »
In Mach3 there was a delay you could set for the spindle to get (up or down) to speed before the file started to run.
I am unable to find a similar setting in Mach4 .
Or do I need to make a custom m3 and use mcSpindleSetAccelTime?

Thanks,
Bill

293
Mach4 General Discussion / loop help
« on: July 28, 2020, 05:21:55 PM »
I am trying to make a loop that will turn off all outputs.
I know it is probably something I have wrong in the format but I have tried many different ways and can not get it.

local OutputNum = 0
   while (OutputNum <= 63) do
      OutputName = (mc.OSIG_Output .. 'OutputNum')
      hsig = mc.mcSignalGetHandle(inst, 'OutputName')
      mc.mcSignalSetState(hsig, 0)
      OutputNum = OutputNum + 1
   end

Any help is greatly appreciated.
Bill

294
Mach4 General Discussion / Re: PMDX-422 help please
« on: June 18, 2020, 02:30:55 PM »
Hard for me to see but it looks like you have it set to 200 steps per rev so your 200 steps per unit should have done one revolution.
2000 rpm is fast for a stepper motor.
Slow your velocity down to 500 and acceleration to 50 and try again on the moves.
Having said that the velocity should not come into play unless you are doing a G0 move.
The acceleration will probably need to be 50 or lower though.
For one of our machines I have some very strong steppers being fed high voltage.
I max them at about 900 rpm and an acceleration of 50.

295
Mach4 General Discussion / Re: PMDX-422 help please
« on: June 18, 2020, 12:14:20 PM »
We also need to know how sw1 to sw6 are set.

296
Mach4 General Discussion / Re: Mach4 Lua for Dummies
« on: June 18, 2020, 08:36:41 AM »
Graig,

Thanks.
Did you notice anything i had incorrect?

Bill

297
Mach4 General Discussion / Mach4 Lua for Dummies
« on: June 17, 2020, 05:21:53 PM »
Hopefully this will help anyone starting to write their own code in Mach4.
I am not a programmer and it has taken me some time to understand how all of this works.
I tried to put the information in here in a format I wish was available to us non programmers to understand.
I am fairly certain this is all correct.
Can those of you who know this well make sure I do not have any errors.

298
Mach4 General Discussion / Re: mach4 homing
« on: May 27, 2020, 12:46:33 PM »
Vatersauto,

Reference All is the Home function.
Just different name.
Depending on what is programed in the button it should work just like the G28

Bill

299
Mach4 General Discussion / Re: Tool change Problem.
« on: May 14, 2020, 09:19:49 AM »
What was the issue?

300
Mach4 General Discussion / Re: Tool change Problem.
« on: May 13, 2020, 11:15:52 AM »
I could be very wrong but I think you need to change the selectedtool below to currenttool.



local NewOffset = probedz
  mc.mcToolSetData(inst, mc.MTOOL_MILL_HEIGHT, selectedtool, NewOffset)
  mc.mcCntlSetLastError(inst, string.format("Auto tool setting complete, Offset = %.4f", NewOffset))
wx.wxMessageBox("Toolchange Complete.\nTLO Set")
        end