Rung1 โ Auto mode:
IF (X1 OR X2) AND NOT previous THEN Lamp := NOT Lamp; END_IF; previous := X1 OR X2; Use two Set/Reset coils with interlocking. ๐น Exercise 3 โ Timer (Delayed Start) Statement: When Start is pressed, after 5 seconds motor turns ON. When Stop is pressed, motor turns OFF immediately. ejercicios de plc resueltos
| Rung | Logic | |------|-------| | 1 | Start AND Stop AND OL โ Coil Motor (with Motor parallel contact) | Rung1 โ Auto mode: IF (X1 OR X2)
---[X1]---[X2]---[Lamp]---(Lamp) ??? Not directly โ use SR flip-flop Better: use a toggle logic in Structured Text (ST): previous := X1 OR X2
IF Sensor_Rising_Edge AND (Count < 100) THEN Count := Count + 1; END_IF; IF Count >= 100 THEN Conveyor := FALSE; END_IF;