Trigger Outout on multiple LEDs

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

Trigger Outout on multiple LEDs

Postby BigAl » Thu Jun 25, 2020 10:36 am

Hi,

I'm currently setting up my new configuration. I need to map an output that is triggered from two LEDs. In my case the "Spindle CW" or"Spindle CCW" should trigger an output (Spindle Cooling Fan). In the I/O Trigger screen I can only set 1 output to one LED. How can I configure a logical "OR"? Do I need to write a macro for that? Usually I prefer to use the settings screen...

Alex
BigAl
 
Posts: 26
Joined: Thu Feb 16, 2017 2:58 pm

Re: Trigger Outout on multiple LEDs

Postby ger21 » Thu Jun 25, 2020 10:59 am

In this case, wouldn't two separate output triggers work?
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Trigger Outout on multiple LEDs

Postby BigAl » Thu Jun 25, 2020 12:21 pm

ger21 wrote:In this case, wouldn't two separate output triggers work?


No, because then the output is flickering. This is because on of the inputs is "1" and the other "0"....
BigAl
 
Posts: 26
Joined: Thu Feb 16, 2017 2:58 pm

Re: Trigger Outout on multiple LEDs

Postby dezsoe » Thu Jun 25, 2020 12:47 pm

Create a macro, e.g. M400.txt:

Code: Select all
exec.SetLED(exec.GetLED(50) | exec.GetLED(51), 400);

Set it as a macroloop and then LED 400 will turn on if M3 or M4 is on. Set output trigger to use LED 400. (You don't need to place the LED on the screen.)
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Trigger Outout on multiple LEDs

Postby BigAl » Fri Jun 26, 2020 10:59 am

dezsoe wrote:Create a macro, e.g. M400.txt:

Code: Select all
exec.SetLED(exec.GetLED(50) | exec.GetLED(51), 400);

Set it as a macroloop and then LED 400 will turn on if M3 or M4 is on. Set output trigger to use LED 400. (You don't need to place the LED on the screen.)


Thank you! This was the alternative solution I thought about...
BigAl
 
Posts: 26
Joined: Thu Feb 16, 2017 2:58 pm


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 22 guests