How To?: trigger output with input

If you have a question about the software please ask it here.

How To?: trigger output with input

Postby spumco » Fri Apr 09, 2021 1:09 am

I'm in the last stages of yet another plasma build and I'm a little embarrassed I can't figure out how to simply turn on an output pin with an input pin.

I know it can be done with a macro, but I've managed to make it 5 years with UCCNC without having to write one yet.

Case 1: Input pin is tied to a selector switch (water pump), and the relay coil is tied to an output pin. Just want to turn it on/off.

Case 2: input pin is tied to a momentary pushbutton (laser pointer), and same thing with the relay coil. Would like to toggle this one on/off (press on, press off).

Neither case requires (or desires) a screen button. They're just physical switches.

I've been pouring over old macro posts, the entire toolbox sub-forum, and reading Robert's excellent Macro Guide. No joy, it still isn't clear to me.

I feel like I should be able use the I/O trigger functions to do something simple like this without a macro, but I'm still lost.

Help anyone?

Thanks,
Ralph
spumco
 
Posts: 306
Joined: Mon Oct 03, 2016 10:10 pm

Re: How To?: trigger output with input

Postby eabrust » Fri Apr 09, 2021 1:36 am

Have to ask out of curiousity, if you're just trying to operate something off of a button press on your control panel, and you aren't using any sort of logic, why pass this button press input through UCCNC and your controller at all? Why not just hook the switch to the relay and keep it simple ?



Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: How To?: trigger output with input

Postby spumco » Fri Apr 09, 2021 1:58 am

Because the owner - eventually - wants the plasma fill to be on a timer so he can fill and not have to babysit. One relay is for high-speed fill (timer), and the low speed is for fine level adjustment.

And the laser relay is on the BOB (UB1), so I need to trigger P3P17 (NO3). I'm stealing 5v from the UB1 so I dont' have another power supply in an already-crammed enclosure.

I drew the line at the solenoid drain valve - that one is 'dumb' ;)

Thanks for the comment, though. Good thought: KISS

-Ralph
spumco
 
Posts: 306
Joined: Mon Oct 03, 2016 10:10 pm

Re: How To?: trigger output with input

Postby ger21 » Fri Apr 09, 2021 12:09 pm

Look at the LEDs by Number doc, and try setting an output trigger to use the LED of the input? There are LED's for every pin on all 5 ports.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: How To?: trigger output with input

Postby spumco » Sat Apr 10, 2021 4:28 am

Gerry - worked like a champ, thanks so much.

Don't understand why, but the manual and other docs just weren't clicking for me.

-Ralph
spumco
 
Posts: 306
Joined: Mon Oct 03, 2016 10:10 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: Bing [Bot] and 39 guests