Imagine two bottles coming down a filling line with an empty space between them. The conveyor advances three positions, but the filling valve should open only twice. How does the machine tell the difference? A sensor at the filling position tells a programmable logic controller (PLC) whether a bottle has actually arrived. The controller uses that signal to decide whether to open the valve on this cycle.
That small decision turns up in many common PLC applications. A conveyor releases a carton when the next zone has room. A pump station starts a second pump when the first one can no longer keep up. A mixer waits until a scale shows that the right amount of material has arrived. Following the signal from the machine, through the decision, and back to the equipment makes each application easier to understand.
Motor Control and Basic Machine Sequences
At a motor starter, pressing Start requests a run. If the motor is available, the PLC energizes a contactor, an electrically operated switch that connects power to the motor. A stop request drops the run command. An auxiliary contact can report that the contactor closed. If the operator also needs to know whether a belt is moving, a speed sensor on the belt answers that separate question. A motor can be energized while a broken belt stands still.
A reversing starter adds a decision about direction. A hoist drive or reversing conveyor may use separate forward and reverse contactors. The control sequence releases one direction before accepting the other, and the starter has interlocks to prevent the two contactors from closing together. A star-delta starter also switches between mutually exclusive states, this time to start a suitable motor in star and transfer it to delta for normal running. The starter design determines the timing of that transfer.
For a pneumatic cylinder, the PLC commands a valve to extend the rod and waits for the extended-position sensor before advancing the next step. A missing confirmation can identify the exact step where an assembly cycle stopped. A roller door uses the same idea in two directions. An open request calls for upward travel, and the upper limit switch reports when the door reaches its open position. Personnel protection requires its own risk-assessed safety functions.
Conveyors, Sorting, and Warehouse Automation
Think of a conveyor as a series of parking spaces for cartons. Each zone has a sensor that detects a carton. When the next zone has space, the upstream zone can release its carton. If a packing station pauses, cartons accumulate in the available zones and the infeed eventually waits. For a part counter, the useful event is the front edge of a new item breaking the sensor beam. A carton parked across the beam should still count as one item when the conveyor restarts.
Sorting and rejection add a harder problem. A scanner reads the destination on a parcel, or a camera flags a damaged pack. The diverter sits farther down the belt, with other items in between. One solution stores the decision for each item and uses an encoder, a device that produces pulses as the conveyor moves, to track how far it has traveled. At the divert point, the PLC retrieves the decision for the item that has just arrived.
Suppose the reject point is 1.2m from inspection. At 0.6m/s the trip takes 2s. If the belt slows to 0.3m/s, the same two-second delay would fire the rejector when the pack was only halfway there. Tracking belt travel accommodates the speed change, provided the pack stays in place on the belt. A sensor in the reject chute can then confirm that something actually left the line.
An automated warehouse extends tracking to a storage address. Warehouse software can assign a tote to a rack slot, while the machine PLC controls the local transfer. It checks that the tote has reached the pickup point and the shuttle is in position before releasing it. A destination identifies where the tote belongs. The transfer sensors establish where it actually is.
Packaging and Assembly Lines
Back at the bottle filler, imagine a simple indexed machine that moves bottles forward one position at a time. The conveyor positions a bottle under the nozzle. When the station is ready and a bottle is present, the PLC permits filling. In a metered filler, a flowmeter measures the dose and the filling system closes the valve at the target quantity. If no bottle arrives for the next index, the valve stays closed for that position. The next bottle can still receive its own full dose.
Each downstream machine needs its own information. A capper needs a bottle and a cap available for placement. A labeler can use the passing bottle to trigger a label and a gap sensor on the label web to position the next one. At a case packer set for 12 bottles, the count belongs to the case being filled. The controller releases a full case and begins the next count when a new case is in position. Counting every bottle upstream would give the wrong total if an inspector removed one along the way.

