IMDHMIControls LibraryShop main store

Troubleshooting

Why an FX3U goes to error after a TON download

PLC programming Published 8 min read By IMDHMI controls team

Short answer

An FX3U that goes to error after a structured ladder TON download in GX Works2 is failing CPU acceptance, not the timer: compile and simulator passes never test the physical CPU's own checks. Read the error code, text and program location from PLC Diagnostics and Error Help on the connected unit before you change the preset, add program-flow instructions or rewrite anything.

On this page
  1. Why a compile pass and a simulator pass stop short
  2. Checks to make before you rewrite the timer
  3. Read the diagnostic on the connected FX3U
  4. Working the reported FX3U26MR-E case through four checks
  5. Match the failure stage to the layer that failed
  6. Build a one-timer test on the physical FX3U
  7. Verify the timer after the error clears
  8. Questions asked

An FX3U that goes to error after you download a structured ladder program containing TON is not yet telling you the timer is bad. The two passes you already have — a clean compile and a clean simulator run — prove the project source and the logic behavior, and they stop there. The deciding step is reading the exact error code, the full text and the program location from PLC Diagnostics and its Error Help on the connected unit, because only the physical CPU runs the acceptance and self-diagnosis checks that a simulator never exercises. Do that before you change the preset, add program-flow instructions or rewrite anything. This article takes the reported case — an FX3U26MR-E in GX Works2, compiled and simulated fine, faulted on download — through four checks that separate a transfer problem from a program-acceptance problem, and ends with the decision for each failure stage.

Why a compile pass and a simulator pass stop short #

A structured ladder timer call passes through three layers, and your two passes cover only the first two. The editor and compiler check the project source. The simulator checks the logic behavior, on the PC. The CPU then checks the downloaded program against the physical controller and its operating state, and that layer runs nowhere else. A compile proves the source builds; a simulator run proves the timer logic behaves as written; neither proves that the physical FX3U accepts every instruction, operand and resource allocation in the program it receives.

One documented hardware behavior matters before you test on a machine: when the FX3U CPU detects an error during self-diagnosis, such as a watchdog timer error, it turns all outputs off. Treat a download into a running controller as an event that can drop outputs, and make the machine safe first.

Checks to make before you rewrite the timer #

  • Read the diagnostic first. The error indication on the module does not identify the timer as the cause; the code, the full text and the operating status in PLC Diagnostics do.
  • Record before you clear. Capture the code, the reported program location and the transfer messages before you clear the error or cycle power.
  • Pin the failure stage. Decide whether the error lands during transfer, after transfer while stopped, at the RUN request, or when the timer path first executes.
  • Match the project target to the nameplate. The reported unit is an FX3U26MR-E; select exactly that PLC type in the project.
  • Keep the failing project. You need it to reproduce the fault and to compare against a working minimal test.
  • Do not re-download an unchanged program. Sending the same executable again cannot repair a reproducible program fault.

A preset change helps only when the diagnostic points at the preset, its type or its range; a different delay does not repair a target mismatch. Adding END or RET blindly changes program flow without addressing the fault the CPU reported, so insert them only where the generated program's flow calls for them. A rewrite out of structured ladder changes every variable at once — hold that move until the code and a minimal test have shown which layer actually fails.

Read the diagnostic on the connected FX3U #

Connect online and open the PLC diagnostics window in GX Works2, then open its Error Help: together they give the error code, the full description, the CPU operating status and, where one is supplied, the program location. The Error Jump option repositions the PLC Diagnostics display when the CPU jumps on an error, so the diagnostic stays in view at the fault. Write down the code, the text, the operating status and the location before you touch anything.

The operating status decides the response. A minor error can leave the scan running; a self-diagnosis fault stops it. Read the status, not the lamp. A code names a specific fault, not a timer fault in general: one documented example is the C9009 code that a structured-text pulse timer produces in GX Works2, a different case with its own fix, worked in why a GX Works 2 ST pulse timer TP fails with error C9009. The code you read, not the word TON, picks the repair.

Inspect the location the diagnostic names. If it points into the generated timer logic, open the timer call and its declarations; if it points anywhere else, investigate that location first. The timer is the first suspect because it is what you downloaded, but the reported location decides the cause. If pressing F1 on the timer block opens nothing, the help files are missing from that PC — the guide to installing the GX Works2 help files and restoring F1 covers that setup, and it restores the same Error Help this diagnosis needs. The FXCPU structured programming manual documents the structured timer instructions; keep it beside you when you check the call's operands.

Working the reported FX3U26MR-E case through four checks #

Inputs, each with its source:

  • Unit: FX3U26MR-E — from the nameplate in the reported case.
  • Software: GX Works2, structured ladder project containing a TON call — as reported.
  • Check 1, project compile: pass — reported.
  • Check 2, simulator run: pass — reported.
  • Check 3, transfer completion: completes, with the error appearing once the program is on the CPU — reported sequence.
  • Check 4, CPU acceptance and self-diagnosis at the RUN request: fails — reported.
  • Documented behavior used below: a self-diagnosis error such as a watchdog timer error turns all outputs off — FX3U hardware manual.

The rule, in words: each check exercises one layer, and the layer where the first failure lands is the layer to investigate. The compile tests the source. The simulator tests the logic. The transfer tests the link and the destination. The CPU's acceptance and self-diagnosis test whether the physical controller takes and can run the program.

The arithmetic: checks passed = 2 before the download (compile, simulator) + 1 at the download (transfer completion) = 3 of 4. Checks failed = 1 of 4, and it is the fourth. Both checks that run on the engineering PC sit inside the three that passed, so the single failure is the one check only the physical FX3U performs.

