How-to
Configure HMI Online Simulation COM Port for PLC Testing
Short answer
Online simulation runs the HMI project on the PC against a real PLC using the COM port assigned to the PLC device in the project, under Edit > System parameters > Device — the simulator has no port selector of its own. Point that device at the COM number the PC actually presents, match the RS232 or RS485 interface to the cable, or reassign the USB adapter in Windows Device Manager so the numbers agree.

On this page
- Can EasyBuilder online simulation really talk to a live PLC?
- What is the difference between online and offline simulation?
- Where does the online simulator get its COM port?
- What if the PC has no COM1?
- Why does a matching COM number still fail with an RS232 PPI cable?
- How do you prove online simulation is actually talking to the PLC?
- What can you test before the PLC is wired?
- Questions asked
EasyBuilder online simulation does talk to a real PLC, and it never asks you which COM port to use: the simulator opens the port assigned to the PLC device inside the project, under Edit > System parameters > Device. Set that device entry to the COM number your PC's serial card or USB serial adapter actually presents, and set the interface to match the cable — an RS232 PPI cable cannot run on a project port the panel defines as RS485 only. Offline simulation is the other mode, and it needs no PLC at all. The sections below give the device settings, the fix for a missing COM1, the interface check with a worked example, and the read-back test that proves data is moving.
Can EasyBuilder online simulation really talk to a live PLC? #
Yes — online simulation runs the project on your PC and exchanges live data with a connected controller over the project's own communication settings, while offline simulation is the mode that runs with no PLC connected at all.
The practical value is that you can build the whole project and then exercise tags, screens and navigation on the PC before anything is downloaded to a panel — the same bench discipline as Testing HMI Simulation Against a Live PLC. What the simulator does not add is a connection wizard of its own: it executes the device configuration stored in the project, so every port and protocol decision made in the editor is the one the test will follow.
What is the difference between online and offline simulation? #
Offline simulation runs the project on the PC with no connection to the PLC device and verifies screens, navigation and graphical objects; online simulation runs the same project while it reads and writes a real controller.
EasyBuilder Pro, Weintek's project editor, defines offline simulation as operating without a connection to the PLC device, used to check that the project behaves as intended before download, with online simulation as the mode that communicates with the controller while the project runs on the PC. The split reaches the panel too: the system register LB-12358 switches a project running on the HMI itself into offline simulation mode, so a mounted panel can exercise a project while its controller is disconnected. The mode does not change the device table — online simulation reads the same PLC device entry a runtime download uses, which is why the COM port decides whether the online test works at all.
Where does the online simulator get its COM port? #
From the project itself: the simulator opens the COM port assigned to the PLC device in the project and offers no separate port selector of its own.
Configure that device entry once and both simulation and download follow it:
- In the project editor, open
Edit > System parameters > Device. - Select the PLC device you plan to test, or create it with
New PLC. - Pick the driver the real connection uses — PPI for an S7-200 CPU, for example — and enter the PLC station and protocol settings the live link actually uses.
- For the port, enter the COM number the PC presents: the physical COM3 from a slot card, or the virtual COM4 Windows gave the USB serial adapter, provided the selected HMI model allows RS232 on that port.
- Confirm the settings and start the online simulation from the editor; the simulator opens exactly the port and interface recorded there.
What if the PC has no COM1? #
Make one side match the other: reassign the USB serial adapter to the project's COM number in Windows Device Manager, or enter the number Windows already assigned into the project's PLC device settings.
USB adapters rarely come up as COM1 — Windows typically hands them COM4, COM8 or higher, and the real serial port on an older desktop is often disabled or dead. Renumbering the adapter is the cleaner fix when the project or the panel's port map is fixed, because nothing in the project changes. Windows lists only the numbers the adapter's driver can claim, so when the number you need never appears, go the other way and put the adapter's real number into the device settings from the previous section. Both routes end at the same requirement: the number recorded in the project must exist on the PC when the simulation starts.
Why does a matching COM number still fail with an RS232 PPI cable? #
The serial interface has to match the cable too: on the reported panel, RS232 lives only on COM1 and COM3 is wired as RS485, so number matching alone cannot make an RS232 PPI cable run on that port.
The COM number only selects which connector the driver opens; the project also records which electrical interface that connector uses. Moving a project from COM1 to COM3 to satisfy the PC pairs an RS232 cable with a port the panel defines as RS485 — the port opens and the frames are never valid. The same number-plus-interface discipline holds for any serial link, as in Connecting an HMI to a Controller Over a Serial COM Port.
Worked example — an S7-200 CPU on an RS232 PPI cable, project device set to COM1 RS232:
- PC ports: COM1 present but dead, slot card on COM3, USB adapter on COM4.
- Number check: project COM1 against the PC's working COM3 and COM4 — COM4 does not equal COM1, so the port open fails.
- Interface check: RS232 cable against an RS232 project port — match; against COM3, RS485-only — RS232 does not equal RS485, so the frames fail even with the number matched.
- Decision: reassign the USB adapter from COM4 to COM1 in Windows Device Manager and leave the project untouched; if the driver will not offer COM1, enter the adapter's real number in the device settings on a port the panel allows as RS232; never fix an interface mismatch by renumbering.
| Case | Matches | Fails | Decision |
|---|---|---|---|
| Project COM1 RS232, PC has only COM4 | Interface matches the cable | COM4 does not equal COM1, port open fails | Reassign the adapter to COM1, or enter COM4 in the device settings if the model allows RS232 there |
| Project moved to COM3, RS485 only, RS232 cable | COM number matches | RS232 cable on an RS485 port, frames never valid | Use a port the panel defines as RS232 or change the cable; renumbering cannot fix the interface |
| Project COM1 RS232, adapter reassigned to COM1 | Number and interface both match | Nothing — the path is valid | Run online simulation and verify with a read-back |
How do you prove online simulation is actually talking to the PLC? #
Read a tag whose value you already know, change it at the controller, and confirm the change reaches the simulated screen — that is the proof that COM assignment, interface, cable and driver all agree.
EasyWatch does the same job at tag level: start it with the local HMI and the PLC set to the same communication configuration the project uses, and it reads or forces bits and words over that path. EasyDiagnoser is the companion for watching the communication itself. Neither tool repairs a wrong port or interface — they prove tags once the path is valid.
Forcing a bit writes to real outputs when the PLC is wired to a live machine, so force on a bench or with the machine in a safe state. If values move but the screen lags or freezes, the COM assignment is right and the suspects move to serial loading — see Why an HMI Freezes or Updates Slowly Over Serial.
What can you test before the PLC is wired? #
Run offline simulation: it needs no controller at all, and it verifies screens, navigation and graphical objects on the PC before anything is downloaded to the panel.
Offline simulation is still software on a PC, so it has PC-side quirks of its own — the Fix offline simulation port 8000 already in use error case is a local conflict, not a project fault. To exercise read and write logic without serial hardware, a reported bench method points a spare Modbus device in the project at a Modbus slave simulator listening on the PC's loopback address 127.0.0.1, then reads and writes one bit and one word; treat it as a convenience check, not a verified substitute for the real driver.
Whether the online simulator can reach a PLC simulator instead of real hardware is platform-specific — on some toolchains the two simulators cannot reach each other at all, as explained in Why HMI simulation cannot talk to a simulated PLC.
The decisions in one place: with a PLC on the desk, set the PLC device's COM number and interface so both match the PC and the cable, run online simulation, and prove it with a known-tag read-back; with no PLC yet, run offline simulation for the screens and the loopback check if useful; with a COM mismatch, reassign the adapter or the project, whichever side is simpler to change; with an interface mismatch, change the cable or the project port, because no COM number can put RS232 on an RS485 port.
Questions asked
Why does my project look perfect in offline simulation but read nothing online?
Offline simulation never opens a serial port, so it succeeds even when the COM assignment is wrong. Online simulation opens the port stored in the PLC device entry, and it fails immediately when that number does not exist on the PC or the interface does not match the cable. Check the device table and the adapter's number in Windows Device Manager before suspecting your screens or macros.
Can I leave the PC's virtual COM number in the device table when I download to the panel?
No. The device table is shared between simulation and runtime, so a download expects the port to exist on the panel. On the reported mapping that means COM1 for an RS232 PPI cable; a virtual COM4 that worked in online simulation exists only on the PC. Return the PLC device port to the panel's own assignment before downloading, then re-test.
Does Windows always let me renumber a USB serial adapter to COM1?
No — the driver decides. Windows Device Manager lists only the COM numbers the adapter's driver can claim, and some drivers keep a fixed range. If the number you need never appears in the list, stop renumbering and go the other way: enter the adapter's existing virtual number, such as COM4, in the project's PLC device settings, provided the panel model allows RS232 on that port.
Is online simulation a substitute for a final test on the physical panel?
No. Online simulation proves the project logic and the communication path on PC hardware; the panel itself brings different screen hardware, its own boot sequence and its own network stack. Use the simulation to sort out tags, navigation and the COM setup, then download to the panel and repeat the same known-tag read-back there before sign-off.

