theautomationguy:
@ UKHeliBob, there is no input for the relay contacts to connect to.
@ Riva when the PE beam is broken the relay contacts change state until the beam is unbroken (for the use of a better word). Usually it is momentary as people & vehicles pass thru it, but occasionally a vehicle parks in front of it which means the contacts stay closed / open. I can't remember which way it is wired.
@ GoForSmoke you are onto it, but how do I go about doing that please?
What / who is BWD/ I googled it but came up with no results?
Oh, it finally clicked for me what PLC is. Funny, I want to mess with AT16VB8's as glue logic (they cost $1) and don't know where to even get a start with them.
And I'm just getting that you may not know C at all?
We can walk through the pseudocode and turn it into code, yes. But I don't want to get "out of sight" on you if you're willing to learn, which would benefit you far more than a piece of code.