ladder logic

(redirected from Ladder programming language)

ladder logic

(programming)
Source code formatted in two columns with conditions on the left that lead to outputs on the right:

if (c1) s1 else if (c2) s2 else if (c3) s3 ...
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)

IEC 61131

A family of programming languages for programmable logic controllers (PLCs). Of the three graphical and two textual languages, ladder logic (see example below) was the first language and widely used. IEC 61131 was previously known as IEC 1131. See PLC.
Graphical

 ladder logic
 function block diagram
 sequential function chart


 Textual

 structured text
 instruction list



The following example of ladder logic shows how logical AND and OR gates are diagrammed. In this case, x = a AND (b OR c).

   ---[ ]-----|--[ ]--|-----( )---
       a      |   b   |      x
              |       |
              |--[ ]--|
              |   c   |
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.