Hello Guest it is October 04, 2023, 10:40:39 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 - rhtuttle

171
Mach4 General Discussion / Re: Mechanical speed ranges in Mach4
« on: January 15, 2020, 07:15:49 PM »
function m42()
   local inst = mc.mcGetInstance("Spindle range 2")
   local rc
   local currentRange
   currentRange, rc = mc.mcSpindleGetCurrentRange(inst)
   if (currentRange == 2) then
      return -- nothing to do!
   end
   -- Do the machine dependent range change control.
   --
   -- End machine dependent range change control

   -- Next, tell Mach what rage we are now in IF the above is successful.
   mc.mcSpindleSetRage(inst, 2) <----Should be: mc.mcSpindleSetRange(inst, 2)
end

if (mc.mcInEditor() == 2) then (to debug it should be: if (mc.mcInEditor() == 1) then
    m42()
end

172
Mach4 General Discussion / Re: Mechanical speed ranges in Mach4
« on: January 15, 2020, 11:05:20 AM »
daniba73,  you're not going to get much help if you don't follow the advice as given.  You say that you tried both suggestions and they didn't work but did not provide what you 'actually' did.  Attach the macro file that you tried and the gcode that you tried as well.

RT

173
Mach4 General Discussion / Re: Mechanical speed ranges in Mach4
« on: January 13, 2020, 06:02:52 PM »
Can't help if you don't post the macro code you are using.

174
Has anyone successfully implemented xBox360 code for trigger acceleration ala Lee's Mach3 controller?  Willing to share?

I've written code for Daz's plugin for my lathe but it doesn't increase speed with thumb stick and trigger like Lee's does.  I don't use the trigger as a lock like some.  I disable the controller when not in use in case I bump it while doing something else.

Just picked up a mill and would like to not reinvent the wheel if someone is willing to share.

Tia

RT

175
Hi Lee, thanks for responding so quickly.  I know he doesn't have 2 controllers so I will check to see if there is another device.  I'm not the greatest at windows so I think I should use dxdiag to check.

176
Good day all,

Trying to help a friend whose WinXp box went down and now has a win10 box.  I have been able to remote in and set up mach3 and get it to run.  He and I use to have the xBox360controller on XP machines and loved the way Lee allowed us to set it up.  I have a win10 machine now so I can help him out.

I have installed the latest version and the vendor and product id's show up in the boxes in both his and mine.  I get no errors when I load Mach3 and the plugin is registered and has a green check mark.  The buttons are configured the way we used to have them.

The problem.  I can get my controller to work with win10 and Mach3 but his does not.  The wireless controller for him is always connecting to the upper right instead of the upper left.  I thought I read somewhere that it must connect to the upper left.

Thoughts on what is causing his to connect upper right and does it make a difference?  Any other thoughts as to why his is not connecting?

TIA

RT

177
Mach4 General Discussion / Re: Mechanical speed ranges in Mach4
« on: January 13, 2020, 10:09:24 AM »
You could pass the range you want as a parameter to the macro: m100 p2

178
Mach4 General Discussion / Re: Mechanical speed ranges in Mach4
« on: January 13, 2020, 09:40:44 AM »
If I understand you correctly here is a code snippet that I use in a macro:

  if mc.mcSpindleGetCurrentRange(inst)~=1 then
    wx.wxMessageBox('Set Spindle Gearing to High Speed')
    mc.mcSpindleSetRange(inst,1)
  end

HTH

RT

179
I can confirm g83 exhibits odd behavior, I'm using with pmdx411 controller.

RT

180
Hopefully Brett or Steve will chime in and comment on whether g83 is vendor driven or mach4.