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.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
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.
Controller programming; Safety networks; Enclosure design; Power quality; Safety integrity levels; Increasing process efficiency
Additive manufacturing benefits; HMI and sensor tips; System integrator advice; Innovations from the industry
Robotic safety, collaboration, standards; DCS migration tips; IT/OT convergence; 2017 Control Engineering Salary and Career Survey
Featured articles highlight technologies that enable the Industrial Internet of Things, IIoT-related products and strategies to get data more easily to the user.
This article collection contains several articles on how automation and controls are helping human-machine interface (HMI) hardware and software advance.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.

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

Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Mobility as the means to offshore innovation; Preventing another Deepwater Horizon; ROVs as subsea robots; SCADA and the radio spectrum
Future of oil and gas projects; Reservoir models; The importance of SCADA to oil and gas
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
click me