Explainer
How a ladder rung translates to Boolean logic
Short answer
A series rung with a normally open contact on Input_1 and a normally closed contact on Input_2 is the Boolean expression Output_1 = Input_1 AND NOT(Input_2): series contacts are AND, parallel branches are OR, and a normally closed contact tests the PLC input value for false, not the field switch's construction. Write the required behavior as a four-row truth table before drawing or changing any contact.

On this page
A rung with a normally open contact on Input_1, a normally closed contact on Input_2, and a coil on Output_1 is one specific Boolean statement: Output_1 = Input_1 AND NOT(Input_2). Nothing about the drawing is decorative. Series contacts mean AND, parallel branches mean OR, and a normally closed contact means the input value is tested for false. Before you draw or flip a single contact, write down when the output must be true and when it must be false. That sentence, checked against a truth table, is the whole design step; the rung is just its transcription.
The Boolean behind the rung #
Every ladder rung evaluates left to right and produces one logical result per scan: the rung condition that either energizes the coil or leaves it de-energized. In the example, two conditions gate that result. Input_1 must be true, because a normally open contact passes rung power only when its addressed input is on. Input_2 must be false, because a normally closed contact passes rung power only when its addressed input is off. Both contacts sit in series, so both conditions must hold simultaneously. That is the AND. The inversion on the second condition is the NOT. Combine them and you have the expression above, which is the only correct description of what this rung does.
Ladder inherited this structure from relay circuits, where series and parallel wiring of contacts produced the same AND and OR relationships, which is why the notation reads like a circuit diagram even though a PLC is just evaluating Boolean expressions each scan. If you want the full symbol vocabulary first, the article on ladder logic symbols and what each one does in a rung covers every element this article assumes you recognize.
One condition, three notations #
The same logic can be written three ways, and moving between them is the skill that makes rungs readable:
Boolean form: Output_1 = Input_1 AND NOT(Input_2)
Instruction list form (IEC 61131-3):
LD Input_1
ANDN Input_2
ST Output_1
Load Input_1 into the result register, AND it with the negation of Input_2, store the result in Output_1. Three instructions, one scan, same truth table.
Structured text form:
IF Input_1 AND NOT Input_2 THEN
Output_1 := TRUE;
ELSE
Output_1 := FALSE;
END_IF;
If a rung confuses you in ladder, translate it into one of the other two notations on paper. The Boolean and the IF/THEN block state the same requirement in a form that has no drawing conventions to misread, and an error hidden by the graphics becomes an obvious wrong word.
The truth table decides the drawing #
Do not begin with contacts; begin with the table. For two inputs there are exactly four combinations, and the requirement fixes the output column for every one of them:
| Input_1 | Input_2 | Output_1 |
|---|---|---|
| false | false | false |
| false | true | false |
| true | false | true |
| true | true | false |
Read the requirement off this table: the output is true for exactly one combination, Input_1 true with Input_2 false. One true row out of four means one AND of two terms, one of them inverted. Had the table demanded true whenever Input_1 is true regardless of Input_2, the correct rung would be a single normally open contact. Had it demanded true when either input is true, the contacts would go in parallel. The table, not habit, selects the arrangement.
The decision rule: true in one row only means AND of the conditions as read in that row (true input gets a normally open contact, false input gets a normally closed contact). True in several rows means OR those row patterns, each built the same way, in parallel branches.
Series is AND, parallel is OR #
The wiring of the rung maps one-to-one onto the operators:
- Series contacts must all pass at once: that is AND. Break anywhere in the chain and the coil drops.
- Parallel branches pass if any one of them passes: that is OR. Each branch is its own mini-condition feeding the same coil.
- A normally closed contact anywhere inverts the condition it contributes: that is NOT applied to that input.
Mixed logic is built by nesting the two arrangements. A rung that must pass when (Input_1 OR Input_2) is true AND Input_3 is false is a parallel pair in series with a normally closed contact, written (Input_1 OR Input_2) AND NOT(Input_3). When you check someone else's rung, reduce it to exactly that string before judging it; the graphics hide precedence, the parentheses do not.
Normally closed tests the input value, not the field switch #
The contact symbol describes a test on the PLC's input image bit, nothing more. A normally closed contact does not say the field device is a normally closed switch, and a normally open contact does not say the opposite. A field switch wired with normally closed contacts drives its input true at rest and false when actuated or when a wire breaks. If your rung must pass while that switch sits at rest, you need a normally open contact on that input, because the input bit itself is true. The physical-versus-logical distinction is worth working through with a concrete tank example, which the guide on PLC normally closed contacts, physical versus logic behavior does step by step.
So never change a contact's polarity because someone describes the field device as normally open or normally closed. The description tells you what the input bit will read; the truth table tells you what the rung needs; the contact follows from those two facts together. The wiring diagram and the online input status are the only authorities on the first fact.
Logic error or signal-path fault #
When the rung will not energize, work the path in order and settle each point before touching logic:
- Field device: is the switch or sensor actually actuating? Watch it, or measure it.
- Input status: does the online I/O display show the input bit in the expected state? If not, the problem is wiring, device actuation, or input configuration, and no ladder edit will fix it.
- Logic evaluation: with both input bits confirmed correct, monitor the rung. If the bits match the truth table's true row and the coil still reads false, the logic is wrong: an inverted permissive, a missing condition, or a parallel branch you did not account for.
- Output status: confirm the output bit follows the rung result.
- Final element: if the output bit is true and the load is dead, the fault is downstream: output module, interposing relay, starter coil, or the device itself.
This order matters because the two failure classes have different fixes. A signal-path fault is corrected in the field or the I/O configuration. A logic error is corrected in the program, and only after the truth table has confirmed the requirement. Flipping a contact to "make it work" while the input never arrives is how a correct rung gets corrupted to mask a broken wire.
Test all four rows, then commit #
Prove the rung by walking the truth table under an approved test condition. Actuate the field devices to produce each of the four input combinations, and at each one check both the coil status and the physical response at the final element. The rung passes when the observed output column matches the required column in all four rows: energized for true/false, off for the other three. A true software bit alone does not count; the load must respond.
One boundary on this example: a two-contact rung is control logic, not a safety function. Machine safeguarding such as emergency stop, guard interlocking, or safe torque off belongs in the safety-rated circuit and devices defined by the risk assessment, never in standard rung logic alone. Everything above applies to the control behavior around that circuit, not in place of it.
The decision, for each case you will meet: one true row in the table means series contacts, normally open for a true input and normally closed for a false one. Several true rows mean parallel branches, each built the same way. A field device's physical construction never selects the contact; the input state it produces and the row it must satisfy do. And a dead rung is a field or wiring problem until the input bits are proven correct, and only then a logic problem.
Questions asked
If the field switch is wired normally closed, which ladder contact do I use?
Use the contact that matches the behavior you need, judged from the live input state. A wired-NC switch drives its input true at rest and false when actuated or when a wire breaks, which is why NC field wiring is common for permissives. If the rung must pass while that switch is at rest, use a normally open contact on that input, because the input itself is true.
Does the example rung turn on when both inputs are true?
No. Input_2 is tested for false, so when both inputs are true the inverted condition fails, the series path breaks, and Output_1 stays off. Only one of the four input combinations, Input_1 true with Input_2 false, energizes the coil.
Is the Boolean expression portable to any PLC?
The logic is portable; the notation is not guaranteed to be. The relationship Output_1 = Input_1 AND NOT(Input_2) holds in any IEC 61131-3 ladder editor, but addresses, tag naming, and output behavior (retentive or not, forced or not) depend on the controller and its firmware. Re-enter the expression in the target editor and verify it against the same truth table rather than copying strings between platforms.
How do I build an either-input-but-not-both condition in ladder?
There is no single XOR contact in standard ladder, so build it from two parallel branches: Input_1 true with Input_2 false, OR Input_2 true with Input_1 false. In Boolean form that is (Input_1 AND NOT(Input_2)) OR (Input_2 AND NOT(Input_1)). Test all four combinations, since both branches are false when the inputs match, which is exactly the intended behavior.
Does a true coil status prove the load is running?
No. A true coil proves the program evaluated the rung to true and commanded the output bit. Between that bit and the load sit the output module, the wiring, the interposing relay or starter coil, and the final element itself. Confirm the physical response, and when the bit is true but the load is dead, measure the output circuit rather than editing logic.