Result: the source is proven to build, the logic is proven to behave as written, and the transfer path is proven by completion. Exactly one layer is unproven: CPU acceptance of the downloaded program — the selected PLC type, the instruction support of that FX3U, or an operand detail the real hardware enforces and the simulator does not.

Decision: read the code, text, operating status and location from PLC Diagnostics and Error Help on the connected unit before editing a single operand. With 3 of 4 checks passing and the failure at check 4, the order is fixed: diagnostic first, a targeted repair at the reported location second, and a timer rewrite only if the reported location is the timer call itself.

Match the failure stage to the layer that failed #

What you observe Layer to investigate Deciding check
Error during or immediately after transfer Transfer path, destination or download result Transfer result message and PLC diagnostic before any RUN request
Transfer completes, CPU errors at the RUN request Program acceptance: PLC type, instruction or operand the CPU rejects Diagnostic code, operating status and reported location
CPU runs until the timer path first executes The timer call, its instance and operands, or surrounding logic Monitored enable condition and the diagnostic at the moment of failure
Simulator passes while the physical unit faults Gap between the simulation configuration and the connected hardware CPU identity, project PLC type and the generated instructions

The reported case sits in the second row, and the worked example above gives its decision. The third row is a different fault stage: if your CPU runs and the alarm trips the moment the timer's enable goes true, that failure is worked in why a structured text TON trips an alarm immediately in an FX CPU.

Build a one-timer test on the physical FX3U #

Test on hardware only with the machine safe to exercise, and keep the production project and controller contents saved before you replace anything in the CPU. Then:

  • Create a separate test project for the FX3U26MR-E, in structured ladder, so the test exercises the same programming path rather than dodging it.
  • Keep the logic to one timer call: a controllable enable, a preset, and a way to watch the done output. No sequences, no communications, no output actuation.
  • Give the call its own declared instance, and connect the enable input, the preset time input, the done output and the elapsed-time output against the block's declared interface.
  • Set the preset in the time format the block declares; a number written as a delay is not automatically valid for every timer interface, and the block's entry in the structured programming manual is the reference.
  • Download, read the CPU status before requesting RUN, then enable the timer and watch the block's outputs.

Decide from the result. If the minimal test runs, compare its PLC type, declarations and generated timer logic with the failing project, then restore the surrounding logic in small groups until the failure returns — the last group added carries the cause. If the minimal test faults, you now hold a smaller project and a fresh diagnostic, and CPU compatibility or the timer implementation can be chased without the rest of the program in the way.

Verify the timer after the error clears #

A cleared error is acceptance, not correctness, so confirm the timer on the unit before calling the job done:

  • With the enable false, watch the timer's state and check the reset behavior matches the block's definition.
  • With the enable held true, confirm the done output comes on after the preset, allowing for scan-based observation.
  • Drop the enable and repeat; the next cycle must begin from a reset state rather than continue the old elapsed time.
  • Re-run the operating condition that produced the original fault, then reopen PLC diagnostics and confirm the CPU is clean.

If any of those checks misbehaves, the diagnostic code from that run — not the original download error — is now the fact that decides the repair.

Questions asked

Does cycling power clear the FX3U error?

A power cycle restarts the CPU and its self-diagnosis, but it repairs nothing: if the fault is reproducible, the same program brings the same fault back. Treat a power cycle as a reset that returns the unit to a diagnosable state, and read the code from PLC Diagnostics before you download or run anything else. If the error returns after a clean re-download, the program, not the unit, is the suspect.

Do END or RET statements fix the error?

No. END terminates a main program and RET returns from a subroutine; both are program-flow instructions, not error-clearing commands. Adding either one blindly changes program structure without touching the fault the CPU reported. Insert them only where the program's flow requires them, and only after the diagnostic has shown you the location that actually failed.

Should I rewrite the program in ladder instead of structured ladder?

Not first. A rewrite changes the compiler path, the generated code and every operand at once, so you lose the ability to tell which change mattered. Keep the failing project, read the diagnostic, and run the one-timer test project in the same structured style. Move to ladder only if the code and the minimal test together show the CPU rejects the structured path itself.

Will an FX3U keep running with a minor error?

It can. The error lamp alone does not tell you whether execution has stopped: some minor errors leave the scan running, while a self-diagnosis fault such as a watchdog timer error stops the CPU and turns every output off. Open the PLC diagnostics window and read the operating status it reports before you decide whether the process can keep running.

Keep reading

  • Troubleshooting

    Why a CODESYS TON output stays on after its rung goes false

    A false EN does not reset a CODESYS TON — it stops the block from executing at all, so Q holds the value from the last executed call. Route the process condition to IN, keep the enable permanently true, and the timer resets itself the way the standard intends.

    PLC programming

  • Troubleshooting

    Import PLC Coder XML into TwinCAT 3 with PLCopen import

    The "cannot consume the specified XML" error in TwinCAT 3 means the file reached a generic project-tree XML import, not the PLCopen importer. Right-click the PLC project in the solution tree, choose Import PLCopenXML and select the generated file. The command and its destination decide success; the XML stays as generated.

    PLC programming

  • How-to

    Connect a TON output to a function block input in TwinCAT ladder

    In TwinCAT ladder, the rung's power flow always lands on a block's first input, so with NT_GetTime it lands on NETID instead of START. Right-click the rung and choose Box with EN to create an enable path, then right-click the short line before START and use Insert at Block... to place a box there, replacing the default AND with TON by typing the name or using Input Assistant with F2.

    PLC programming