PLC & Control Systems

When should you run a CODESYS runtime latency test?

Publication Date

May 27, 2026

author

Victor Lin (Chief Software Architect)

For after-sales maintenance teams, knowing when to run a codesys runtime latency test can mean the difference between quick fault isolation and prolonged downtime. If PLC response starts drifting, edge devices lag, or field complaints increase under load, latency testing becomes a practical diagnostic step. This guide explains the right timing, warning signals, and engineering context for making reliable maintenance decisions.

What does a CODESYS runtime latency test actually tell maintenance teams?

When should you run a CODESYS runtime latency test?

A codesys runtime latency test measures timing behavior inside a control system rather than simple device availability. It helps after-sales teams determine whether scan cycles, task execution, communication stacks, or edge workloads are introducing delays that can affect machine response.

In mixed industrial environments, latency problems rarely appear as a single alarm. They often surface as intermittent I/O lag, unstable HMI feedback, delayed actuator response, missed synchronization events, or complaints that a machine works in manual mode but becomes unreliable in automatic operation.

This is why a codesys runtime latency test matters across robotics, process skids, packaging lines, CNC support cells, AGV docking logic, and edge-connected inspection systems. The test is not only about finding a fault. It is about proving whether timing margins remain acceptable under real operating load.

  • It reveals whether task jitter is growing beyond the tolerance expected by the application.
  • It separates runtime timing issues from fieldbus wiring, sensor drift, or mechanical wear.
  • It provides evidence for escalation when the issue involves hardware limits, virtualization overhead, or overloaded edge gateways.

Why latency matters more in modern mixed architectures

Older standalone PLC systems often had predictable timing envelopes. Newer installations combine soft PLCs, industrial PCs, virtual machines, OPC UA traffic, historian uploads, machine vision triggers, and remote service sessions. Each added layer can consume CPU time, interrupt scheduling, or create communication contention.

For teams supporting multiple sites, information noise is a real problem. Operators may report “slow PLC behavior,” yet the root cause may be a Windows update, a high-priority background process, network bursts, storage bottlenecks, or an application task designed with poor priority balance. A codesys runtime latency test turns vague complaints into measurable timing evidence.

When should you run a codesys runtime latency test in the field?

After-sales personnel should not wait for total failure before running a codesys runtime latency test. The best timing is usually when the system still works, but response consistency is no longer trustworthy. That window gives you repeatable data before faults become chaotic.

The following table summarizes common maintenance triggers and the diagnostic value of latency testing.

Field trigger Typical symptom Why run the codesys runtime latency test
Post-commissioning instability Machine passes FAT but becomes erratic on site Verifies whether local hardware, network load, or added software changes task timing
Complaint under peak production load Delays appear only at high throughput or with many stations active Shows whether CPU saturation or communication bursts are increasing jitter
After firmware, OS, or application update No obvious fault, but cycle behavior feels different Confirms whether software changes altered scheduler behavior or background resource use
Intermittent fieldbus or edge communication delays Remote I/O updates arrive late or HMI values stutter Helps distinguish runtime overload from pure network hardware issues

The main takeaway is simple: run the test when performance changes are repeatable but not yet catastrophic. That is the point where timing data is most useful for isolating root causes and limiting unplanned downtime.

Five practical moments that justify immediate testing

  1. After replacing a controller, industrial PC, network card, or storage device, because identical specifications do not guarantee identical timing behavior.
  2. When a customer adds vision, traceability, OPC UA publishing, MES connectors, or historian logging to an existing machine.
  3. When the machine behaves normally in dry cycle tests but drifts during full recipe execution with all peripherals active.
  4. When remote support sessions reveal CPU spikes, but no hard alarm is generated in the application.
  5. Before closing a recurring service ticket that has been “fixed” by rebooting more than once.

Which warning signals usually point to runtime latency rather than another fault?

