Hello Guest it is May 08, 2021, 09:00:12 AM

Author Topic: using auto tool zero with xbox controller  (Read 7461 times)

0 Members and 1 Guest are viewing this topic.

Re: using auto tool zero with xbox controller
« Reply #10 on: August 13, 2016, 12:20:12 PM »
Gosh that was quick.... thanks I will try afterwards or tommorrow, I drank wine with my dinner so its not a good time right now lol

Um which Xbox controller "script" did you use? one is called Shilling Systems and one is by Lee Davis?

I follow GuruBrew on Utube and he has both a "film" for Zeroing and using an Xbox controller

Regards
« Last Edit: August 13, 2016, 12:21:51 PM by Ford Prefect »
Re: using auto tool zero with xbox controller
« Reply #11 on: August 13, 2016, 12:53:46 PM »
I use the xbox controller by lee Davis. I have watched teh Guru brew also. Lots of good info.
Regards
Charlie M.
Re: using auto tool zero with xbox controller
« Reply #12 on: August 14, 2016, 09:58:38 AM »
Done and done :)

I had a bit of problem finding the field to put the "custom macro macro #1 field I put M701.m1s." but it was to left on the xbox config window, I was looking for a file or something

I put my "ref all" macro on there too while I was on a roll

once again thanks Charlie

regards
Re: using auto tool zero with xbox controller
« Reply #13 on: August 14, 2016, 10:54:50 AM »
Your welcome. glad you got it working.
Regards
Charlie M.
Re: using auto tool zero with xbox controller
« Reply #14 on: September 14, 2016, 12:50:38 PM »
At present I use the mouse to increase and decrease the feedrate speeds, I wanna use these commands from the XBoxC

I looked up the OEM codes for

feedrate reset = 1014
feedrate +      =277
feedrate -       =278

I will make three files as per documentation
Macro-XBtn1.mls Macro-XBtn2.mls Macro-XBtn3.mls
and assign them to buttons etc on the xbox 360 controller

my question is:-

what do I write in Macro-XBtn1.mls if I want the to "for example" reset the feedrate

regards

Re: using auto tool zero with xbox controller
« Reply #15 on: September 15, 2016, 06:58:53 AM »
got a bit nearer, still doesnt work though

rem code start
DoOEMButton (1014) 'feedrate reset
Re: using auto tool zero with xbox controller
« Reply #16 on: September 16, 2016, 04:23:17 AM »
I have figured it out last night took me a while, I ended up downloading a pdf called

Mach3 V3.x Programmer Reference Draft v0.11a.pdf at the bottom of page 15

See also:   DoButton(), DoOEMButton()   
Mach3 v3.x VB Programmers Reference Manual 
Page 16
DoOEMButton Sub DoOEMButton(OEMButtonCode As Integer) 
This function allows a macro to execute any on-screen button function which has an assigned Button OEM code.  The specified function is invoked exactly as if the user had clicked the corresponding onscreen button with the mouse.  Note that no actual on-screen button need exist for this function to work.  This is simply an easy means to execute any of the “OEM Button” functions through VB. 
Arguments: OEMButtonCode must be one of the pre-defined Mach3 OEM Button Code constants (see VB Constants), or other value or expression that evaluates to one of those values.
Return Value:  None
Example: ‘ Define OEM codes for Mist On and Mist Off

Dim OEMButtonMistOn As Integer OEMButtonMistOn = 226
Dim OEMButtonMistOff As Integer OEMButtonMistOff = 227
‘ Turn Mist coolant on for 3 seconds
DoOEMButton(OEMButtonMistOn)
Sleep(3000)
DoOEMButton(OEMButtonMistOff)


See also:   DoButton(), DoOEMButton(), DoMenu()



so I figured this was the way to go


------*******------


   rem title DoOEMButton (278) 'feedrate -

   rem Define OEM codes feedrate down

Dim OEMButtonfeedrateDown  As Integer
OEMButtonfeedrateDown = 278

   rem Turn the feedrate down

DoOEMButton(OEMButtonfeedrateDown)
DoOEMButton(OEMButtonfeedrateDown)

------*******------

if you need bigger increments just add more of the last 2 lines
Re: using auto tool zero with xbox controller
« Reply #17 on: September 16, 2016, 04:43:04 AM »
 Thanks for sharing your results. I had no idea of how to do what you wanted.
Regards
Charlie M.
xbox shilling controller problem
« Reply #18 on: January 23, 2017, 10:46:21 AM »
I've been trying to get the shilling controller going for way too long I have two computers doing the same thing one has a fresh install windows 7 .I get the same message every time if anyone knows what I'm doing wrong I would appreciate it. I have followed all the instructions several times but I'm sure at this point I have something wrong.
« Last Edit: January 24, 2017, 01:08:51 AM by Tweakie.CNC »
Re: using auto tool zero with xbox controller
« Reply #19 on: January 11, 2018, 02:09:28 PM »
Charlie,
I have been working on getting the xbox controller up and running and got it now.  My quest to have auto tool zero work from the controller has come up short.  When I get to configuring the controller, when I enter "M701.m1s" into the "custom Macro #1" field, I get and error that states "please enter and integer"  got any help for this?  I am attempting this on the house computer before I head to the shop and give it a go there.  No internet service in the shop.
Thanks much,
ra