Troubleshooting
Why Weintek Online Simulator Fails Through a NAT 1:1 VPN
Short answer
The Weintek online simulator does not use whatever address ping proves reachable; it uses the PLC IP stored in the project's system parameters. Under an Ewon NAT 1:1 mapping that field must carry the translated address the remote PC reaches, and changing it was the fix that restored simulation while VNC, programming and ping kept working. Broadcast discovery loss is the second check, not the first.
On this page
When ping, VNC, panel downloads and PLC programming all work through an Ewon NAT 1:1 tunnel and only the Weintek online simulator gets no PLC response, the PLC address configured in the project is wrong for where the PC sits. Online simulation does not travel through the panel: EasyBuilder Pro on the remote PC opens its own connection to the PLC IP stored in the project's system parameters. Under NAT 1:1 that PLC has two addresses, its local one on the Ewon LAN side and the translated one on the side the PC reaches, and a project built at the machine carries the local one. In the reported case, changing the PLC IP in system parameters to the translated address restored simulation immediately, with the firewall already off and every other service still working. Fix the address first; treat lost broadcast discovery as the second check.
What the working services actually prove #
Each service that still works through the tunnel narrows the fault to the simulator's own connection target.
| Observation | What it establishes | What it does not establish |
|---|---|---|
| Ping to the PLC succeeds | The address you pinged is reachable end to end | That the simulator targets that same address |
| VNC, download and restart of the panel | The panel is reachable through the tunnel | Anything about the PC-to-PLC path the simulator uses |
| PLC programming from the remote PC | A usable PLC address exists on the PC's side | That the Weintek project names that address |
| Simulator reports no PLC response | The simulator's configured target or its path is wrong | That the tunnel or the firewall blocks traffic in general |
Disabling the firewall changed nothing in the reported case, which fits a routing fault: the packets were leaving the PC, but toward the wrong network. A panel you can see over VNC while a project upload refuses to transfer fails for reasons in yet another layer, covered in when VNC works but HMI project upload fails over Ethernet. The same reachability split appears on the PLC side as well, where ping works but a PLC program download fails over remote access for causes of its own.
Where the simulator gets its PLC address #
EasyBuilder Pro keeps every PLC connection in the device list inside System Parameters, and online simulation uses those entries directly. The PC running the simulator is the client that talks to the PLC; the panel is not in the path. The software treats that list as the authority on PLC addressing, to the point that its error table lists C51 for a PLC name that is not defined in the device list of system parameters.
That is also why the same project can run perfectly on the panel and fail in simulation on the far side of the tunnel. The panel reaches the PLC across the machine LAN, where the local address is valid, while the PC must use the translated address. The mechanics of running the simulator against real hardware are a separate subject from this addressing question and are covered in testing HMI simulation against a live PLC.
One PLC, two addresses under NAT 1:1 #
NAT 1:1 on the Ewon maps a device on its LAN side to a chosen address on its WAN side; a documented Cosy 131 example reaches the PLC at 192.168.0.115 on the LAN side while the far side uses the mapped address. The feature is usually deployed precisely because both ends want the same common subnet. Worked example, with the PLC address as documented and the remaining values illustrative:
- PLC on the Ewon LAN side: 192.168.0.115, mask 255.255.255.0
- NAT 1:1 rule: the Ewon presents the PLC as 192.168.1.115 on its WAN subnet
- Remote PC: office LAN 192.168.0.0/24, own address 192.168.0.50, VPN tunnel up
The PC's route decision, mask 255.255.255.0:
- Target 192.168.1.115: 192.168.1.115 AND 255.255.255.0 = 192.168.1.0, because the last octet drops (115 AND 0 = 0). No local interface owns 192.168.1.0, so the packet follows the VPN route into the tunnel, the Ewon translates it back to 192.168.0.115, and the PLC answers.
- Target 192.168.0.115: 192.168.0.115 AND 255.255.255.0 = 192.168.0.0. The office adapter owns 192.168.0.0, so the packet goes to the office switch and never enters the tunnel. The simulator sees no PLC response while ping to 192.168.1.115 still succeeds.
Decision: while simulating from the remote PC, the PLC IP field carries the translated address; while the project runs on the panel, it carries the local address.
Correct the address in system parameters #
- Open the project in EasyBuilder Pro, open System Parameters, and find the PLC entry in the device list.
- Read the Ewon's NAT 1:1 table and note which WAN-side address maps to the PLC's LAN address.
- Replace the PLC IP with that translated address, leaving the driver, port and station settings unchanged.
- Start online simulation and verify that tags read live values and follow the process.
- Before transferring the project to the panel, put the PLC's local address back, because the panel talks to the PLC on the machine LAN. If you simulate often, keep a simulation copy of the project with the translated address.
One safety line belongs here: online simulation hands the remote PC live write access to the running PLC, so prove writes against verified test tags or an idle machine before touching production logic.
The broadcast check comes second #
The other hypothesis raised for this symptom is discovery traffic: protocols that find devices with broadcast or multicast packets get nothing back through the VPN, because the tunnel does not forward those packets by default, and the Ewon has a temporary PLC-discovery function for exactly that test. The reported case never needed it, since the address change restored communication, so run this only after the configured address is confirmed correct: enable the discovery function, retest the simulator, disable it again.
Verify the repair #
A corrected address shows up as data movement, not as a successful ping. Watch tags change with the process in online simulation, or force one output and see it read back. Then confirm the rest of the remote path still behaves, including VNC to the panel, a project download, and PLC programming, so you know the fix touched only the project's addressing. On the next transfer to the panel, remember which of the two addresses the project is carrying that day.
Questions asked
Does a successful ping prove the simulator can reach the PLC?
No. Ping proves the one address you pinged is reachable; the simulator connects to the address written in the project's system parameters, which can be a different address entirely. Through NAT 1:1 those two are usually not the same, so compare them before changing anything else.
Why did turning off the Windows firewall not help?
Because nothing was being filtered. With the project pointing at the PLC's local address, the PC routed those packets to its own office subnet, where they died on a switch. The tunnel and the PLC never saw them, so firewall state could not change the outcome. Correcting the address put the packets on the VPN route instead.
Can I leave the translated PLC address in the project permanently?
Not if you also download that project to the panel. The panel reaches the PLC across the machine LAN, where the local address is the valid one. Restore the local address before transfer, or keep one copy of the project for simulation with the translated address and another for the panel with the local address.
Should the Ewon PLC-discovery setting stay enabled after the test?
No. It exists as a temporary diagnostic for discovery traffic that the tunnel does not forward by default. Enable it only while you test whether broadcast or multicast discovery is the blocker, then disable it, so the tunnel keeps carrying only the addressed traffic you have configured and can account for.
Is there a way to reach the PLC through the panel instead of simulating?
Yes, pass-through. EasyBuilder Pro supports routing PC-to-PLC traffic through the connected HMI, and its setup configures the HMI's IP and the HMI-to-PLC communication ports separately from online simulation. Treat it as its own feature with its own configuration, not as a setting inside the simulator.