Bird
Raised Fist0
PLC Programmingscripting~15 mins

Output coil in PLC Programming - Deep Dive

Choose your learning style10 modes available
Overview - Output coil
What is it?
An output coil is a basic element in PLC programming that controls an output device like a motor or light. It acts like a switch that turns the device on or off based on the logic conditions. When the coil is energized, the connected device activates; when de-energized, it stops. This simple concept helps automate machines by linking logic to physical actions.
Why it matters
Without output coils, PLCs couldn't control real-world devices, making automation impossible. They solve the problem of turning machines on or off automatically based on sensor inputs or program logic. Without output coils, operators would have to manually control every device, losing efficiency, safety, and precision.
Where it fits
Before learning output coils, you should understand basic PLC concepts like inputs, ladder logic, and boolean logic. After mastering output coils, you can learn about more complex outputs like latching coils, timers, counters, and analog outputs to build advanced automation programs.
Mental Model
Core Idea
An output coil is a virtual switch in PLC logic that controls a physical device by turning it on or off based on program conditions.
Think of it like...
Think of an output coil like a light switch in your home. When you flip the switch on, the light turns on; when you flip it off, the light goes off. The PLC program decides when to flip this switch automatically.
┌───────────────┐
│   Input Logic │
└──────┬────────┘
       │ (true/false)
       ▼
┌───────────────┐
│  Output Coil  │───▶ Controls device ON/OFF
└───────────────┘
Build-Up - 7 Steps
1
FoundationWhat is an Output Coil
🤔
Concept: Introducing the output coil as the basic control element in PLCs.
In PLC ladder logic, an output coil represents a device that the PLC controls. It looks like a circle or parentheses with a label inside. When the logic before the coil is true, the coil energizes and turns the device on. When false, the coil de-energizes and turns the device off.
Result
The output coil changes state based on the logic, turning the connected device on or off.
Understanding the output coil is essential because it links the PLC's decision-making to real-world actions.
2
FoundationBasic Ladder Logic with Output Coil
🤔
Concept: How to use an output coil in a simple ladder logic rung.
A ladder rung has input conditions on the left and an output coil on the right. For example, if a start button input is true, the output coil energizes, turning on a motor. The coil's state depends entirely on the input conditions.
Result
When the start button is pressed, the motor turns on; when released, the motor turns off.
Seeing the coil in a ladder rung shows how inputs control outputs directly and simply.
3
IntermediateOutput Coil Behavior with Multiple Inputs
🤔Before reading on: do you think all inputs must be true to energize the coil, or just one? Commit to your answer.
Concept: Output coils respond to combined input logic using AND/OR conditions.
You can combine multiple inputs with AND (series contacts) or OR (parallel contacts) before the coil. The coil energizes only if the combined logic is true. For example, two switches in series require both to be on; in parallel, either one can energize the coil.
Result
The coil energizes only when the combined input conditions meet the logic requirements.
Knowing how input logic combinations affect the coil helps design precise control sequences.
4
IntermediateNormally Open vs Normally Closed Coils
🤔Before reading on: do you think output coils can be normally closed, or are they always normally open? Commit to your answer.
Concept: Output coils can represent devices that are energized when logic is true (normally open) or de-energized when logic is true (normally closed).
A normally open coil energizes when the rung logic is true, turning the device on. A normally closed coil energizes when the rung logic is false, turning the device on. This lets you control devices that need to be off by default or on by default.
Result
You can control devices that require different default states using coil types.
Understanding coil types expands your ability to model real devices with different control needs.
5
IntermediateLatching Output Coils for Memory
🤔Before reading on: do you think output coils can remember their state after inputs change, or do they always follow inputs directly? Commit to your answer.
Concept: Latching coils keep their state even if input conditions change, acting like memory bits.
A latching coil turns on when set by input logic and stays on until reset by another input. This is useful for start/stop controls where the output remains on after the start button is released.
Result
The coil maintains its state independently of current inputs until explicitly reset.
Knowing how to use latching coils lets you build controls that remember states, essential for many machines.
6
AdvancedOutput Coil Timing and Scan Cycle
🤔Before reading on: do you think output coils change instantly when inputs change, or is there a delay? Commit to your answer.
Concept: Output coils update their state once per PLC scan cycle, which affects timing and response.
PLCs scan inputs, execute logic, then update outputs in a cycle. Output coils change state only at the end of each scan. This means very fast input changes might be missed, and timing must consider scan time.
Result
Output coils reflect logic state changes with a small delay equal to the scan time.
Understanding scan cycle timing prevents bugs related to missed or delayed output changes.
7
ExpertInternal Representation and Optimization of Coils
🤔Before reading on: do you think output coils are stored as separate variables, or optimized internally by the PLC? Commit to your answer.
Concept: PLCs internally represent output coils as bits in memory and optimize their execution for speed and reliability.
Each output coil corresponds to a bit in the PLC's output image table. The PLC updates this table after logic execution, then physically sets outputs. PLCs optimize coil evaluation order and may merge coils controlling the same device to avoid conflicts.
Result
Output coils are efficiently managed in memory and hardware, ensuring fast and safe device control.
Knowing internal coil handling helps troubleshoot complex issues like output conflicts or timing glitches.
Under the Hood
Output coils are stored as bits in the PLC's output image table, a memory area representing all outputs. During each scan cycle, the PLC reads inputs, executes the logic, sets or clears bits for output coils, then writes these bits to physical output modules. This separation ensures consistent and synchronized control of devices.
Why designed this way?
This design isolates input reading, logic processing, and output updating to avoid race conditions and ensure predictable behavior. Early PLCs used this scan model to simplify programming and hardware design, trading off some latency for reliability and ease of troubleshooting.
┌───────────────┐      ┌───────────────┐      ┌───────────────┐
│   Input Scan  │─────▶│ Logic Execution│─────▶│ Output Image  │
│ (Read Inputs) │      │ (Evaluate Rungs)│      │  Table (Bits) │
└───────────────┘      └───────────────┘      └───────────────┘
                                                   │
                                                   ▼
                                         ┌───────────────────┐
                                         │ Physical Outputs   │
                                         │ (Motors, Lights)  │
                                         └───────────────────┘
