r/PLC • • 5d ago

Homework Project/Excercise ideas

So I build this basic home PLC testbench to learn more about PLCs, Industrial automation and electrics. I already built a basic blinking light setup that uses the 3 point switch to switch between button operation and blinking. At the moment I wired it up for a basic relay latch to get a better idea of relay logic. Do you have some Ideas for Projects or excercises with these Parts?

5 Upvotes

7 comments sorted by

3

u/Hamandcheeseeater 5d ago

Make a flip flop.

2

u/eiboeck88 5d ago

One of my first plc test projects was a 7 segemnt display

2

u/VladRom89 5d ago

Start by building things that people understand and don't need much explanation. Build out an elevator system; you can take it quite far with all the safety checks, interlocks, push buttons, etc. if you're targeting a specific industry, research what they typically have as the process and build out the logic for a skid.

2

u/RevolutionaryLock426 4d ago

Agree. Make things that you see in everyday life because you can explain them to yourself and then code them from that. Traffic lights, elevators, pump a tank full of water etc.

2

u/strong-ele 3d ago

If you want an exercise that mirrors real plant work and is cheap to wire, add a temperature loop. One heater, one thermocouple, one switching element, and you get most of the hard problems in process control in a shoebox.

Concretely: a 500 W cartridge or band heater on a small aluminium block, a K-type thermocouple clamped in a drilled hole, a solid state relay on the heater rail, and whatever analog input the PLC has (or a 4-20 mA transmitter). Program a PID, then measure three things and write them down:

  1. Dead time. Step the output from 0 to 50 % and log block temperature every 500 ms. The delay before the trace moves is your dead time - on a block in air it is often 10-30 s. Dead time, not the gains, is what makes a loop feel untunable.
  2. Overshoot at start-up. Run the same step with P only, then PI. If overshoot exceeds 5 K, narrow the proportional band instead of reaching for derivative.
  3. Switching rate. Count transitions per minute at 50 % output. Above roughly ten per minute a mechanical contactor wears out - which is the moment the reason for a solid state device becomes obvious.

Then add a fault: pull the thermocouple mid-run and make the program drop to a safe output within 2 s. Open-sensor detection is a real commissioning test and teaches more than another blinking light.

2

u/Incident_Unusual 3d ago

2 out of 3 logic with FAULT detection

2

u/thePLCtech 2d ago

A good next step from a latching relay is a two-pump lead/lag with high and low level inputs. Wire two switches as "lead start" and "pump off," and a third as a high-level alarm if you have the spare point. In the program, start the lead pump on the start switch, hold it with a seal-in until the off switch drops out, then swap which pump is lead on the next cycle so they share the run time. If level stays high, start the lag pump. Interlock so a pump cannot run if the off float is already down. That one exercise teaches latching, alternation, and a real fail-safe, and it is the same logic used on lift station panels.

I made a short walkthrough of a lift station pump program with alternation if you want to see how it is put together: https://www.youtube.com/watch?v=L-DVSyylZzc