Page 1 of 1

How To?: trigger output with input

PostPosted: Fri Apr 09, 2021 1:09 am
by spumco
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

Re: How To?: trigger output with input

PostPosted: Fri Apr 09, 2021 1:36 am
by eabrust
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

Re: How To?: trigger output with input

PostPosted: Fri Apr 09, 2021 1:58 am
by spumco
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

Re: How To?: trigger output with input

PostPosted: Fri Apr 09, 2021 12:09 pm
by ger21
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.

Re: How To?: trigger output with input

PostPosted: Sat Apr 10, 2021 4:28 am
by spumco
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