Hello Guest it is August 25, 2019, 01:48:54 AM

Author Topic: XBox360 Controller Plugin New User Info  (Read 100754 times)

0 Members and 1 Guest are viewing this topic.

Re: XBox360 Controller Plugin New User Info
« Reply #130 on: August 02, 2018, 12:57:08 PM »
Thanks for responding. No, I finally got it working. It turned out to be a preset option on the controller that disables all the buttons when active. I disabled it and everything is working.
There is one thing you may be able to help me with. I have optioned all the buttons but I cant figure out how to option the controller to work the z axis touch probe. Any advice on how to get it working would be greatly appreciated.

Regards
Richard

Offline Leed3

*
  •  159 159
    • View Profile
Re: XBox360 Controller Plugin New User Info
« Reply #131 on: August 02, 2018, 05:31:06 PM »
If you try and configure a button you will see a number of choices. I would likely have to add it as an option. I don't have a touch probe so I don't know how it is fired. Please explain exactly everything about it that you can think of. For example, how is it installed, what make/mfg is it, when the probe touches the bed what occurs. If I can get enough info to figure out what Mach3 is doing with it then I may be able to watch for that code and handle it. Then it could be added as an option. The only other thing I can think of is for you to write a custom Macro (1-3) and then you can assign it to a button.

Lee
Re: XBox360 Controller Plugin New User Info
« Reply #132 on: August 04, 2018, 07:55:36 AM »
Basically you attach 5v from a bob to the plate and the router bit is grounded.
When it touches the  plate, it accounts for the thickness of the plate and sets a zero for the work surface.  I know technically that doesn't tell you much but that is basically how it works. I have been starting it using the mouse and clicking on the start arrow. 
I know your busy, if its not something simply don't spend allot  of time on it. Just though
it might be something simple I was overlooking. Thanks again for the reply.
Richard
Re: XBox360 Controller Plugin New User Info
« Reply #133 on: February 28, 2019, 10:39:18 PM »
Hi Lee,

I'm having a strange problem with the Lee Davis XBOX 360 Controller plugin for Mach3.
I'm using an official Xbox 360 wireless controller and an official Xbox 360 PC Adapter for Windows (I'm using Windows XP SP3)
I have programmed the Xbox joystick controls for XYZ movements and programmed many of the buttons for things like Auto-Zero, Home Reference, Reset, Park, Tool Change, etc.
All of the controls on the controller work fine when I start up Mach3, until I drive into a limit switch. After I hit a limit switch (and manually reset Mach3 using the RESET button on the computer screen), all of the programmed buttons no longer work, except for the XYZ joysticks and the left and right trigger controls (for XY & Z speed control).
I tried manually tripping the limit switches, but this did not cause the buttons to stop working (and I could use the Xbox controller to reset Mach3). It's only when I DRIVE into a limit switch that the problem occurs and the buttons go completely dead.
Once I run into a limit switch, the controller buttons will no longer work and the only way to get them working again is to restart Mach3. Restarting Mach3 is easy enough to do, but if you are in the middle of a CNC job you will lose all your references!
I am using the '2010 Screenset', so I tried switching from that to the Mach3 standard screenset, but that did not change the problem.

Offline reuelt

*
  •  444 444
    • View Profile
Re: XBox360 Controller Plugin New User Info
« Reply #134 on: March 06, 2019, 01:36:08 AM »
Hi Lee,

I'm having a strange problem with the Lee Davis XBOX 360 Controller plugin for Mach3.
I'm using an official Xbox 360 wireless controller and an official Xbox 360 PC Adapter for Windows (I'm using Windows XP SP3)
I have programmed the Xbox joystick controls for XYZ movements and programmed many of the buttons for things like Auto-Zero, Home Reference, Reset, Park, Tool Change, etc.
All of the controls on the controller work fine when I start up Mach3, until I drive into a limit switch. After I hit a limit switch (and manually reset Mach3 using the RESET button on the computer screen), all of the programmed buttons no longer work, except for the XYZ joysticks and the left and right trigger controls (for XY & Z speed control).
I tried manually tripping the limit switches, but this did not cause the buttons to stop working (and I could use the Xbox controller to reset Mach3). It's only when I DRIVE into a limit switch that the problem occurs and the buttons go completely dead.
Once I run into a limit switch, the controller buttons will no longer work and the only way to get them working again is to restart Mach3. Restarting Mach3 is easy enough to do, but if you are in the middle of a CNC job you will lose all your references!
I am using the '2010 Screenset', so I tried switching from that to the Mach3 standard screenset, but that did not change the problem.
I also had similar problem to yours but only on Windows 7.
1. I now avoid hitting the physical  limit switches by ALSO setting up SOFT LIMITs just a few mm before the limit switches so that softlimits (usually on) will trigger before the physical limit switches.
2. I had also increased the lookahead buffer from 20 to 200. That strangely improved the stability of the Xbox controller buttons probably because with more memory reserved, the Xbox plug-in memory does not get overwritten so often.
"the gift of God is eternal life through Jesus Christ our Lord"
Re: XBox360 Controller Plugin New User Info
« Reply #135 on: March 06, 2019, 10:35:19 AM »
Reuelt, thanks for the response. I have tried increasing the Look Ahead buffer to 200, but it didn't seem to make any difference. However, your suggestion about the Soft Limits is probably going to help. The last time I had to re-image my CNC computer, I think I turned OFF the Soft Limits feature. I'll turn that back on and set the limits a couple mm less, as you suggested. Thanks!

Offline reuelt

*
  •  444 444
    • View Profile
Re: XBox360 Controller Plugin New User Info
« Reply #136 on: April 15, 2019, 06:43:07 AM »

There is one thing you may be able to help me with. I have optioned all the buttons but I cant figure out how to option the controller to work the z axis touch probe. Any advice on how to get it working would be greatly appreciated.

Regards
Richard
Here is how I do it.
Operator | Edit button Script and select [Auto Tool Zero]

I have the following script there:
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P3" ' this delay gives me time to get from computer to hold probe in place
Code "G90 G31Z-100. F100" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetOEMDRO(85) 'get the exact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, 19.8 ) ' change 19.8mm to your plate thickness and then adjust for final accuracy
Sleep 100 'Pause for Dro to update.
Code "G1 Z25. F200" 'put the Z retract height 25mm you want here, must be greater than the touch plate thickness
While IsMoving ()
Wend
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if applicable
End If
If CurrentAbsInc = 0 Then 'if G91 was in effect before then return to it
Code "G91"
End If
If CurrentGMode = 0 Then 'if G0 was in effect before then return to it
Code "G0"
End If   

Now I copy this script into a new custom Macro named M798.m1s full path C:\Mach3\macros\Mach3Mill\M798.m1s
Now I config |config plugin | xbox360.....
with the config as attached

Now the A button on the xbox controller is ALSO an [AUTO TOOL ZERO] button.
« Last Edit: April 15, 2019, 06:45:28 AM by reuelt »
"the gift of God is eternal life through Jesus Christ our Lord"