IMDHMIControls LibraryShop main store

Troubleshooting

Why CODESYS shows zero when an EPIC analog input is in error

Controllers and I/O Published 5 min read By IMDHMI controls team

Short answer

The EPIC firmware this behavior was reported on does not pass the analog input quality status to CODESYS, so an unprobed GRV-IICTD-12 channel shows a numeric zero while groov Manage correctly marks it in error with an invalid value. Treat the zero as unverified, confirm the channel in groov Manage, and check the release notes of the installed firmware before building fault-aware logic on a status CODESYS cannot see.

On this page
  1. What groov Manage and CODESYS each report
  2. Why the number arrives and the status does not
  3. Handling the zero in application logic
  4. Confirming the fault on the bench
  5. Worked example: counting trustworthy channels on an unprobed GRV-IICTD-12
  6. The decision for each case
  7. Questions asked

Both tools are telling the truth. groov Manage flags the channel as in error with an invalid value because the GRV-IICTD-12 has no probe connected, and CODESYS shows zero because the EPIC firmware this behavior was reported on does not pass the analog input quality status through to CODESYS: the number arrives, the validity flag does not. The missing status has been submitted for a future firmware update, with no version or date published, so no upgrade can be named today that closes the gap. Until the release notes for your installed firmware say the status is exposed, treat a zero from that channel as unverified: not a measurement, and not by itself proof of a fault. Confirm the channel in groov Manage, and build any fault response so it does not depend on a flag CODESYS cannot see.

What groov Manage and CODESYS each report #

Read the two displays as one diagnosis rather than a conflict:

  • groov Manage: input error, invalid value. The correct status for a channel with nothing connected. The module knows the channel is bad and says so.
  • CODESYS: a numeric zero with no status. The value is delivered with no quality or error indication attached, so nothing on that screen separates a real zero from the fault.
  • The firmware in between: a capability gap. It forwards the number and withholds the quality status. The channel is not healthy because CODESYS displays a plausible number, and the fault is not absent because no flag is set.

A live-looking number on a dead channel is a familiar trap beyond this platform; the same ambiguity appears when a CODESYS analog input stays at zero on one channel.

Why the number arrives and the status does not #

In the EPIC firmware described by this report, the analog input quality status is simply not available in CODESYS. Scope that to the firmware version it was reported against: it is a limitation of that firmware, not of the GRV-IICTD-12, which reports its channel status correctly to groov Manage. The capability has been submitted for a future EPIC firmware update, and until the release notes of the firmware installed on your processor say otherwise, your unit does not have it. Nothing in the module's wiring or configuration changes the outcome, so do not spend bench time hunting for a setting that exposes the flag.

Handling the zero in application logic #

Decisions you can make now:

  • No zero sentinel. Zero is a legitimate measurement for many processes, and a rule that equates zero with probe break will trip on every genuine zero.
  • Where the process cannot reach zero, set a low alarm below the lowest value it can attain. A channel that falls through that floor is treated as failed regardless of what any quality flag would have said.
  • Where the process can read zero, no value-based test can catch the fault; that channel's validity lives only in groov Manage until the firmware changes. Where a failed channel must still reach the operator, apply the pattern to detect a failed analog input channel and report it to SCADA, with the test chosen around what your process can and cannot do.
  • Do not ask the module's filters to help. groov analog input modules offer two documented filtering options, average filter weight and simple moving average. Both combine samples of the same channel, so a channel stuck at zero filters to zero. A filter changes the shape of a fault, never its validity.

Confirming the fault on the bench #

Work through the case once so the behavior is documented on your own hardware:

  1. Leave the channels unprobed and power the module.
  2. In groov Manage, confirm each channel shows an error with an invalid value.
  3. In CODESYS, monitor the same channels and confirm they read zero with no status available.
  4. Fit a probe to one channel, confirm groov Manage returns it to good, and confirm the reading leaves zero and responds: warm the probe by hand and watch the value move.
  5. Record the installed firmware version and check its release notes for any mention of analog input quality status in CODESYS before you design around the gap.
  6. If groov Manage lists channels you never configured, duplicates left behind by an earlier configuration or firmware change, clear groov Manage duplicate I/O with a defaults reset first, so the status you are reading belongs to the real channel.

Worked example: counting trustworthy channels on an unprobed GRV-IICTD-12 #

