hi,
A quick look at your new diagram. [ I will look in more detail later today]
The diode D2 will not allow the LS192 Up counter to work, the 555 cannot pull it low, it will always assume a logic High.
At rest on a
555 the pin #3 output is low [0v] so that will hold the unused clock pin of the LS192 Low, [ without that D2 diode] so the clock on the other pin will not make the LS192 count.!
Why are you using the 555's , are they being used as monostables just to clean the Photo detector signals.??
Check the K1 relay, its appears to be either driving the barrier gate up or down continuously
Hints:
I expect you have a photocell path on either side of the barrier gate.?
Consider when the Input
OR Output beam is broken the barrier must be raised and kept raised.
And if the Input beam
AND Output beam are not broken the barrier should go down and stay down
OK.?