Troubleshooting
Why an Ewon Flexy loses CompactLogix tags after a program download
Short answer
When a full program download drops the CompactLogix connection, every Flexy tag faults at once, and with Disable Tags in Error selected the Flexy stops retrying them for good. Clear that option under IO Servers Global Settings so polling resumes when the controller returns, then back it with a status tag alarm and a conditional BASIC reboot for machines in the field.
On this page
Your Flexy 205 has not lost the tags; it has stopped asking for them. A full program download takes the CompactLogix offline for its messaging connection, every polled tag faults in the same instant, and with Disable Tags in Error selected the Flexy drops each one instead of retrying it. Online edits keep the controller running, which is why they never trigger the mass fault. Clear the option under IO Servers Global Settings and the tags pick up again on their own when the controller returns. Behind that, keep a connection status tag with an alarm and a conditional BASIC reboot for the field machines nobody watches.
Read the failure pattern before changing anything #
The pattern from the field is consistent, and the consistency is what points at the Flexy's retry logic rather than the network or the tag addresses.
| PLC activity | Flexy 205 result |
|---|---|
| Online program edit | Tag polling continues |
| Full program download | Tag connection lost |
| Flexy reboot | Data collection resumes |
What each observation rules in or out:
- A wrong address, a deleted tag or a subnet fault would break polling during online edits too. Here only the download does, so the tag configuration itself is sound.
- A reboot brings the data back with nothing reconfigured, so the restart is not repairing a setting; it clears the Flexy's error state, which is exactly what the retry option governs.
- A full download replaces the controller's program and refuses connected messaging while it runs, so every tag on the Flexy faults together. That simultaneous fault is what the option turns into a permanent stop.
Rule out one neighboring failure: a download that renames or retypes the polled tags lets the Flexy reconnect but leaves those individual tags in error for good. That is a mapping problem, the same class as why PLC symbol changes break SCADA tags in OFS, and the retry option has nothing to do with it.
Clear Disable Tags in Error in IO Servers Global Settings #
Open the Flexy configuration and go to IO Servers Global Settings. The option there has a legitimate job: the manufacturer's knowledge base presents it as the way to isolate a truly bad tag, because with it selected a faulted tag stops being called repeatedly. That suits one mistyped address and ruins a download, which makes every tag look bad at once.
- Open IO Servers Global Settings in the Flexy configuration.
- Clear Disable Tags in Error.
- Save the change.
- Run a verification download on a machine that is stopped, since a program download halts the controller's logic, and watch the tags.
With the option cleared the Flexy keeps retrying, so once the controller is back in Run and answering messages, the tags resume with no reboot. That is the fix; the sections below are insurance for the machines you cannot watch.
Watch the connection with a status tag and an alarm #
For the machines in the field, the Flexy's Allen-Bradley IO server provides a status tag for the PLC connection, documented by the manufacturer's support team as 1 when the connection is OK and 0 or 2 when it is not.
- Create the status tag and read it during normal polling to confirm the OK value.
- Put a tag alarm on it and set that alarm to send an email, so each loss reaches you instead of sitting unnoticed for days.
- For the alarm design, meaning which state triggers it, latching and the notification list, follow the same steps as creating a SCADA PLC communication alarm for link loss.
- Verify once with the controlled download: the value leaves the OK state and the email arrives.
Keep a conditional BASIC reboot as the fallback #
The alarm tells you about the loss; BASIC can also recover from it. An ONCHANGE section on the status tag runs whenever the value moves, and SENDMAIL and REBOOT are the documented calls from there. The guard is the part to get right: ONCHANGE fires on every transition, including the recovery back to the healthy value, so a handler that reboots unconditionally restarts the Flexy at the exact moment the connection returns.
ONCHANGE "status","GOTO lostconnection"
:lostconnection
IF status <> 1 THEN
SENDMAIL "<maintenance mailbox>","<device mailbox>","Flexy rebooting","PLC connection lost"
REBOOT
ENDIF
In this snippet status is the example name of the integer tag that holds the connection state, and during normal polling it reads the OK value; the two mailbox strings are yours to fill in. ONCHANGE, GOTO, SENDMAIL and REBOOT are the documented BASIC keywords.
Prove the logic during the controlled download before it runs on a field unit: the recovery transition must pass through the guard without a reboot, and only a value that stays not-OK may trigger the restart. Two costs come with the automation. On a Flexy that also carries your remote-access tunnel, each reboot drops that tunnel briefly. And if the tags come back with cleared values after a restart, take the separate path in troubleshooting Ewon Flexy tag value loss on reboot.
Worked example: checking the reboot guard on a Flexy 205 across a download #
The inputs:
- The case: one Flexy 205 polling one CompactLogix, the setup that reported the fault.
- The status tag: an integer Ewon tag whose values are state codes with no physical unit; the manufacturer's support answer documents 1 as OK and 0 and 2 as not OK on this IO server connection.
- The setting from the fix above: Disable Tags in Error cleared.
- The rule in words: the guard acts only when the status value differs from the OK value; equal means leave the Flexy alone.
Push each documented value through the guard:
- Value 1: 1 − 1 = 0, equal, so no action, and this is the recovery transition.
- Values 0 and 2: 0 − 1 = −1 and 2 − 1 = +1, both different, so send the email and reboot.
Result: two of the three documented values trigger recovery and the healthy value never does, so a connection on its way back is left alone.
The test that proves it: with the option cleared, the tag reads 1 before the download, 0 or 2 while the controller is down, and returns to 1 by itself; the no-action branch runs on that return and the Flexy stays up. Decision: treat any value other than 1 as a lost connection. Recovery without a reboot is the expected path, and the reboot is reserved for a value that stays off 1.
Questions asked
Is Disable Tags in Error ever the right setting?
Yes, for the job it was designed for: isolating one genuinely bad tag, such as a mistyped or deleted address, so it is not retried on every poll alongside the healthy ones. Leave it cleared on any Flexy that lives through PLC downloads. Where a site keeps it selected anyway, every download then depends on the status-tag alarm and reboot path instead of automatic recovery.
Does clearing the option affect the Flexy's other connections?
Yes. The setting lives in the IO Servers Global Settings, so it applies to every IO server configured on that unit, not only the Allen-Bradley one. A dead tag on another device will then be retried on each poll instead of being isolated, which is the trade you accept for surviving program downloads.
What if the tags still do not return after clearing the option?
Then the connection itself is failing, not the retry logic. Confirm the controller is back in Run, that the Flexy's IO server still points at the PLC's address, and that the downloaded program still contains every tag the Flexy polls. A download can delete or retype those tags, and a deleted tag stays in error no matter how often the Flexy retries it.