The inputs, each with its source:

  • Channels on the module: 12, the channel count carried in the GRV-IICTD-12 designation.
  • Probes connected: 0, the case at hand, none fitted.
  • CODESYS reading on every channel: 0, the reported value.
  • groov Manage status on every channel: error, invalid value, the reported status.

The rule, in words: a channel may feed control only when an independent source reports it good. Because the quality status is absent from CODESYS, groov Manage is that source, and trust is counted channel by channel.

The arithmetic:

  • Channels that can be trusted: 12 - 12 = 0 of 12.
  • Share of the module usable for control: 0 ÷ 12 × 100 % = 0 %.
  • Zeros presented to the program: 12 channels each showing 0 = 12 zeros, every one a fault and none a measurement.

The result: the PLC receives twelve plausible numbers and no usable channels. Anything computed from those values, whether totals, averages or control errors, carries no information about the process.

The decision: a channel re-enters the control calculation only when groov Manage marks it good and its reading moves off zero with a probe fitted. The loop commissions at 0 invalid channels out of 12, not at mostly good; any count of 1 or more keeps those channels excluded and their zeros out of every calculation.

The decision for each case #

  • Bench, no probes fitted, zeros in CODESYS: expected behavior of the firmware described. No repair needed; fit probes and re-check.
  • In service, zero in CODESYS, groov Manage invalid: a real field fault, at the probe, the wiring or the terminal. Fix the field side; do not tune or filter around it.
  • In service, zero in CODESYS, groov Manage good: a genuine zero measurement. Leave the logic alone.
  • The PLC itself must catch a probe break: until the installed firmware's release notes document the quality status in CODESYS, gate channels that cannot reach zero with the process-floor alarm, and accept that channels which can read zero have no value-based protection. Their fault detection stays with groov Manage and the operator until the firmware changes.

Questions asked

What does the yellow LED on a groov I/O module mean?

A yellow light on a groov EPIC I/O module is its quality indicator: one or more of the module's values is outside the expected range. It is a module-level warning and does not name the channel, so with twelve channels on a GRV-IICTD-12 you still open groov Manage to find which input is flagged. With no probes fitted, expect the LED to be yellow.

How should I set the moving-average window if a probe can fail in service?

Short enough that a probe break still reads as a fault. When a probe dies partway through a window, good samples and zeros are averaged together, so the value drifts toward zero over one window instead of dropping; the longer the window, the more the break resembles a slow process change. Size the window for the noise you actually have, then simulate a probe break and confirm your alarms still catch it within one window.

Where do I check whether a newer firmware exposes the status to CODESYS?

In the release notes for the firmware installed on your EPIC processor, and in the groov I/O module firmware release notes, which track invalid-value behavior module by module and version by version. They record, for example, GRV-ITR-12 thermistor and 0 to 400k ohm auto-range channels that may show an invalid value. None of that material names a version that passes analog quality status to CODESYS, so treat any claim of a fix as unverified until the notes for your installed version state it.

Can my logic read the groov Manage status instead of waiting for CODESYS support?

Not through any path documented in the groov EPIC material reviewed for this article. An undocumented route would break with the next firmware, so do not hang an interlock on it. Until your firmware's release notes name a supported route, keep the interlock value-based where the process cannot reach zero, and leave validity checking with groov Manage where it can.

Keep reading

  • Troubleshooting

    Why a CODESYS analog input stays at zero on one channel

    A CODESYS analog input stuck at zero on one channel while the other channels respond is a channel fault, not a scaling problem: no formula recovers a value that never arrives. Measure the voltage at the channel's terminals and reference, watch the mapped input word online with the scaling untouched, then move the same signal to a second channel to prove which part is dead.

    Controllers and I/O

  • Troubleshooting

    CODESYS analog inputs read 0 on an I2C ADC: where the chain breaks

    Relays that switch and an i2cdetect entry at 16#68 prove the I2C bus is sound, and raw bytes that track the input prove the MCP3422 converts. The zero therefore sits in the UniPi_AI driver layer or the I/O mapping. Poll the chip with a raw read to confirm the split, then fix the mapping, the bus-cycle task and the Always update variables flag instead of the bus.

    Controllers and I/O

  • Explainer

    S7-1200 analog input full scale: why the data word tops at 27648

    An S7-1200 analog input reports its rated range as the data word 0 to 27648 for current and -27648 to +27648 for voltage, per the analog value representation table in the S7-1200 system manual. The word keeps counting to 32511 before saturating, and the 25 to 50 °C figure on thermocouple modules is the internal cold-junction sensor, not the measurement range.

    Controllers and I/O