Myth Busters - 4 Common Misconceptions
Quick: Does an output coil turn on a device immediately when input changes, or only after the PLC scan completes? Commit to your answer.
Common Belief:Output coils change device states instantly as soon as inputs change.
Tap to reveal reality
Reality:Output coils update only once per PLC scan cycle after all logic is evaluated.
Why it matters:Assuming instant change can cause timing errors and missed signals in fast processes.
Quick: Can output coils store memory of their state without extra logic? Commit to your answer.
Common Belief:Output coils always follow inputs directly and cannot remember previous states.
Tap to reveal reality
Reality:Latching coils or additional logic can make output coils remember their state until reset.
Why it matters:Misunderstanding this limits the ability to design start/stop controls and stateful machines.
Quick: Are output coils physical devices inside the PLC? Commit to your answer.
Common Belief:Output coils are physical switches inside the PLC hardware.
Tap to reveal reality
Reality:Output coils are virtual representations in the PLC program controlling physical output modules.
Why it matters:Confusing virtual coils with hardware can lead to wrong troubleshooting approaches.
Quick: Can multiple output coils control the same physical device safely? Commit to your answer.
Common Belief:You can freely use multiple coils to control one device without issues.
Tap to reveal reality
Reality:Multiple coils controlling the same device can cause conflicts and unpredictable behavior unless carefully managed.
Why it matters:Ignoring this can cause device damage or unsafe machine states.
Expert Zone
1
Output coils are often optimized by PLC compilers to reduce scan time by merging identical coils or removing redundant logic.
2
Some PLCs support forced outputs that override coil states for testing or safety, which can confuse debugging if not tracked.
3
The physical wiring and module type affect how output coils behave electrically, such as sourcing vs sinking outputs, which impacts device compatibility.
When NOT to use
Output coils are not suitable for controlling analog devices or variable speed drives directly; use analog outputs or specialized function blocks instead. Also, avoid using simple coils for complex state machines where structured programming or state charts are better.
Production Patterns
In real systems, output coils are combined with interlocks, safety checks, and feedback inputs to ensure safe operation. Latching coils are used for start/stop pushbuttons, and timers or counters often control coils for delayed or counted actions.
Connections
Boolean Logic
Output coils implement the result of boolean logic expressions in PLC programs.
Understanding boolean logic helps predict when coils energize, making programming more intuitive.
Digital Electronics
Output coils correspond to bits controlling physical relays or transistors in digital circuits.
Knowing digital electronics clarifies how virtual coils translate to real electrical signals.
Home Automation Systems
Output coils in PLCs are conceptually similar to smart home switches that automate lights and devices.
Recognizing this connection shows how industrial automation principles apply to everyday technology.
Common Pitfalls
#1Assuming output coils update instantly and writing logic that depends on immediate output changes.
Wrong approach:IF input THEN output_coil = ON; immediately check output_coil state in same scan.
Correct approach:Design logic knowing output_coil updates after scan; use feedback inputs or next scan cycle for checks.
Root cause:Misunderstanding the PLC scan cycle timing and output update process.
#2Using multiple output coils to control the same device without coordination.
Wrong approach:Rung1: IF condition1 THEN coil_motor = ON Rung2: IF condition2 THEN coil_motor = OFF
Correct approach:Use a single coil with combined logic or latching to manage device state safely.
Root cause:Not realizing that conflicting coil commands cause unpredictable device behavior.
#3Treating output coils as physical hardware switches inside the PLC.
Wrong approach:Trying to physically manipulate coils inside the PLC hardware for troubleshooting.
Correct approach:Understand coils are program elements controlling hardware outputs; troubleshoot via software and output modules.
Root cause:Confusing software representation with physical hardware components.
Key Takeaways
Output coils are the bridge between PLC logic and physical device control, acting like virtual switches.
They update once per PLC scan cycle, so timing and state changes are not instantaneous.
Combining input conditions with coils allows precise control of devices using boolean logic.
Latching coils enable memory of output states, essential for start/stop and stateful controls.
Understanding internal coil representation and scan timing helps avoid common automation bugs.

