Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Brands and Sourcing

Separating Input Filtering From Scan Timing After a PLC's 25 MHz Crystal Replacement

Do not blame a new crystal for missed short pulses at a PLC input before locating the point of loss. Follow the same pulse at the terminal, after filtering and at the program's input read.

This applies to ordinary programmable logic controller (PLC) digital inputs on an isolated low-voltage development bench. Example pulse widths, scan times and filters do not apply to safety inputs controlling machinery. Do not disable filtering or protection on production equipment to test this.

A transition at the terminal does not mean the program read a high

Follow the terminal, threshold and isolation circuitry, filtered state and the input image read by the program. The filter rejects short transitions; scanning reads at its own times. A pulse may fail the input threshold, be rejected by the filter or survive filtering but fall between reads. These point to different areas: the input front end, configuration or acquisition strategy.

An online monitor shows only what was available at refresh time. A slow display does not establish slow internal processing. Align the terminal waveform, approved internal status and software event counts to one trigger. If the filtered state cannot be observed directly, use supported diagnostics or a controlled test program and mark inferred nodes. A screenshot at one instant cannot reconstruct the sequence.

An input may support ordinary scan, pulse capture or hardware counting. Whether capture was enabled, whether the same filter precedes it and whether events are merged depend on the module and mode. Capture cannot recover pulses already rejected upstream. Some counter inputs have separate minimum widths and speed limits; verify them instead of copying settings from ordinary inputs.

What do the 4 ms and 6 ms examples show?

Suppose a filter recognizes an input only after it stays high for 6.4 ms. A 4.0 ms pulse falls short by 2.4 ms even if other conditions are met. The filter rejects it and faster program reads cannot recover it. An integrating filter or separate rising and falling rules require checks against the actual implementation.

In another test, the post-filter signal is independently confirmed high from 2.0 ms to 8.0 ms. The input image is read at 0 ms and 10 ms with no latch. Neither read lands in the valid interval. Shift the pulse phase so the valid interval is 7.0 ms to 13.0 ms and the 10 ms read catches it. This illustrates phase and read windows, not the probability of missed pulses in a real PLC.

In the first case no valid state exists; in the second it exists but ordinary scanning misses it. Hold amplitude, spacing and software load fixed. Vary width and phase separately to distinguish filter threshold from scan blind spots. Changing amplitude and phase together obscures the cause if capture resumes.

What evidence makes the 25 MHz crystal worth investigating?

NDK's NX3225GA under specification STD-CRG-2 is an example supporting 25 MHz with 8 pF nominal load. In the applicable frequency range, maximum equivalent series resistance is 50 Ω and initial error is ±20 ppm at 25 °C. The specification number covers multiple frequencies and is not a complete order description without frequency. This is not the known BOM of a commercial PLC. Confirm the full order code, load and temperature range, then validate startup on the actual oscillator circuit.

For scale, if a 6.4 ms timer derives entirely from 25 MHz and changes only by an assumed 20 ppm at room temperature, its change is about 6.4 × 0.000020 = 0.000128 ms, or 0.128 µs. That is far less than the 2.4 ms gap in the first example. Load, temperature or loss of oscillation can still affect real hardware. This initial-tolerance comparison helps prioritize checks, not rule out the clock circuit.

Investigate the clock path if missed pulses accompany changed startup, errors in several independent timing functions or failure to switch from internal to external clock. Verify the actual clock domain of the controller or input module. A remote module's filter may not use the motherboard's 25 MHz clock. Prefer a controlled buffered point or a signal with a known timebase relationship, and compare original and candidate using the same method.

Joint purchasing, engineering and quality checks

CheckBench actionEvidence
Input waveformFix threshold conditions, amplitude and generator modeReceiver levels, minimum width and phase
Module filteringCheck channel settings and pre/post-filter statesChannel, firmware, valid window and configuration
Program acquisitionDistinguish scan, latch and high-speed channelImage update time, capture count and missing events
Crystal comparisonCompare original and candidate startup and frequency under identical settingsCode, specification, installed lot, temperature and board revision
ReleaseSeparate filter changes and component substitutionVerify each application requirement separately

When a field report says the issue appeared after a replacement, check whether the shift also reflashed the project, changed modules or restored defaults. Compare original and new parts with the same bench, inputs and firmware. Then hold the part fixed and compare input settings. Keep suspect stock identifiable, but do not attribute all faults to one incoming lot without a board-level control.

For boundary samples, retain waveforms near the threshold and report both captured and total pulses. A lighter test program may scan faster and hide the issue. Keep an off-machine baseline with representative task load where practicable and document source and acquisition method. Quality needs to know whether the shortest required pulse reliably reaches the designated path under approved settings, not whether a status icon flashes.

Record high and low durations separately. Close pulses may merge into one longer filtered state. For products that see repeated events under load, test the minimum interval with a controlled burst as well as isolated pulse width.

Frequently asked questions

The input LED flashes, but the program records nothing. Is that crystal error? First identify what drives the LED. It may indicate terminal or module state upstream of the program. Align the input image and count to the same event before assigning a cause.

If shortening the filter stops the losses, can we approve the crystal replacement? No. It changes noise rejection and does not establish part equivalence. Assess the input design and crystal substitution separately under approved conditions.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.