Author Topic: Light up switches  (Read 4988 times)

Harley95

  • Posts: 4
    • View Profile
Light up switches
« on: November 20, 2019, 11:58:18 PM »
Hi All,
I have a PMDX-126 with an ESS running Mach4. My question is how to wire up the light on both momentary and standard detent switches. An example is when I press a momentary switch to turn on the spindle in clockwise direction the switch lights up until I press the spindle stop switch and then the stop switch is lighted. Same for coolant but using a standard detent switch, it would light when you push the button and then go off when pressed again. The switches are all 12v led.

Thanks
Jeff

12strings

  • Posts: 278
    • View Profile
Re: Light up switches
« Reply #1 on: November 21, 2019, 12:43:54 AM »
Well, presuming you are using both parallel ports from the ESS to the PMDX-126 (so you have enough output signals available), something like this should work.  You will need solid-state relays or something between the PMDX-126 outputs and the 12V LED indicators - the PMDX-126 cannot drive them directly.

Spindle:  presume you have an LED for "CW" (forward?) and "Stop".  In the Mach4 Configuration->Control dialog, go to the outputs tab.  Scroll WAAAAY down and you will see "Spindle On" and "Spindle Fwd".  Configure the "Spindle Fwd" to drive whichever 126 output will drive the "CW" LED, and leave the "active low" as a red "X".  That signal will be driven to 5V when the spindle is running "forward".  Configure the "Spindle On" to drive whichever 126 output will drive the "Off" LED and change the "active low" to a green check mark.  This signal will be driven to 5V when the spindle is OFF, and driven to GND when the spindle is on (fwd or rev).

Coolant: In the same "Outputs" tab, find the "Coolant On" output.  Configure it to rive whichever 126 output with the "active low" a red "X".  This signal will be driven to 5V when the coolant is on, and driven to GND when the coolant is off.

Harley95

  • Posts: 4
    • View Profile
Re: Light up switches
« Reply #2 on: November 21, 2019, 06:46:51 PM »
Thanks for the information. I thought maybe I would need a relay for each switch didn't realize I would need an output for each switch.

Jeff