How a PLC turns a sensor signal into a start command
A sensor can switch without the PLC registering the pulse. To understand when a machine gets its start command, follow the signal from input to logic and see what confirms the output.
PLC stands for programmable logic controller. It executes the control rules and sends commands to drives. The human-machine interface (HMI) presents status and alarms to the operator.
In short: the PLC reads its inputs, runs the program, updates its outputs and repeats that cycle continuously. In typical applications each cycle takes 1 to 100 ms, depending on program size and processor.
| System | Role | Example |
|---|---|---|
| CLP | runs control logic in real time and drives the equipment | start interlock of a conveyor |
| HMI | local screen where the operator sees states and issues commands | touch panel next to the machine |
| SCADA | supervises several areas, logs alarms and history and sends commands to the PLCs | control room covering the whole plant |
CPU, inputs and outputs
The CPU runs the program and keeps operating data in memory. A digital input reads states such as on and off. An analog input represents values such as level or pressure, for example from a 4–20 mA signal. Outputs can switch a signal or send a variable setpoint. Remote modules distribute I/O across the equipment and exchange data over the industrial network.
The IEC 61131-3 standard defines the PLC programming languages. The most used are Ladder Diagram (LD), Function Block Diagram (FBD), Structured Text (ST) and Sequential Function Chart (SFC). Instruction List (IL) was declared deprecated in the third edition of the standard.
How the PLC scan cycle works
In cyclic execution, the CPU works from an input image, evaluates the logic and updates the output image. Transfers to the modules follow the platform's rules. On the SIMATIC S7-1200 G2, for example, the CPU applies outputs and refreshes inputs at the start of the cycle before running the cyclic program.
Suppose an input is sampled every 10 ms. A 4 ms pulse can start and end between samples. Besides scan time, account for the module filter and network update time. If the event must be detected, check whether the hardware supports pulse capture, interrupts or high-speed counting.
In general terms, a cycle has four steps:
- Input read. Sensor states are copied into the input image.
- Program execution. The logic runs on that copy, from start to end.
- Output write. Results are sent to the physical outputs.
- Communication and diagnostics. The PLC serves the network, the HMI and its own internal checks.
The exact order varies by model, as with the S7-1200 G2 described above.
Hypothetical example. Sampling inputs every 10 ms gives 1,000 ÷ 10 = 100 samples per second. A 4 ms pulse can start and end between samples.
A belt conveyor control example
A PLC can read drive status and the signal from an inductive sensor that detects a mechanical position. When a start is requested, the logic checks operating permissives, issues the command and waits for drive feedback. If feedback does not arrive in time, the program raises a fault. That lets the team distinguish an issued command from the status reported by the drive.
PLC brands and selection criteria
Common families include Siemens SIMATIC S7, Allen-Bradley CompactLogix from Rockwell Automation, and Schneider Electric Modicon M241. Begin with the number and type of I/O points, the existing networks and the required response time. Also consider spare parts, engineering tools and the support available to the plant maintenance team.
Frequently asked questions
What is a PLC?
It is an industrial computer that reads sensors, runs a program and commands actuators in a continuous cycle. It is built to work in a panel, with the electrical noise, vibration and temperature of a plant floor.
What is the difference between a PLC and SCADA?
The PLC controls the process in real time, close to the equipment. SCADA supervises: it shows screens, logs alarms and history and sends commands to the PLC. If SCADA stops, control continues; if the PLC stops, the process stops.
What is the scan cycle?
It is the repeated sequence of reading inputs, running the program and writing outputs. Cycle time sets how fast the PLC reacts to a change at an input.
Which languages does a PLC use?
Those of IEC 61131-3: Ladder, FBD, ST and SFC. Ladder is common for discrete interlocks, ST for calculations and data handling, and SFC for step sequences.
AoT PLC engineering and systems integration
AoT develops industrial software for PLCs, operator interfaces and supervisory systems. A project turns the process description into sequences with verifiable conditions. For a crushing route, for example, that means identifying which equipment must be available, how to confirm startup and how to display the stop reason. The same approach applies to rail loadout, where each cycle is tied to a passing railcar.
In a revamp, engineering evaluates what can stay: instruments, drives, remote I/O and useful logic from the previous platform. Field Interface can bridge systems on different protocols and record process signals. The PLC continues to run machine logic, while the integration makes the required data available to the rest of the plant for supervision and diagnostics.
During commissioning, AoT tests the signal path to the screen and exercises fault cases. If the PLC issues a start and the drive gives no confirmation, the test checks that the HMI identifies the missing feedback and its equipment.