Not every control issue requires a codesys runtime latency test. Maintenance efficiency improves when teams first identify the symptom pattern. Timing faults usually produce inconsistent, load-sensitive, and state-dependent behavior rather than a clean and permanent failure.

  • Cycle-dependent faults: the problem appears during recipe transitions, coordinated motion, or multi-station handshakes.
  • Load-dependent faults: delays increase during data logging, camera triggers, or remote diagnostics.
  • Recovery after restart: temporary improvement occurs after reboot, then degrades again as runtime load accumulates.
  • Cross-domain symptoms: operators blame mechanics, electricians suspect fieldbus issues, and IT points to the network, yet no single subsystem fails permanently.

Symptoms that are often misread in service reports

A delayed output does not always mean a bad relay. A missed inspection trigger does not always mean a faulty camera. An unstable AGV docking sequence does not always mean poor localization. In many systems, the common factor is that a task or communication thread is no longer meeting its intended execution window.

TSV’s data-first perspective is useful here: maintenance decisions should rely on observable timing behavior, not marketing claims about “real-time performance.” Parameters, tolerances, and repeatability matter more than generic product language.

How should after-sales teams execute a useful codesys runtime latency test?

A useful codesys runtime latency test is not a single screenshot. It is a controlled comparison between expected timing and actual timing under defined operating states. The value comes from method, not just tools.

Recommended service workflow

  1. Record the complaint condition clearly, including production state, active devices, network traffic profile, and recent changes.
  2. Capture baseline timing during idle or reduced-load operation so you know what “normal” looks like on that installation.
  3. Repeat the test under real load, not only in engineering mode, because many problems appear only with all services enabled.
  4. Compare task cycle time, jitter, CPU utilization, communication latency, and event response sequence rather than relying on one number alone.
  5. Correlate timing deviations with log events, fieldbus diagnostics, HMI refresh behavior, and operating system activity if an industrial PC is involved.

When maintenance teams skip the baseline step, they often misjudge normal variation as a fault. When they skip the loaded-state step, they miss the real issue. Good testing always compares at least two operating conditions.

What data should be captured

To make the codesys runtime latency test actionable, document timing data in a way that supports escalation, spare parts decisions, and future preventive service. The table below can serve as a field checklist.

Data point Why it matters Service interpretation
Task cycle time and jitter Shows deterministic behavior and schedule stability Growing jitter often points to CPU contention, priority imbalance, or OS interference
CPU load by operating state Indicates remaining performance headroom High average load may be acceptable, but spikes with timing drift are a warning
Network or fieldbus timing during load Checks whether updates stay within control expectations If network timing worsens only when runtime load rises, the issue may not be cabling alone
Timestamped event sequence Tracks cause-and-effect across sensor, logic, and output Useful for proving whether delay begins in input handling, logic execution, or external communication

This data structure supports a more disciplined maintenance process. It also helps procurement and engineering teams decide whether the problem needs reconfiguration, hardware replacement, or architecture changes such as moving noncritical workloads off the controller platform.

How do you separate controller latency from network, hardware, and application design issues?

A codesys runtime latency test is most valuable when used together with comparative diagnosis. After-sales teams often lose time because they test everything at once. A better method is to isolate the fault domain step by step.

Comparison logic that reduces false conclusions

  • If runtime jitter increases while network counters stay stable, investigate task priorities, CPU overhead, and application structure first.
  • If both runtime timing and network timing degrade together only under load, inspect shared resource contention, gateway overload, or excessive edge services.
  • If timing remains stable but the process still responds late, check actuator mechanics, valve response, drives, and sensor placement.
  • If the issue appears only after software revision, compare task configuration, polling rates, data logging frequency, and third-party service additions.

This comparison-based approach aligns with TSV’s engineering philosophy. Instead of assuming a vendor claim or operator impression is correct, use measurable thresholds and repeatable tests to filter out noise and identify what changed in the real system.

What procurement and retrofit decisions should follow a codesys runtime latency test?

For after-sales teams, diagnostics often turn into procurement recommendations. Once a codesys runtime latency test confirms limited timing headroom, the next question is not only how to fix today’s fault, but also how to prevent repeat calls after the next feature expansion.

The table below helps translate test findings into practical retrofit and sourcing decisions.

