Hello Guest it is July 20, 2019, 08:51:07 PM

Author Topic: On Off toggle switching for mach3 functions?  (Read 3050 times)

0 Members and 1 Guest are viewing this topic.

Offline paulc

*
  •  15 15
    • View Profile
On Off toggle switching for mach3 functions?
« on: November 04, 2014, 04:45:41 PM »
Hi all,
Im building a new control panel for me retro mill.  Id like to make it similar to my Okumas! 
My question is this, can I use toggle switches for  on off switch for functions such as coolant, optional stop, single block etc.  The switch will stay on  when the function is required and off when its not.
But I see mach3  uses momentary switching to operate these, can this be changed to meet my preferred switching requirements?

Thanks, Paul.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: On Off toggle switching for mach3 functions?
« Reply #1 on: November 04, 2014, 04:52:15 PM »
Not really but is there a need to?
The momentary buttons will toggle anyway, one press if coolant is off and it will come on. Press again and it will go off.

Hood

Offline paulc

*
  •  15 15
    • View Profile
Re: On Off toggle switching for mach3 functions?
« Reply #2 on: November 04, 2014, 05:57:12 PM »
Yes I know it not absolutely necessary.  But Its just I prefer the visual indication that a function is in play by visually seeing the toggle switches lever either UP or DOWN.

If there was a way I would implement it on my panel.

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: On Off toggle switching for mach3 functions?
« Reply #3 on: November 04, 2014, 06:17:36 PM »
Can't you connect the switch to an Input, and use a Brain to monitor the input, and activate the function when the input is active?
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline paulc

*
  •  15 15
    • View Profile
Re: On Off toggle switching for mach3 functions?
« Reply #4 on: November 04, 2014, 07:04:58 PM »
Hi

Oh Id love to!  But do you think it can be done?  So lets say when the contacts of the toggle switch are closed (not momentary) lets say single block is on.  Then when the switch contacts are permanently open, single block is off.

Sounds simple enough but I'm not sure how to go about this.

The machine is built and running well, now I want to ditch the laptop and make popper control panel.

Any help would be great.
« Last Edit: November 04, 2014, 07:15:56 PM by paulc »

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: On Off toggle switching for mach3 functions?
« Reply #5 on: November 04, 2014, 07:17:03 PM »
Looks like you can't do it with a brain as all you can do is call the single step button, which toggles it on or off.
You probably can do it with the macropump, though.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: On Off toggle switching for mach3 functions?
« Reply #6 on: November 05, 2014, 04:30:33 AM »
Your problem is that this would have to be a two way thing. Not too big a deal to get a toggle switch to be seen by Mach as a momentary but what about the other way around? Mach obviously can't flip your switch. So you flip coolant on - you hit a limit or whatever - coolant goes off - your switch position still says it's on. You now have to physically toggle all your switches to make sure they match the actual state again. Surely the whole point just flew in the waste bin. Now if you had motor driven switches...  :)
« Last Edit: November 05, 2014, 04:56:32 AM by stirling »

Offline Vogavt

*
  •  258 258
    • View Profile
Re: On Off toggle switching for mach3 functions?
« Reply #7 on: November 05, 2014, 11:20:11 AM »
Can you have a physical status LED? Been wondering this myself?

Offline paulc

*
  •  15 15
    • View Profile
Re: On Off toggle switching for mach3 functions?
« Reply #8 on: November 12, 2014, 04:55:07 PM »
Hi All,
I'll prolly give up soon and just use momentary buttons, but I was pondering the situation, as you do, and it occurred to me that many of the remote hand wheel pendants we use on mach controllers have a rotary switch that selects the  axis X,Y,Z,4TH.  the rotary axis selector switch appears to close a contact and stay closed on  that axis until the next axis is selected.  when you reset or power up mach3 the axis that is selected on the pendant stays on the selected axis right?

Well then why cant the same apply for say single block or coolant on or any aux function for that matter?

Just asking :)

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: On Off toggle switching for mach3 functions?
« Reply #9 on: November 12, 2014, 06:11:04 PM »
Not quite true, you can have the rotary set to X and then press an onscreen button for Y and it will shift to Y and stay there. To get it back to X with the rotary you would first have to move off X then back on.
I do recall I used a timer of some sort in a Brain a while back for buttons to operate the FRO, this allowed me to hold the button closed and it would step through the FRO, so might be worth looking at if your heart is set on toggle switches.
Hood