Popular plc programmingindustrial automationLadderLogicconnect PLC to SCADA Modbusladder logicControlSystems
Article

Ladder Logic Symbols Cheat Sheet: Contacts, Coils, Timers and Function Blocks

Every ladder logic symbol you will meet, from contacts and coils to timer, counter, compare and move blocks, with the IEC, Siemens, Rockwell and Mitsubishi names side by side.

Ladder Logic Symbols Cheat Sheet, Bob Teaches Tech featured image

Ladder logic symbols are the building blocks of every PLC rung: contacts test a condition, coils write a result, and boxes (function blocks) do the timing, counting, comparing and maths. This cheat sheet lists the symbols you will actually meet on the job, with the IEC 61131-3 form next to the names Siemens, Rockwell and Mitsubishi use, so you can read a program from any brand.

If you are completely new to ladder, read my ladder logic tutorial first. It covers the eight core symbols, the scan cycle and your first program. This page is the reference you keep open next to the software.

Anatomy of a ladder rung

Before the symbols, know the parts of the drawing they sit on.

Annotated ladder logic diagram showing the left and right power rails, rungs, contacts, a parallel branch, coils, a TON function block, rung numbers and a rung comment
Figure 1. The parts of a ladder program. Rung 1 is a start/stop seal-in; rung 2 feeds a TON timer box.
  • Power rails. The vertical lines on the left and right. Think of the left rail as the live supply. Siemens TIA Portal draws only the left rail; Rockwell and Mitsubishi draw both.
  • Rungs. Each horizontal line is one statement. The PLC solves rungs from top to bottom, and each rung from left to right.
  • Series and parallel. Contacts in series form an AND. Contacts on parallel branches form an OR.
  • Rung numbers and comments. Numbers help you find a rung; comments tell the next person why it exists. Write them.

Contact symbols

Contacts are input instructions. Each one asks a question about a single bit and either passes power along the rung or blocks it.

Symbol IEC 61131-3 name Passes power when Siemens LAD Rockwell Mitsubishi
-| |- Normally open contact The bit is 1 Normally open contact XIC LD / AND / OR
-|/|- Normally closed contact The bit is 0 Normally closed contact XIO LDI / ANI / ORI
-|P|- Positive transition-sensing contact The bit went 0 to 1 since the last scan (one scan only) P contact (with an edge memory bit) ONS (one-shot) LDP / ANDP / ORP
-|N|- Negative transition-sensing contact The bit went 1 to 0 since the last scan (one scan only) N contact (with an edge memory bit) No direct contact; use OSF LDF / ANDF / ORF
-|NOT|- (Siemens extension) Inverts the result of everything to its left NOT (invert RLO) Not available; restructure with XIO INV (FX3U)

Two things trip up beginners here. First, the contact type has nothing to do with the field device. A normally closed stop button gives a 1 while it is not pressed, so it is programmed with a normally open contact. Second, edge contacts are true for exactly one scan. That is perfect for counting a part or starting a step, and useless for driving a lamp you want to see.

Comparison contacts

Some platforms let you put a comparison right in the rung as a contact. Siemens has CMP contacts (==, <>, >, >=, <, <=) and IN_RANGE / OUT_RANGE boxes. Mitsubishi FX3U has comparison contacts such as LD= D0 K100 and LD> D10 K500. Rockwell uses separate input instructions: EQU, NEQ, GRT, GEQ, LES, LEQ and LIM. They all behave like a contact that is closed while the comparison is true.

Coil symbols

Coils are output instructions. They sit at the right-hand end of the rung and write the rung result to a bit.

Symbol IEC name What it does Siemens LAD Rockwell Mitsubishi
-( )- Coil Bit = rung result, every scan Assignment OTE OUT
-(/)- Negated coil Bit = NOT rung result Negate assignment None; use XIO logic None
-(S)- Set (latch) coil Sets the bit to 1 when the rung is true; leaves it alone when false S (set output) OTL SET
-(R)- Reset (unlatch) coil Clears the bit to 0 when the rung is true R (reset output) OTU RST
-(P)- / -(N)- Transition-sensing coils Bit is 1 for one scan on a rising / falling rung result P and N coils, P_TRIG / N_TRIG OSR / OSF PLS / PLF

Output coil versus set and reset

An output coil (OTE, OUT) rewrites its bit on every scan. If the rung goes false, the bit goes to 0. A set coil only ever writes a 1, and a reset coil only ever writes a 0, so the bit remembers the last command. That is why set/reset is right for alarms and sequence steps, and why a seal-in circuit is usually the better choice for motors.

Siemens and IEC also offer the SR and RS flip-flop boxes. Both have a set and a reset input; the difference is which one wins when both are on. SR is set-dominant, RS is reset-dominant. For anything that moves, choose reset-dominant.

Timer and counter blocks

Timers and counters are drawn as boxes with input pins on the left and output pins on the right.

Ladder logic function block symbols: TON timer, CTU counter, GT compare and MOVE boxes with their input and output pins labelled
Figure 2. The four box instructions you will meet most: a timer, a counter, a compare and a move.
Function IEC / Siemens Rockwell Logix Mitsubishi FX3U
On-delay timer TON TON OUT T0 K50 (T0–T199 are 100 ms)
Off-delay timer TOF TOF No instruction; build from a TON
Pulse timer TP No instruction; build from ONS + TON No instruction; build from SET + TON
Retentive timer TONR RTO + RES T246–T255 + RST
Up counter CTU CTU + RES OUT C0 K10 + RST C0
Down counter CTD CTD C200–C234 in down mode
Up/down counter CTUD CTU and CTD on the same COUNTER tag C200–C234, direction set by M8200–M8234

