Journeyman refresher Refresher 7 of 10 · about 9 min

Rusty on PLCs?

What you’ll learn

  • The scan cycle and what the input and output images are.
  • XIC and XIO, and the NC stop-button trap that catches everyone once.
  • Latches, timers and counters in one line each.
  • Troubleshooting from the I/O lights, and forcing without hurting anyone.

Before this: Intro to PLCs

XIC Stop (NC) XIC Start Motor (seal) OTE Motor
The start/stop rung in a PLC. The Stop button is wired NC in the field, so its bit is 1 at rest and the rung examines it with XIC; pressing Stop clears the bit and drops the seal.

Quick reference

ItemWhat it does
ScanRead inputs → solve program top to bottom → write outputs → housekeeping → repeat.
XICTrue when the bit is 1.
XIOTrue when the bit is 0.
OTEBit follows the rung, like a relay coil.
OTL / OTULatch sets the bit and leaves it; unlatch clears it. Survives rung going false.
TON / TOFOn-delay / off-delay timer; the done bit changes after the preset.
CTU / CTDCount up / down on each false-to-true transition; done bit at the preset.
ForceOverrides a real input or output. Stays until removed.

Worked: reading the lights on a dead conveyor

  1. Operator presses Start; conveyor does not run. Stop input LED is ON at rest — correct for an NC stop.
  2. Start input LED comes ON when pressed — the button and its wiring are good.
  3. Motor output LED stays OFF. The program is not commanding it, so look at the rung: a permissive (guard switch, e-stop relay) is false. The guard input LED is off.
  4. At the guard switch: meter reads the input voltage across its contacts — it is open. Adjust the actuator, the LED comes on, the rung goes true, the conveyor runs. Three lights and one reading.

On the job

Tips

  • Input LED tells you the field; output LED tells you the program. Decide which side of the card the fault is on before you open the laptop.
  • Hard-wired safety (e-stops, guard relays) should stop the machine without the PLC. Check it is there.
  • Log every force you apply and remove it before you leave.

Common mistakes

  • XIO on an NC stop button — the motor runs only while Stop is held.
  • Using the same output address on two rungs; the last one solved wins.
  • Forcing an input to “see what happens” with people near the machine.
  • Assuming a latched bit reset itself after a power failure.

Check yourself

0 right of 0 answered 6 questions · pick one answer each

  1. 1.A Stop pushbutton is wired as a normally closed contact to a PLC input. Which instruction do you use for it in the Stop position of a start/stop rung?

  2. 2.Why is Stop wired as a normally closed contact in the first place?

  3. 3.In the scan cycle, when does the PLC read the physical inputs?

  4. 4.The input LED for a limit switch is ON but the rung that uses it stays false. Where is the problem most likely?

  5. 5.What is the main hazard of forcing an input or output in a running PLC?

  6. 6.An output rung is true and the output LED is ON, but the motor starter does not pull in. What next?

Questions people ask

Is XIC the same as a normally open contact?

It behaves like one on the screen — it passes power when its bit is 1. But it is an instruction examining a bit, not a physical contact. Whether the field device is NO or NC decides what the bit is at rest, and that decides which instruction you need.

What is the difference between OTE and a latch (OTL/OTU)?

An OTE is on only while its rung is true, like a relay coil. A latch turns its bit on and leaves it on until an unlatch rung turns it off — even through a power cycle on many PLCs. Latches are why a machine can come back after a power failure in a state nobody expected.

Can I troubleshoot a PLC without the software?

A long way, yes. The input and output LEDs tell you what the PLC sees and what it is commanding. Field device ON but input LED OFF: field wiring or input card. Output LED ON but load dead: output circuit. Only when inputs look right and outputs look wrong do you need the program.

Related

Spot something wrong on this page? Report it

We’ll include this page and the numbers you entered. We read every report but can’t reply.

Thanks — your report was sent.

That didn’t send. Please try again later.