PLC Playground guide cover: PLC scan time and missed pulses

PLC Misses a Sensor Pulse? A Faster Screen Won\’t Fix the Scan

A short pulse can occur entirely between ordinary input samples. Watching the tag more often on an HMI does not recover an event the controller never captured. Trace the physical pulse through input filtering, hardware acquisition, and task execution before changing the display.

Simplified sampling example; exact scan and I/O-update order is controller-specific.

What is happening?

Input hardware and controller execution are separate timing layers. Depending on the platform, ordinary logic reads a process image, a connection update, or an explicitly accessed value. Pulse-catch, interrupt, and high-speed-counter features have their own limits and configuration requirements; none should be assumed enabled.

Check these five things

  1. Determine the shortest valid physical pulse and the fastest expected event rate from the machine requirements.

  2. Check the input module's filter and minimum pulse specifications for the selected configuration.

  3. Review how the controller acquires that input and when the consuming task executes.

  4. Choose a supported capture method that meets the requirement, then test it in an isolated or approved commissioning environment.

  5. Verify how the captured event is acknowledged so a fast event is neither lost nor processed twice.

Worked example

In a simplified sampling model, inputs are observed at 0 and 10 milliseconds. A pulse from 3 to 5 milliseconds is never seen by those samples. This illustrates a timing risk; real controller timing must include the actual module, connection, and task behavior.

Quick diagnostic reference

Layer Timing question
Sensor How short can the pulse be?
Input module Will filtering pass it?
Controller logic Is the event captured before it disappears?

The mistake to avoid

Reducing an HMI refresh interval only changes what the screen requests or displays. It cannot substitute for appropriate input acquisition.

How to verify the fix

Test minimum-width pulses at different timing positions relative to the task, then confirm exactly one application event per valid pulse.

Field-work boundary: These are educational diagnostic guides. Use the exact equipment manuals and approved site procedures. Electrical testing and machinery changes belong to qualified, authorized personnel; control hazardous energy and validate affected functions before release.

Technical reference

Siemens: S7-1200 scan-cycle processing. The examples and diagnostic tables above are original teaching material; they do not replace the product manual.

Continue troubleshooting

Previous Post Next Post