Practice

(1/5)
1. What is the main purpose of an output coil in PLC programming?
easy
A. To control devices like lights or motors by turning them ON or OFF
B. To read input signals from sensors
C. To store data temporarily
D. To perform mathematical calculations

Solution

  1. Step 1: Understand the role of output coils

    Output coils are used to control physical devices by turning them ON or OFF based on program logic.
  2. Step 2: Differentiate from other PLC elements

    Input signals are read by input instructions, data storage is done by registers, and calculations are done by math instructions, not output coils.
  3. Final Answer:

    To control devices like lights or motors by turning them ON or OFF -> Option A
  4. Quick Check:

    Output coil controls devices = B [OK]
Hint: Output coils always control devices ON/OFF [OK]
Common Mistakes:
  • Confusing output coils with input instructions
  • Thinking output coils store data
  • Assuming output coils perform calculations
2. Which of the following is the correct syntax to define an output coil named Motor in ladder logic?
easy
A. ( ) Motor
B. COIL Motor
C. OUT Motor
D. SET Motor

Solution

  1. Step 1: Recognize ladder logic output coil symbol

    In ladder logic, output coils are represented by parentheses around the coil name, like ( ) Motor.
  2. Step 2: Compare other options

    OUT and SET are instructions but not standard coil syntax; COIL is not a typical keyword.
  3. Final Answer:

    ( ) Motor -> Option A
  4. Quick Check:

    Output coil uses parentheses = A [OK]