Test finding Likely next action Procurement or retrofit note
Stable average load but large jitter spikes Review task priorities and background services Do not replace hardware first unless configuration cleanup fails
Sustained high load with low reserve Consider higher-performance controller or industrial PC Specify CPU margin for future workloads, not only current recipe demand
Timing worsens when edge analytics or logging is enabled Separate control and noncritical compute tasks Procure a dedicated edge device or gateway instead of overloading the runtime host
Latency linked to communication bursts Redesign polling, segmentation, or gateway architecture Assess switch quality, network isolation, and deterministic communication requirements

This prevents a common service mistake: replacing components without improving timing architecture. A better spare-parts or upgrade decision should be tied to measured latency behavior, workload trend, and site expansion plans.

Questions to ask before recommending replacement

  • Will the customer add more stations, traceability functions, or edge analytics within the next year?
  • Is the runtime sharing resources with visualization, database logging, or remote access software?
  • Does the current design leave enough deterministic margin for abnormal but realistic peak conditions?
  • Would network segmentation or application restructuring solve the issue more effectively than a controller swap?

Common misconceptions about a codesys runtime latency test

“No alarm means no timing problem”

Many latency issues stay below alarm thresholds but still degrade process quality, throughput, or synchronization. Maintenance teams should not rely only on fault logs when customer complaints are repeatable.

“If the CPU is not maxed out, timing must be fine”

Average CPU usage can look acceptable while short spikes cause missed timing windows. Jitter and event timing often reveal more than average load alone.

“A faster controller automatically solves latency”

Not always. Poor task design, oversized polling, unnecessary services, and weak network architecture can follow the new hardware and reproduce the same field complaint.

“Testing in engineering mode is enough”

It is useful, but incomplete. A codesys runtime latency test should reflect real production conditions, including active recipes, communication traffic, and edge-side services that customers actually use.

FAQ for maintenance teams handling runtime timing complaints

How often should a codesys runtime latency test be performed?

It is usually event-driven rather than calendar-driven. Run it after major software changes, controller replacement, network architecture changes, feature additions, or recurring service complaints under load. For critical assets, a baseline test after stable commissioning also helps future comparison.

Is the test only relevant for high-speed machines?

No. High-speed packaging and motion systems are obvious candidates, but slower systems also suffer from timing issues when they coordinate multiple devices, recipes, or edge services. Process skids, AGV stations, inspection cells, and remote I/O heavy systems can all benefit.

What is the biggest mistake during field diagnosis?

Testing only after reboot, in a reduced-load state, or without recording recent site changes. That often hides the true source of latency and leads to repeated callbacks.

Can latency testing support supplier or retrofit evaluation?

Yes. Timing evidence can validate whether a proposed controller, industrial PC, gateway, or network redesign offers meaningful operational margin. It also supports more disciplined specification writing for future projects.

Why work with a data-driven technical partner when timing issues are hard to prove?

When the failure mode is intermittent, teams need more than generic advice. They need engineering interpretation grounded in measurable behavior. That is where TSV’s approach is different. We focus on hard parameters, benchmarking logic, and traceable evaluation rather than broad marketing claims.

For after-sales maintenance teams, this means support that can help frame the real question: is the issue caused by runtime overhead, weak architecture margin, unsuitable edge integration, communication contention, or an incorrect replacement decision? Reducing that uncertainty shortens fault isolation and improves service credibility with end users.

  • Ask us to review timing-related parameters before controller or edge hardware replacement.
  • Consult on product selection when adding gateways, IPCs, vision loads, or data services to an existing CODESYS-based system.
  • Request guidance on delivery planning, retrofit scope, and risk points before a site shutdown window.
  • Discuss certification, industrial environment constraints, and integration requirements when the project touches regulated or high-reliability sectors.
  • Use TSV as a technical filter when you need benchmark-style reasoning for quotations, custom solutions, or spare-part upgrade paths.

If your team is dealing with repeated timing complaints, uncertain hardware sizing, or mixed edge-control workloads, contact us with the application profile, timing symptoms, and current architecture. We can help you clarify parameter confirmation, solution selection, retrofit priorities, delivery considerations, and quotation discussions based on engineering evidence rather than guesswork.

Recommended News