cruzgalvan
Member
I have an assignment that I have to do with a PLC and a parking garage. The parking garage can fit 15 cars but the light has to be green up until the garage reaches 13. At 13 and 14 the yellow light will flash with 9 seconds on and 6 seconds off. Once the garage is full at 15 the red light will turn on. I have most of the program wrote but I am having trouble with get a timer for the yellow light to flash on for 9 seconds and stay off for 6 seconds.
X1 is start pushbutton NO
X2 is a stop pushbutton NC
C0 is rune mode relay
X3 is car entering
X4 is car exiting
X2 stop pushbutton NC
X3, 4, and 2 are connected to a UDC
CTA0(counter CTO value)< K13
SP4 (1 second) CTA0>= K13 CTA0<K15
CTO is lot full
X1 is start pushbutton NO
X2 is a stop pushbutton NC
C0 is rune mode relay
X3 is car entering
X4 is car exiting
X2 stop pushbutton NC
X3, 4, and 2 are connected to a UDC
CTA0(counter CTO value)< K13
SP4 (1 second) CTA0>= K13 CTA0<K15
CTO is lot full