Page 1 of 1

Trigger Outout on multiple LEDs

PostPosted: Thu Jun 25, 2020 10:36 am
by BigAl
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

Re: Trigger Outout on multiple LEDs

PostPosted: Thu Jun 25, 2020 10:59 am
by ger21
In this case, wouldn't two separate output triggers work?

Re: Trigger Outout on multiple LEDs

PostPosted: Thu Jun 25, 2020 12:21 pm
by BigAl
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"....

Re: Trigger Outout on multiple LEDs

PostPosted: Thu Jun 25, 2020 12:47 pm
by dezsoe
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.)

Re: Trigger Outout on multiple LEDs

PostPosted: Fri Jun 26, 2020 10:59 am
by BigAl
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...