An assembly station may clamp a part, wait for a clamp-position signal, and then request a fastening cycle. A machine-tending robot or palletizing robot has its own motion controller. The PLC can coordinate the exchange by signaling that a case is ready. The robot acknowledges the request, picks the case and reports completion. That final signal lets the conveyor release the next case while the robot controller handles the arm’s path.
Pump Stations and Water Treatment
Compare a storage tank with a drainage sump. For tank filling, a low level calls for water and a high level ends the fill. A sump pump does the reverse. Rising water starts the pump, and the pump continues until the level falls to its stop point. Having distinct start and stop levels keeps small surface movements from repeatedly switching the pump.
A two-pump lift station has two decisions to make. Which pump gets the next turn? When is one pump insufficient? Xylem’s 4NS duplex panel illustrates one arrangement a PLC can implement. On one cycle, the lead-level float calls for pump 1. If water continues rising to the lag-level float, pump 2 joins it. When the water falls to the stop level, the pumping cycle ends. Pump 2 takes the lead on the next cycle. Alternating the lead shares the starts between pumps. Reaching the lag level calls for more pumping capacity during the current cycle.

In a constant-pressure booster station, the signal of interest is discharge pressure. When more outlets open and the pressure drops, a controller can ask a variable-frequency drive to increase pump speed. At a wastewater treatment station, the same pump may also need a clear route to the right tank. Where motorized isolation valves select that route, their open-position feedback tells the PLC when it can release the transfer step.
Batch Mixing and Process Control
Consider a weigh hopper feeding a batch mixer. Load cells under the hopper measure the accumulating ingredient. A feeder can deliver quickly at first and slow down as the target approaches. Even after it stops, material already falling from the outlet will land on the scale. A weighing controller can allow for that material in flight, wait for the reading to settle, and report the final weight. The PLC can then check whether the ingredient is within the recipe tolerance before releasing it to the mixer.
In a batch mixing tank, that weight confirmation is one condition for starting the next step. Others might include a closed discharge valve and confirmation that the ingredient has transferred. If the recipe calls for a heated hold, the hold timer can start when the measured product temperature reaches the required range. Starting it as soon as the heater comes on would count the warm-up period as processing time.
A heated tank or industrial oven also shows the difference between a sequence and continuous adjustment. A temperature probe feeds back the measured value, and a control loop adjusts heater output as the process approaches its setpoint. The PLC can manage the recipe and holding time while a dedicated temperature controller handles the loop. For metered dosing, the feedback may come from a flowmeter instead. Counting the delivered volume lets the system close a dosing valve after the requested quantity has passed.
Building Services, Agriculture, and Energy
In a building’s air-handling unit, a controller can request a supply fan, check an airflow or pressure switch, and then enable normal temperature control. For an exhaust system in an equipment room, rising room temperature might bring on the first fan and, at a higher threshold, a second one. The operator can distinguish between a fan that has been asked to run and a fan that has established airflow.
A compressed-air station presents a similar choice on a plant-wide scale. Several compressors feed a common pipe called a header. If header pressure stays low while the lead machine is already loaded, a station controller can call for another available compressor. When demand falls, it can unload a machine in accordance with its operating limits. The header pressure tells the station what the plant needs, while each compressor reports what capacity is available.
For greenhouse irrigation, a PLC can open a zone valve when a moisture reading calls for water and the irrigation schedule permits it. A flow signal helps distinguish actual watering from a valve that merely received an open command. A solar tracker uses position feedback for a different purpose. In a PLC-based tracker, the controller can compare the desired panel angle with the measured angle, move the drive and stop when the two are within the allowed tolerance.
Everyday Systems and Classic PLC Training Examples
An automatic car wash makes a sequence easy to see. On a conveyor wash, the entrance sensor registers a vehicle. Its progress along the conveyor determines when to apply detergent, rinse and start the dryer. A gap between vehicles matters because each spray zone should operate for the vehicle occupying it. At a parking barrier, a valid ticket can request entry, but the occupancy count should change only after the vehicle passes. Separate entry and exit events also let a display show the number of spaces available.
Two familiar training models isolate decisions that are harder to see on a production line. A traffic-light model shows how a controller moves through timed phases and remembers a pedestrian request until its turn. An elevator model stores several floor calls, uses position inputs to recognize the next stop, and clears a call once that floor is served. Festo Didactic includes traffic lights, liquid-level control and bottling in its PLC training equipment. The simplified road and lift models explain timing and memory. Public-road signals and passenger lifts have additional, application-specific safety requirements.
Return to the gap on the bottling line. If the valve opened over an empty position, the first question would be what the controller saw at the filling station. Did the sensor still indicate a bottle? Did the program use a bottle count from farther upstream? On an unfamiliar machine, look for those two pieces of evidence first. What told the controller to act? What told it the action succeeded?