Troubleshooting
Fix Modicon M340 OPC UA UMAS protocol error by firmware
Short answer
The UMAS protocol error is a CPU firmware limit, not a client fault: the same client and project connect to M340 CPUs on firmware 2.60 and fail on 2.00 and 2.10 with DataDictionary verified. Upgrade the old CPUs to firmware 3.40 and raise the application's CPU type version in Control Expert to match.
On this page
- What the UMAS protocol error is telling you
- Verify the two project settings that gate OPC UA access
- Prove the path to the CPU before blaming firmware
- Record every version, then compare them
- Working the case: two CPUs on 2.60 connect, 2.00 and 2.10 fail
- Match the symptom to the action
- Upgrade the CPUs to firmware 3.40
- Confirm OPC UA on every upgraded CPU
- Questions asked
Yes: upgrade the firmware on the CPUs that fail. A UMAS protocol error from an OPC UA client on Modicon M340 CPUs running firmware 2.00 or 2.10, while the same client with the same project connects to CPUs on 2.60, is a CPU firmware limit. In the case that established this fix, the DataDictionary checkbox was selected on the failing CPUs and the Only HMI Variables filter was tried in both states; the error never changed, so firmware is the only variable left standing. The fix is a CPU firmware upgrade to 3.40 with the application's CPU type version raised in Control Expert to match, done in a planned stop window. Check the two checkboxes first anyway, because a missing DataDictionary produces the same error and costs one rebuild to rule out.
What the UMAS protocol error is telling you #
UMAS is the Schneider Electric engineering protocol that Control Expert uses to reach an M340, carried over Modbus TCP on TCP port 502. In this architecture the OPC UA server on the PC talks OPC UA to your client on one side and UMAS to the CPU on the other, so a UMAS protocol error means the failing exchange is the PC-to-CPU leg, not the OPC UA session or its security handshake. A certificate or trust fault reports differently: the client stops at the security stage and names the certificate, which is the fault covered in trusting an OPC UA client certificate on a PLC. The UMAS error says the request reached the CPU's data services and was refused there, which is why the CPU's firmware version is the prime suspect.
Verify the two project settings that gate OPC UA access #
- Open the failing CPU's project in Control Expert and confirm the DataDictionary checkbox is selected in the controller configuration. It is mandatory for OPC UA access; it is the setting the Schneider Electric FAQ FA411749 procedure turns on.
- Compare the online PLC against the project file first, because a selected checkbox in a stale offline copy proves nothing. Then rebuild the project fully, transfer it, and retry the connection.
- Check Only HMI Variables. Selected, it exposes only variables that carry the HMI variables attribute in the Data Editor; cleared, it exposes all variables once DataDictionary is selected. If it is selected, open the Data Editor and confirm at least one variable carries the flag.
- If the error persists, test both states of the filter: clear it, rebuild, transfer, retest; then select it with a known flagged variable, rebuild, transfer, retest.
In the case this article works through, both states returned the identical UMAS protocol error, which removes the filter from suspicion and moves the investigation to the CPU itself.
Prove the path to the CPU before blaming firmware #
Ping the failing CPU's IP address from the machine that runs the OPC UA server. Then open Control Expert on that same machine and connect online to that same address. Confirm that nothing in between, whether a firewall, a router or a VLAN rule, blocks TCP port 502, because UMAS rides on it. If Control Expert cannot connect either, the UMAS error is a transport symptom: fix the addressing and the open port first and retest before touching firmware. A client that reaches some controllers and not others is its own fault class, and the same split-and-test move applies when a SCADA PC station reaches only one S7-1500. If Control Expert connects and OPC UA still fails, the path is proven and you move on.
Record every version, then compare them #
Read the CPU firmware from the online PLC information in Control Expert, not from the nameplate and not from an old project file. If a NOC or NOE communication module sits in the path to the client, read its firmware the same way. Write down the CPU type version configured in each application while you are there.
| Firmware | OPC UA client result |
|---|---|
| 2.60 | Connects |
| 2.10 | UMAS protocol error |
| 2.00 | UMAS protocol error |
| 3.40 | Target for the upgrade |
Working the case: two CPUs on 2.60 connect, 2.00 and 2.10 fail #
The inputs, each from the installation itself:
- Client and project built per the Schneider Electric FAQ FA411749 procedure.
- Two CPUs on firmware 2.60, read online in Control Expert: the client connects to both.
- The remaining CPUs on firmware 2.10 and 2.00: the same client returns the same UMAS protocol error on every one.
- DataDictionary selected on the failing CPUs.
- Only HMI Variables tested selected and cleared.
The rule in words: when one client and one project succeed on one group of CPUs and fail identically on another, count the things that differ between the groups; the fault follows the only one that changes.
The arithmetic:
- CPUs that connect: 2, both at firmware 2.60.
- CPUs that error: the remainder, spanning two firmware levels, 2.10 and 2.00, both below the level that works.
- Configurations ruled out on each failing CPU: DataDictionary has one valid state (selected) × Only HMI Variables has two states tried = 2 configurations per CPU, and every one returned the same error.
- Things that differ between the connecting group and the erroring group: firmware level. Count: 1.
Result: the error tracks CPU firmware and nothing else in the recorded evidence. Decision: every M340 CPU in this installation below firmware 2.60 gets the upgrade to 3.40, and the units on 2.60 stay untouched. That is the threshold: below the working level, upgrade.
Match the symptom to the action #
| Symptom | Cause | Action |
|---|---|---|
| Control Expert cannot connect either | Path, addressing, or TCP 502 blocked | Fix the transport, retest |
| Connects, but the browse list is empty | Only HMI Variables selected with no flagged variables, or a stale transfer | Flag variables or clear the filter, rebuild, transfer |
| UMAS protocol error with DataDictionary set, both filter states tried, Control Expert connects | CPU firmware too old for the OPC UA data-dictionary access | Upgrade the CPU firmware |
| Same client works against a 2.60 CPU | Client, certificates and project are valid | Firmware is the variable; upgrade the rest |
Upgrade the CPUs to firmware 3.40 #
- Schedule a stop window: the firmware upgrade interrupts the controller and stops the process it runs.
- Upload and archive the running application from each PLC before anything else, and keep that file separate from the offline project.
- Read the release notes for the firmware package you will load: the Control Expert version it requires, any behavior changes, and, if a NOC or NOE module is in the path, the module firmware that pairs with that CPU release. Put the module upgrade in the same window so the chain is never half-upgraded.
- Upgrade one failing CPU to 3.40 using the vendor's firmware upgrade procedure.
- In Control Expert, raise the application's CPU type version to match the new firmware, rebuild, and transfer.
- Confirm DataDictionary is still selected and Only HMI Variables is at its intended state, return the CPU to RUN, and test OPC UA before starting the next CPU.
The 3.40 release is the target named for this fix, and it also carries cybersecurity improvements over the 2.x levels, a second reason not to leave old CPUs in service. Read the notes of whatever newer package you actually load, since releases move.
Confirm OPC UA on every upgraded CPU #
Connect with the same client settings that worked against the 2.60 CPUs; the UMAS protocol error must not reappear. Browse the address space and check what you see against the filter state: all variables with Only HMI Variables cleared, only flagged variables with it selected. Read one variable in the client and compare its value against the same variable in a Control Expert animation table. Write the new firmware level into the version table and close out that CPU.
Questions asked
Do DataDictionary and Only HMI Variables both have to be selected for OPC UA to work?
DataDictionary is the mandatory one: without it the CPU builds no data dictionary and the OPC UA server cannot read variables. Only HMI Variables is just a filter. Selected, it exposes the variables flagged as HMI variables in the Data Editor; cleared, it exposes every variable. Selecting it with nothing flagged leaves a client that connects and browses an empty list, which is a different symptom from a UMAS protocol error.
Can the UMAS protocol error be cleared without a firmware upgrade?
Not on these CPUs. With DataDictionary selected and Only HMI Variables tried in both states, firmware 2.00 and 2.10 still returned the identical error, so no project setting was left to change. Configuration clears this error only when the DataDictionary checkbox is missing or the filter is set with no flagged variables. The same client connecting to a 2.60 CPU with the same project is the evidence that the remaining difference is the CPU release.
What changes in the Control Expert project after the CPU firmware upgrade?
Raise the application's CPU type version until it matches the new firmware, then rebuild and transfer. The project and the controller have to agree on the version, or the build warns on the CPU version and the download is not clean. After the transfer, confirm DataDictionary is still selected and set Only HMI Variables to its intended state before returning the CPU to RUN.
Does a NOC or NOE module in the path change the upgrade plan?
It adds one check. The module firmware and the CPU firmware must be a compatible pair, and the release notes for the firmware package state that pairing. Read the module version online the same way you read the CPU's, compare it against the notes, and schedule the module upgrade inside the same stop window so the communication chain is never left mixed.