The full behaviour, with timing diagrams, is in PLC timers explained: TON, TOF and TP and PLC counters: CTU, CTD and CTUD.

Compare, move and maths blocks

As soon as you work with analog values, recipes or counts, you need data instructions. They work on words (INT, DINT, REAL) rather than bits, so check your data types match on both sides.

Function IEC / Siemens Rockwell Mitsubishi FX Example
Equal / not equal EQ, NE (CMP ==, <>) EQU, NEQ LD=, LD<>, CMP (FNC 10) Recipe number = 3
Greater / less GT, GE, LT, LE GRT, GEQ, LES, LEQ LD>, LD>=, LD<, LD<= Tank level > 80 %
In a range IN_RANGE LIM ZCP (FNC 11) Temperature between 60 and 75 °C
Copy a value MOVE MOV MOV (FNC 12) Load 1450 rpm into a speed setpoint
Add / subtract ADD, SUB ADD, SUB ADD (FNC 20), SUB (FNC 21) Total = Line1 + Line2
Multiply / divide MUL, DIV MUL, DIV MUL (FNC 22), DIV (FNC 23) Scale a raw analog value
Formula CALCULATE CPT Several instructions in a row (Raw − 5530) × 100 / 22118

EN and ENO

Many Siemens and IEC boxes have an EN (enable) input and an ENO (enable out) output. The box only executes while EN has power, and ENO passes power on to the next box if the operation succeeded. A divide by zero or an overflow switches ENO off, which makes it a cheap error check. Rockwell math instructions have no ENO; they run when the rung is true and set status flags instead.

Program control symbols

These change which rungs are scanned. Use them sparingly: logic that is skipped is also frozen, including any timers inside it.

Function Siemens Rockwell Mitsubishi FX
Jump to a label JMP / LABEL JMP / LBL CJ (FNC 00) to a P pointer
Call a subroutine or block Call FC / FB box JSR (with SBR / RET) CALL (FNC 01), SRET (FNC 02)
Master control zone None in S7-1200/1500 MCR MC / MCR
Disable a rung for testing Comment out the network AFI (always false) Delete or bypass the rung
End of program Implicit Implicit END

How to read a rung you have never seen

  1. Start at the coil. Find out what the rung writes. The tag name usually tells you the purpose: Motor_Run, Valve_Open, Alarm_HighTemp.
  2. Read the conditions as a sentence. Series contacts are AND, branches are OR, a slashed contact is NOT. “Pump runs if (Auto AND Level_Low) OR Manual_Start, AND NOT Fault.”
  3. Check each contact against the field wiring. Is the device wired normally open or normally closed? That decides whether the contact should be normally open or normally closed.
  4. Look for the same coil elsewhere. Search the cross-reference for the output. If it appears on two rungs, the lower one wins.
  5. Watch it live. In online mode, highlighted contacts are passing power. Follow the highlight until it stops: that contact is your answer.

The fastest way to build this skill is to watch rungs execute. The Ladder Lab simulator on this site lights up each contact as it passes power and shows the same program as an instruction list underneath, so you can link the symbols to the Mitsubishi mnemonics (LD, ANI, OUT) in the tables above. If you have an FX, my guide to reading and writing FX ladder programs shows how to upload a program and monitor it. For the Boolean side of contacts, see Boolean algebra and logic gates in PLCs.

The symbol names in this cheat sheet follow IEC 61131-3, the standard that defines ladder diagram along with the other PLC languages; PLCopen has a good free overview of it.

Frequently asked questions

What are the basic symbols of ladder logic?

The basics are the normally open contact (-| |-), the normally closed contact (-|/|-) and the output coil (-( )-). Add set and reset coils, edge contacts, and timer and counter boxes and you can read most machine programs.

What does XIC and XIO mean in ladder logic?

They are Rockwell names. XIC, “examine if closed”, is the normally open contact and is true when its bit is 1. XIO, “examine if open”, is the normally closed contact and is true when its bit is 0.

What is the difference between OTE and OTL?

OTE (output energize) writes the rung result to its bit every scan, so the bit follows the rung. OTL (output latch) only sets the bit to 1 and leaves it there until an OTU (output unlatch) clears it.

What does a P or N inside a contact mean?

P marks a positive (rising) edge contact, true for one scan when the bit changes from 0 to 1. N marks a negative (falling) edge contact, true for one scan when the bit changes from 1 to 0.

Are ladder logic symbols the same on every PLC?

The basic contacts and coils look almost the same everywhere because IEC 61131-3 defines them. Instruction names, box layouts and some advanced symbols differ between Siemens, Rockwell, Mitsubishi and others, which is why a cross-reference like this one helps.

Keep going

Want the next tutorial in your inbox? Join the newsletter, one practical tutorial a week, or download the free eBook Introduction to Ladder Logic Programming and I/O Configuration from the resources library.

About The Author

Stuck on a step? Ask here

Include your PLC model and software version if you can. Your email is never published.