Mach Discussion > Mach SDK plugin questions and answers.

XBox360 Controller Plugin New User Info

<< < (28/31) > >>

reuelt:

--- Quote from: RichardV48 on August 02, 2018, 12:57:08 PM ---
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

--- End quote ---
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.

meally3:
Hi folks,

Weird issue here. Using an aftermarket 360 controller and running off a CNCDrive AXBB-E. Everything works just fine, except the jog rate is very slow and does not change based off  jog rate% or feed rate in Mach3. Is there a setting or something I can change? Specifically it will only do 2.29inch/min. I've tried calibrating the controller in windows.

Thanks

rhtuttle:
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

Leed3:

--- Quote from: rhtuttle on January 13, 2020, 01:45:56 PM ---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


--- End quote ---

If you have 1 controller connected, then the upper left light is on meaning this controller is number one. If you connect a second one then the upper right light is the only one on etc. This is for Windows not Mach. So, it looks like the remote user has a Windows 10 that thinks it is the 2nd controller. Why - could be that he has 2 controllers hooked up. Could be that he has another device that Windows thinks is a controller. The device manager should indicate if there are 2 devices.
It doesn't matter id 1 controller is wireless and the other is wired.
Lee

Leed3:

--- Quote from: meally3 on December 17, 2019, 04:49:46 PM ---Hi folks,

Weird issue here. Using an aftermarket 360 controller and running off a CNCDrive AXBB-E. Everything works just fine, except the jog rate is very slow and does not change based off  jog rate% or feed rate in Mach3. Is there a setting or something I can change? Specifically it will only do 2.29inch/min. I've tried calibrating the controller in windows.

Thanks

--- End quote ---

Don't know if I can be much help on that but I would suggest trying a true Microsoft XBox360 controller first. My guess is that the range of the joystick (thumbstick) motion is set too low. In calibration, you should be able to see the coordinates (Raw Data).
The range is 0 to 64K. Your joystick (thumbstick) may have a lower range.
Lee

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version