Howto: Reset switch to trigger output pulse?
Posted: Tue Apr 07, 2020 12:22 pm
Hi Guys,
I would like to be able to use a switch to activate the over-ride input on the safety circuit on the UB1 board I am using.
I would also like to be able to use a double switch and use the second set of contacts to initiate a short output pulse on 4 outputs.
This is for the Alarm Clear lines on my servo drives.
I presume I need a Marco loop monitoring an input that will then trigger a short pulse (>100ms) on the selected outputs (one for each drive).
I could do this directly with the wiring but I thought that if I had the software doing it then I could tie in the main onscreen Reset button to also trigger the output.
The problem is I am a complete dummy when it comes to any sort of code.
Can someone give me some example code to work with?
I would like to be able to use a switch to activate the over-ride input on the safety circuit on the UB1 board I am using.
I would also like to be able to use a double switch and use the second set of contacts to initiate a short output pulse on 4 outputs.
This is for the Alarm Clear lines on my servo drives.
I presume I need a Marco loop monitoring an input that will then trigger a short pulse (>100ms) on the selected outputs (one for each drive).
I could do this directly with the wiring but I thought that if I had the software doing it then I could tie in the main onscreen Reset button to also trigger the output.
The problem is I am a complete dummy when it comes to any sort of code.
Can someone give me some example code to work with?