Hello Guest it is May 19, 2019, 03:06:19 AM

Author Topic: Auto Tool Zero Macro Help - I'm 1/3 of the way there!  (Read 3171 times)

0 Members and 1 Guest are viewing this topic.

Offline ger21

*
  • *
  •  6,231 6,231
    • View Profile
    • The CNC Woodworker
Re: Auto Tool Zero Macro Help - I'm 1/3 of the way there!
« Reply #10 on: August 07, 2016, 02:38:05 PM »
DoOEMButton(119) toggles softlimits on and off.

You'll want to check the status of OEMLED(815) to see if they are on or off before calling the button.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Auto Tool Zero Macro Help - I'm 1/3 of the way there!
« Reply #11 on: August 07, 2016, 04:12:58 PM »
DoOEMButton(119) toggles softlimits on and off. You'll want to check the status of OEMLED(815) to see if they are on or off before calling the button.

Ok, that sounds awesome. Thank you!

I'm not versed in the code, personally, but if it's not too much trouble, is there an easy way to create an "IF" statement to check this? (I'm reading this over, and am not fully understanding how this is to be set.) I get that there should be a line that works like "IF OEMLED(815) is ON THEN DoOEMButton(119) 'If the Soft Limits button is lit, turn it off", but I can't exactly understand how. (I know my pseudo-code is a poor example.)

I appreciate the help!

Online Davek0974

*
  •  2,488 2,488
    • View Profile
    • DD Metal Products Ltd
Re: Auto Tool Zero Macro Help - I'm 1/3 of the way there!
« Reply #12 on: August 07, 2016, 04:20:23 PM »
You're actually spot on...

If OEMLED(815) then 'if led is on....
  DoOemButton(119)  'turn it off.
End if


:)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives
Re: Auto Tool Zero Macro Help - I'm 1/3 of the way there!
« Reply #13 on: August 07, 2016, 04:33:38 PM »
You're actually spot on...

Wow. You're kidding! Well, thank you very much! I'll implement this.