Hint: Output coils use parentheses in ladder logic [OK]
Common Mistakes:
  • Using keywords like OUT or SET instead of parentheses
  • Confusing coil syntax with input instructions
  • Omitting parentheses around coil name
3. Given the ladder logic snippet:
( ) Light
--[ ] Switch
What happens when the Switch input is ON?
medium
A. Nothing changes
B. The Light output coil turns ON
C. The Switch input turns OFF
D. The Light output coil turns OFF

Solution

  1. Step 1: Understand the ladder logic flow

    The normally open contact [ ] Switch controls the output coil ( ) Light. When Switch is ON (closed), current flows to Light coil.
  2. Step 2: Determine output coil state

    Since Switch is ON, the Light coil energizes and turns ON the Light output.
  3. Final Answer:

    The Light output coil turns ON -> Option B
  4. Quick Check:

    Switch ON energizes Light coil = D [OK]
Hint: Input ON energizes output coil ON [OK]
Common Mistakes:
  • Thinking output coil turns OFF when input is ON
  • Confusing input and output roles
  • Assuming no change occurs
4. Identify the error in this ladder logic snippet:
( ) Motor
--[ ] Start
--[/] Stop
where [/] is a normally closed contact. The Motor never stays ON even when Start is pressed and Stop is released.
medium
A. The output coil syntax is incorrect
B. The Stop contact should be normally open, not normally closed
C. The contacts are not connected in parallel
D. The Start contact is wired incorrectly

Solution

  1. Step 1: Analyze contact wiring logic

    The Start and Stop contacts are in series, so both must be ON for Motor coil to energize.
  2. Step 2: Understand typical start/stop control

    Usually, Start and Stop contacts are wired in parallel or with a latch to maintain Motor ON after Start is pressed.
  3. Step 3: Identify wiring issue

    Because contacts are in series without latching, Motor never stays ON; wiring should be parallel or use latch logic.
  4. Final Answer:

    The contacts are not connected in parallel -> Option C
  5. Quick Check:

    Start/Stop need parallel or latch wiring = C [OK]
Hint: Start/Stop usually wired parallel or latched [OK]
Common Mistakes:
  • Assuming output coil syntax is wrong
  • Changing Stop contact type incorrectly
  • Not recognizing wiring arrangement
5. You want to control a valve using an output coil named Valve. The valve should turn ON only if both Pressure_OK and Temperature_OK inputs are ON. Which ladder logic snippet correctly implements this?
hard
A.
( ) Valve
--[/] Pressure_OK
--[ ] Temperature_OK
B.
( ) Valve
--[ ] Pressure_OK
--[/] Temperature_OK
C.
( ) Valve
--[ ] Pressure_OK
--| | Temperature_OK
D.
( ) Valve
--[ ] Pressure_OK
--[ ] Temperature_OK

Solution

  1. Step 1: Understand AND condition in ladder logic

    To turn Valve ON only if both inputs are ON, the contacts must be in series, both normally open.
  2. Step 2: Check each option

    ( ) Valve
    --[ ] Pressure_OK
    --[ ] Temperature_OK
    
    has both [ ] Pressure_OK and [ ] Temperature_OK in series, correct for AND logic.
    ( ) Valve
    --[ ] Pressure_OK
    --[/] Temperature_OK
    
    uses normally closed for Temperature_OK, wrong.
    ( ) Valve
    --[ ] Pressure_OK
    --| | Temperature_OK
    
    uses invalid symbol | |.
    ( ) Valve
    --[/] Pressure_OK
    --[ ] Temperature_OK
    
    uses normally closed for Pressure_OK, wrong.
  3. Final Answer:

    with both normally open contacts in series -> Option D
  4. Quick Check:

    Both inputs ON in series = Valve ON [OK]
Hint: AND logic uses series normally open contacts [OK]
Common Mistakes:
  • Using normally closed contacts incorrectly
  • Confusing AND with OR logic
  • Using invalid contact symbols
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard