Ladder Logic - Example of A Simple Ladder Logic Program

Example of A Simple Ladder Logic Program

The language itself can be seen as a set of connections between logical checkers (contacts) and actuators (coils). If a path can be traced between the left side of the rung and the output, through asserted (true or "closed") contacts, the rung is true and the output coil storage bit is asserted (1) or true. If no path can be traced, then the output is false (0) and the "coil" by analogy to electro-mechanical relays is considered "de-energized". The analogy between logical propositions and relay contact status is due to Claude Shannon.

Ladder logic has contacts that make or break circuits to control coils. Each coil or contact corresponds to the status of a single bit in the programmable controller's memory. Unlike electromechanical relays, a ladder program can refer any number of times to the status of a single bit, equivalent to a relay with an indefinitely large number of contacts.

So-called "contacts" may refer to physical ("hard") inputs to the programmable controller from physical devices such as pushbuttons and limit switches via an integrated or external input module, or may represent the status of internal storage bits which may be generated elsewhere in the program.

Each rung of ladder language typically has one coil at the far right. Some manufacturers may allow more than one output coil on a rung.

  • —( )— A regular coil, energized whenever its rung is closed.
  • —(\)— A "not" coil, energized whenever its rung is open.
  • —— A regular contact, closed whenever its corresponding coil or an input which controls it is energized.
  • —— A "not" contact, open whenever its corresponding coil or an input which controls it is energized.

The "coil" (output of a rung) may represent a physical output which operates some device connected to the programmable controller, or may represent an internal storage bit for use elsewhere in the program.

Read more about this topic:  Ladder Logic

Famous quotes containing the words simple, ladder, logic and/or program:

    It is a curious emotion, this certain homesickness I have in mind. With Americans, it is a national trait, as native to us as the rollercoaster or the jukebox. It is no simple longing for the home town or country of our birth. The emotion is Janus-faced: we are torn between a nostalgia for the familiar and an urge for the foreign and strange. As often as not, we are homesick most for the places we have never known.
    Carson McCullers (1917–1967)

    George Shears ... was hanged in a barn near the store. The rope was thrown over a beam, and he was asked to walk up a ladder to save the trouble of preparing a drop for him. “Gentlemen,” he said, “I am not used to this business. Shall I jump off or slide off?” He was told to jump.
    —For the State of Montana, U.S. public relief program (1935-1943)

    There is no morality by instinct.... There is no social salvation—in the end—without taking thought; without mastery of logic and application of logic to human experience.
    Katharine Fullerton Gerould (1879–1944)

    Mead had studied for the ministry, but had lost his faith and took great delight in blasphemy. Capt. Charles H. Frady, pioneer missionary, held a meeting here and brought Mead back into the fold. He then became so devout that, one Sunday, when he happened upon a swimming party, he shot at the people in the river, and threatened to kill anyone he again caught desecrating the Sabbath.
    —For the State of Nebraska, U.S. public relief program (1935-1943)