Feedback: Ladder logic programming prevails for good reasons


Paul Schmidt, electrical engineer, United Conveyor Corp ., offers the following observations about the recent Control Engineering “ Product Research ” article on PLCs (December 2005, p. 51).

“Ladder programming endures in the controls industry for good reasons, at least for PLC applications. While ladder originally was marketed as being a format designed to appeal to electricians familiar with traditional relay logic, this is only part of the story. Early PLCs did, and current models still do, execute sequentially in a scan mode. In effect, the PLC’s CPU is not designed to execute the program written by the user; instead, it executes a routine in firmware that scans a set of Boolean expressions stored in memory (even if entered and viewed as ladder rungs), one rung at a time, getting the data and storing results in a data table, and doing an I/O update once per scan. This simulates the execution of the user’s program, while not actually running it (a fine distinction, for sure).

“This scan philosophy made early PLCs deterministic and reliable in their program execution, and forced the user to use very small instruction sets and rigidly formatted program structure. In reality, this was nothing like the way an actual relay logic circuit works (wherein everything happens at once), and only the symbology used was copied from relay-ladder programming. This also made it easy for early systems to depict power flow in the logic for maintenance and debugging. No other structure would have been so easy to implement in PLC firmware, including competing systems using raw Boolean expressions using alphanumeric text (think early Texas Instruments PLCs), symbolic logic using AND and OR gate symbols, flowcharts, etc. It seems to me that the real benefits of a recurring scan philosophy remains as valid today as it did back in the early days of PLCs and computer-based automation. And if that is true, viewing the logic in terms of rungs executed in order helps the programmer to remain mentally within the scan philosophy. Try determining the execution order of logic‘drawn’ using AND and OR style symbolic logic, traditionally used for IC based digital logic. It does present problems harder to overcome than the ladder format. I have seen this concern realized during debugging of some DCS logic drawn in the symbolic logic style.

“Ladder logic remains in use more because it is practical, and, in a sense, almost necessary, than because it is a quaint holdover from the old days.”

— Edited by Mark T. Hoske, editor-in-chief, Control Engineering,

No comments
The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
The Engineering Leaders Under 40 program identifies and gives recognition to young engineers who...
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Big Data and IIoT value; Monitoring Big Data; Robotics safety standards and programming; Learning about PID
Motor specification guidelines; Understanding multivariable control; Improving a safety instrumented system; 2017 Engineers' Choice Award Winners
Selecting the best controller from several viewpoints; System integrator advice for the IIoT; TSN and real-time Ethernet; Questions to ask when selecting a VFD; Action items for an aging PLC/DCS
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.
Motion control advances and solutions can help with machine control, automated control on assembly lines, integration of robotics and automation, and machine safety.
This article collection contains several articles on the Industrial Internet of Things (IIoT) and how it is transforming manufacturing.

Find and connect with the most suitable service provider for your unique application. Start searching the Global System Integrator Database Now!

Future of oil and gas projects; Reservoir models; The importance of SCADA to oil and gas
Big Data and bigger solutions; Tablet technologies; SCADA developments
SCADA at the junction, Managing risk through maintenance, Moving at the speed of data
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
click me