Troubleshooting
Fixing a CoDeSys Automation Alliance HMI Connection
Short answer
When a Weintek HMI with the CoDeSys Automation Alliance driver shows nothing, the first suspect is not the driver or the address: it is whether the panel can reach the CODESYS runtime service at the configured IP on port 1200. Keep one fixed test word at MW 1, prove reachability, then change one variable at a time.

On this page
If a Weintek HMI running EasyBuilder 8000 shows nothing through the CoDeSys Automation Alliance driver while Modbus on the same cable works, suspect the network path to the runtime service before you touch the driver or the address. In the case behind this article, the panel targeted a CODESYS PLCWinNT runtime at its IP on port 1200, a numeric object read address type MW at address 1 against a variable declared var1 AT %MW1: WORD := 5;, and the whole arrangement came alive within an hour once the settings were walked through again — with the firewall identified as the likely earlier blocker. Keep the address pairing fixed, prove reachability first, and change one variable at a time. The checklist below is the order that works.
Why the fixes people reach for first do not help #
Four familiar moves waste time on this symptom:
- Switching to Modbus. Modbus may work in your setup, and it did here. It exercises a different protocol path, so it proves the Ethernet link is usable, not that the Automation Alliance connection can reach its runtime service.
- Changing the word address. The PLC declaration
var1 AT %MW1: WORD := 5;and the HMI object with address type MW and address 1 already form a matching pair. Random address changes destroy your only fixed reference point. - Building the string list immediately. The end goal was roughly 100 strings from the PLC into a panel list. Adding buffers, string formatting and list behaviour before one word reads correctly stacks several independent failure points on top of one another.
- Leaving the firewall off. A temporary disable can expose blocked traffic, but an unprotected runtime computer is not a configuration. Turn the result into a narrowly scoped rule and retest.
Your first real check is reachability: whether the panel can open a connection to the runtime service at the configured IP and port. A port that is open on the runtime computer itself can still be blocked anywhere along the incoming path.
Build the one-word test exactly #
Use one fixed word so that communication problems separate cleanly from application behaviour:
- Create the project on PLCWinNT and declare
var1 AT %MW1: WORD := 5;. TheAT %MW1places the variable in word-addressed memory; the:= 5is an initializer, not a continuous assignment, so check the current online value before blaming communication when the display differs from 5. - Download the project to the runtime and confirm online that the application is running and the word currently holds 5.
- In EasyBuilder 8000, select CoDeSys Automation Alliance as the PLC for the connection. The driver's address table uses CODESYS-style references (IX, QX, MX, IW, QW, MW, ID, QD), which is why the object below is split into a type and a number.
- Set the destination IP to the computer running the runtime and set the port to 1200 for this arrangement.
- Configure a numeric object with address type MW and address 1, and associate it with that connection. Enter MW and 1 as separate fields; do not type the PLC declaration as a tag name.
- Transfer the HMI project to the panel and compare the numeric display against the online value.
If your target is a physical controller rather than PLCWinNT, treat them as separate targets: a pass against the software runtime validates the test arrangement only, and the real controller still needs its own protocol and address checks against its own documentation.
Test reachability from the runtime outward #
Rebuilding the HMI object cannot fix a blocked connection, so work from the target back to the panel:
- Confirm the destination IP belongs to the intended network interface of the runtime computer, and that the panel's subnet and routing reach that interface.
- Confirm the runtime service is active and listening on the configured port, and note which interface accepts the connection.
- Test access from the panel's network segment, not only from the runtime computer. A successful local test does not exercise the incoming network path.
- Read the host firewall's blocking log, or run one controlled temporary disable. Change one condition at a time so a successful retry identifies the restriction.
- If filtering is the cause, write a rule scoped to the runtime service and the control-network addresses that need it, then restore normal protection and repeat the read.
For related failure modes on the CODESYS side, a connection can also be refused because the runtime requires encryption the HMI side is not offering — that is a different fault with its own fix, covered in why a CODESYS V3 HMI connection fails an encrypted PLC.
Prove live updates, not one lucky display #
A single display of 5 does not prove the panel keeps polling; a retained value can hide a lost connection. Do this before you trust the link:
- Change the word online to a second recognizable value and confirm the numeric object follows it.
- Change it again, so a stale display cannot pass as a live read.
- Repeat both changes with the final firewall rule active.
- Restart the runtime and the panel separately in a controlled window and confirm communication recovers without any address edits.
If the link recovers but updates drag, the polling and refresh settings are the next suspects — the causes and fixes are laid out in why an HMI freezes or updates slowly over serial, and much of the same logic applies once the driver timeout and refresh cadence are involved.
The decision for each case #
- Modbus works, Automation Alliance does not: the path, not the panel, is at fault. Check the runtime service, driver-to-runtime compatibility and firewall filtering; Modbus success tests none of these.
- Reachable locally, not from the panel network: host firewall, interface binding or routing. Scope a rule to the runtime service and retest with protection on.
- Communication responds but the word is wrong: address type, offset or another writer in the application. Verify the online value before editing anything.
- PLCWinNT works, the physical controller does not: the controller's own protocol support, service configuration and memory access differ; verify them against that controller's documentation.
- Everything checks out and the word follows online changes: the connection is proven. Only now move to the string array, and start with the format, not the volume — define string capacity, terminator convention, byte packing and buffer boundaries, because word-address access alone does not make an object consume an array of names. Test one short string before the 100.
Questions asked
What port does the CoDeSys Automation Alliance driver use in EasyBuilder 8000?
In the worked arrangement the driver was pointed at port 1200, the port the CODESYS runtime service listens on. The port belongs to the runtime service on the target, so if your runtime is configured differently, the HMI port field must match the runtime's own setting. The port number alone does not tell you the transport; read the runtime and driver documentation for the required protocol.
Why does Modbus work but the CoDeSys Automation Alliance driver not?
Modbus and the CoDeSys Automation Alliance driver are separate protocol paths with separate services on the controller. A working Modbus connection proves the Ethernet wiring, IP route and switch are good, but it says nothing about whether the runtime protocol service is listening, whether the driver matches the runtime version, or whether the firewall passes that traffic. Treat the driver failure as its own fault to isolate.
My HMI entered MW 1 but the PLC variable is declared AT %MW1. Why no value?
The declaration and the HMI entry are the same reference split in two: the PLC declares var1 AT %MW1: WORD, and the HMI numeric object takes address type MW with address 1. If those match and the display still shows nothing, the pairing is not your fault. Also check the online value first: the := 5 is an initializer, so application logic or another writer may have changed the word before the panel read it.

