Thank you Daniel for replay,
I have read post you said and I think thay you are rignt, that should be done hw way, BUT now we are comming to part of the story that driving me nuts.
Nothing in this factory is "normal". Bad project, diferent hw state than project documentation says, 2 t/h instead 35 t/h like it should be, SCADA on no-name home comp 3m from 2x400KW motors...
And in that mess I need to write parts of new code.
E-stop (we call it G-stop (t<->p
) isn't hardwired. I need to stop motors for conveyors, mixers, crusthing mills and forming press.
It shoul be pretty fast, people are working near by.
On that mashines are E - stop buttons or ropes. When worker press it or draw it I get 1 on some DI.
What next?
Best regards