Troubleshooting

When a result surprises you, do not guess. Run one scan, click the instruction and let the Troubleshoot tab read back what that scan recorded. This page shows how, then lists common problems with their causes and fixes.

Use the Troubleshoot tab

  1. Click Single Scan. One scan is enough to record what every rung and instruction did.
  2. Open the Troubleshoot tab at the bottom of the editor. Use the Run menu and choose Troubleshoot, or press Ctrl+Shift+D.
  3. Click a rung or an instruction. The Selected card reads back what the last scan recorded for it. Hover a card to read it in full.
  4. Follow the tag that supplied a value that surprised you, to the instruction that writes it, or to the Link that publishes it.

The three cards

CardTells you
BuildWhether the project is built, out of date or has errors that block Run. Buttons: Build, and Show problems.
Last scanThe scan number, or that there is no scan yet, or that the runtime faulted.
SelectedWhat the selected rung or instruction did in that scan. Go to jumps back to it.

An instruction reading has the form In scan 1, XIC evaluated to false and passed continuity no further. It also lists the incoming and outgoing continuity, the tags it read and the tags it wrote. A timer reading gives ACC against PRE, and a compare reading gives the two values it compared. Troubleshoot only reads what the last scan recorded. It does not change anything. See the tab on a real project on the FORGE page.

An example: the motor will not start

This seal-in has one mistake. StopPB is wired as a normally open contact (XIC), so the rung needs StopPB on before the motor can start. StartPB is on and Motor is still 0:

TagValue
StartPB1
StopPB0
Motor0

Select the StopPB contact. Troubleshoot says it evaluated to false and passed continuity no further, so power never reaches the Motor coil. Replace the contact with a normally closed one (XIO) and the rung works the way a stop button should:

1. Press Start. StopPB is off, so its normally closed contact passes power. Motor turns on.

StepStartPBStopPBMotor
1. Press Start101
2. Release Start001
3. Press Stop010

Common problems

What you seeWhyWhat to do
Run or Single Scan is refused and a message such as “1 error: …” appears.A build error blocks Run. Warnings never block it.Open Problems, choose Errors and fix each row. Click Build to check again.
A rung stays off and you do not know why.Power stopped at an instruction before the coil.Select the rung, run one scan and read the Troubleshoot tab.
You cannot edit a rung, tag or screen. A “Stop to edit” message shows.Editing is not allowed while the PLC runs.Click Stop (Alt+S), make the change, then Run again.
Problems warns “MyTimer written by 2 timers”.Two timers use one TIMER tag, so the first one in the scan changes ACC, TT and DN before the next one runs.Give each timer its own tag.
“Routine ‘X’ is never called from ‘Main’, so it will not execute.”No Call Routine instruction reaches that routine.Add a Call Routine for it, or delete the routine.
“TON Timer is required and has no operand.”An instruction has an empty operand.Assign a tag, member or number to it.
“Tag reference ‘X’ does not exist.”A tag was renamed or deleted, or its name has a typo.Create the tag, or choose the right one. Find References lists every rung that uses a tag.
Clicking a tag does not change it. It shows an F.The tag is forced, and a force holds its value whatever the logic writes.Click Clear forces in the Tags table, then confirm.
A message says “Faulted. Reset.”The runtime stopped on a fault, such as “Line 4 divided by zero, so nothing was written.”Read the fault in Problems, click Reset (Alt+Shift+R), fix the cause and run again.
A value arrives one scan late.The rung that reads a tag is above the rung that writes it.Move the writing rung up. See Rung order.
A Link shows “Connection Service off”, or says its inputs and outputs are not live.The Connection Service is not running, not paired or out of date.Open the Link’s Connection tab and follow the state it shows. See Connection Service.
A feature shows a padlock or “Pro”.It needs a Pro plan. The editor, runtime, Inspector and saving to a file stay free.Carry on without it, or look at the plans.
Replay says “Sign in” or “Pro”.Replay needs a signed-in account on a plan that includes it.Sign in, or see Replay.

Problems lists build errors, warnings and runtime faults in one table, with a filter for each. The Errors and Warnings counts in the status bar open it. For more, see Structured Text: common errors.

Before you ask for help

  • Press Build, then read Problems from the top. One error can cause several others.
  • Clear every force before you trust a result. A forced tag ignores the logic.
  • Single Scan and toggle bits show one cause at a time. See Test one scan at a time.
  • Record the run with Replay to find a cause that happened in one scan of many.

Related