Ejercicios De Plc Resueltos -

Rung1 – Auto mode:

Here’s a structured list of (from basic to intermediate) with explanations, logic, and pseudo-code. These are typical for Siemens S7-1200/1500 (TIA Portal) or Allen-Bradley (RSLogix 5000) but the logic applies to any brand. 🔹 Exercise 1 – Start/Stop with Latch (Motor Control) Statement: Control a motor with two pushbuttons: Start (NO) and Stop (NC). Add an overload relay (NC) as protection. Use a latching relay. ejercicios de plc resueltos

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. Rung1 – Auto mode: Here’s a structured list

| Rung | Logic | |------|-------| | 1 | Start AND Stop AND OL → Coil Motor (with Motor parallel contact) | Add an overload relay (NC) as protection

Use CTU counter with Preset = 100, Reset = Reset_Button. 🔹 Exercise 5 – Traffic Light (Sequential) Statement: Traffic light sequence: Red → Red+Yellow → Green → Yellow → Red. Cycle time: 5s each.

---[Start]---[Stop]---(TON_1.IN) TON_1.PT := T#5s ---[TON_1.Q]---(Motor) TON_1 starts timing when Start is pressed. Q turns ON after 5s if Start remains pressed. 🔹 Exercise 4 – Counter (Count Products) Statement: A sensor (photocell) detects products on a conveyor. Count up to 100, then stop the conveyor and reset with a button.