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:
“To whatsoever upright mind, to whatsoever beating heart I speak, to you it is committed to educate men. By simple living, by an illimitable soul, you inspire, you correct, you instruct, you raise, you embellish all. By your own act you teach the beholder how to do the practicable. According to the depth from which you draw your life, such is the depth not only of your strenuous effort, but of your manners and presence.”
—Ralph Waldo Emerson (18031882)
“A funny business, a womans career. The things you drop on your way up the ladder so you can move faster. You forget youll need them again when you get back to being a woman.”
—Joseph L. Mankiewicz (19091993)
“Somebody who should have been born
is gone.
Yes, woman, such logic will lead
to loss without death. Or say what you meant,
you coward . . . this baby that I bleed.”
—Anne Sexton (19281974)
“The last public hanging in the State took place in 1835 on Prince Hill.... On the fatal day, the victim, a man named Watkins, peering through the iron bars of his cell, and seeing the townfolk scurrying to the place of execution, is said to have remarked, Why is everyone running? Nothing can happen until I get there.”
—Administration for the State of Con, U.S. public relief program (1935-1943)