Hello Guest it is April 18, 2024, 06:25:24 PM

Author Topic: Switch one output with 2 different signals?  (Read 751 times)

0 Members and 1 Guest are viewing this topic.

Switch one output with 2 different signals?
« on: December 04, 2019, 04:32:49 AM »
Hello,

Setup: Mach4 with ESS Smoothstepper.

I have a gas seal relais for my spindle.
This needs to be turned on, whenever the spindle run.
Easy to configure - I just put this output in the Spindle "Spindle on" row in outputs and working.

But I want also to have a manual Button to turn it on when the Spindle is not running.
So I add a button in the GUI to toggle "Output 4".
But now it is not possible to also set this physical output pin in "output 4" row.
My assumption is, that it is only possible to asign a physical output to one signal.

I also tried to assign the virtual "Output 4" to the "Spindle on", but this seems also not possible.

So my Question is:
How can I switch on a Physical output pin by a GUI button and also by Spindle on?

Something like "If Spindle on or Output4".
Does this need to be in the PLC Script loop or is there an easier way?
Re: Switch one output with 2 different signals?
« Reply #1 on: December 04, 2019, 07:07:39 AM »
Assuming you are using a toggle button can you not just assign the 'Spindle On' output to the button at the bottom of the properties window in the screen editor?
Re: Switch one output with 2 different signals?
« Reply #2 on: December 04, 2019, 07:21:22 AM »
Yes, its a toggle button
My assumption was that this would enable the spindle as well.
Because this "spindle on" is linked to the spindle control relais and as a second output to the air seal relais.


I want to have a button to enable this second Physical port without activating the spindle.