Explainer
Why online simulation needs a PC interface the HMI driver supports
Short answer
Online simulation makes the PC act as the panel, so the PC must present the same physical interface and protocol settings the project configured. For an S7-300 project set to two-wire RS-485 at 187.5 kbps, station 2, the PC Adapter alone does not guarantee a working simulator path: the selected HMI driver must document that adapter as an interface it can use.

On this page
Online simulation works only when the PC presents the communication interface the HMI project expects, driven by a path the HMI software documents as supported. A Siemens PC Adapter on the MPI port does not automatically become the simulator's interface just because it is plugged in and working with the programming tool. For the case in question — an S7-300 project configured for two-wire RS-485 at 187.5 kbps, 8E1, station 2 — the fix is to connect the PC the way the panel would be connected: an RS-485-capable interface on the PC side, wired per the driver's connection guide, with every serial setting matching the PLC network. For serial-path fundamentals on any controller, the same logic as in Connecting an HMI to a Controller Over a Serial COM Port applies: the project's configured interface and the physical path must be the same thing.
What online simulation actually does #
When you run online simulation, the PC takes the place of the panel. The simulator opens the connection the project defines — serial or Ethernet, with the driver and parameters you selected — and exchanges live data with the controller for the trial window the tool allows. Offline simulation does none of this; it runs the screens against internal memory with no controller connection.
That substitution is the whole point and the whole trap. The panel has its own serial port; the PC usually does not present the same electrical interface. So the simulator needs a PC-side interface that speaks to the PLC network the way the panel would. Whatever adapter the programming tool uses to reach the PLC for uploads and tag browsing is a separate question that the simulator answers only when the selected driver documents it.
The electrical layer and the protocol layer are different things #
The MPI port on an S7-300 and the project setting RS-485 2W share an RS-485 physical layer, but MPI is an application-layer protocol on top of it. A PC Adapter is a documented product for connecting a programming device to that network: the PC Adapter USB A2 presents RS-485 at up to 12 Mbps on the PLC side and draws its 5 VDC, 200 mA supply from the USB port. Wiring on the 9-pin connector uses pin 3 for signal A, pin 8 for signal B and pin 5 for the signal reference; the adapter documentation shows pins 4 and 9 as well.
Sharing the electrical layer does not make the adapter a generic RS-485 interface. Whether the simulator can use it depends on whether the HMI engineering tool exposes the adapter as a communication path for the driver you selected. If the driver expects a plain serial COM port carrying its own protocol, an MPI-aware adapter does not satisfy that expectation automatically — and tag import succeeding tells you nothing about it, because tag browsing and runtime data exchange can take different paths through the tooling.
Do not wire the PLC port directly to a PC COM port to work around this. The COM port is RS-232 with different voltage levels, and a direct cable risks damaging both ends. If you need RS-485 on the PC, use an interface that provides it and follow the driver's wiring documentation.
Matching the settings #
The simulator inherits the serial parameters from the project, so all of them must agree with the PLC network. For the configuration reported for this S7-300:
| Setting | Configured value | Must match |
|---|---|---|
| Physical interface | RS-485, two-wire | The actual PLC network wiring |
| Baud rate | 187.5 kbps | The network setting in the PLC project |
| Data bits | 8 | The PLC serial format |
| Parity | Even | The PLC serial format |
| Stop bits | 1 | The PLC serial format |
| PLC station number | 2 | The PLC's station address |
A mismatch in any single row — a station number off by one, a baud rate assumed instead of read from the PLC project — produces the same symptom as a wrong interface: the simulator opens, the screens render, and no value updates.
Worked example: checking an RS-485 2W, 187.5 kbps, 8E1, station 2 project #
Inputs, and where each comes from:
- Project settings RS-485 2W, 187.5 kbps, 8 data bits, even parity, 1 stop bit, station 2 — as configured in the HMI project.
- PC Adapter USB A2, RS-485 at up to 12 Mbps, supplied 5 VDC at 200 mA over USB — from the adapter's documented specifications.
- Connector wiring pins 3 (signal A), 8 (signal B), 5 (signal reference) — from the adapter documentation.
The rule: the PC-side interface must present the electrical interface the project selected (two-wire RS-485), at a rate the interface supports, with the project's data format and station number, through a path the HMI driver documents.
The arithmetic: the project runs at 187.5 kbps, so one bit occupies 1 / 187,500 = 0.00000533 seconds per bit, or 5.33 microseconds. The adapter's documented RS-485 capability reaches 12 Mbps — 12,000,000 bits per second — which is 12,000,000 / 187,500 = 64 times the project's rate, so the electrical layer comfortably covers the project's speed. The data format 8E1 means 8 data bits, even parity, 1 stop bit, so each character frame carries 11 bits on the wire (1 start bit + 8 data + 1 parity + 1 stop); a 10-byte request frame therefore occupies 110 bits, and at 187,500 bits per second that is 110 / 187,500 = 0.000587 seconds, about 0.59 milliseconds of line time.
The result: the configured rate sits well inside the adapter's documented RS-485 range, and the wiring uses the documented pins 3, 8 and 5.
The decision and its threshold: the electrical layer checks out only when the HMI software's documentation for the S7-300 driver names that adapter as a usable interface. Where it does not, the threshold is simple — the simulator needs the PC connected as if it were the panel, through an interface the driver documents. If compilation succeeds and values still do not update during the simulation window, the interface or one of the table's settings is the fault; check the station number and baud rate against the PLC project first, then the PC-side interface.
The verification sequence #
- Save the project and compile it. Watch the compilation output for errors and clear every one before touching cables — a compile error produces the same no-update symptom as a communication fault.
- Start online simulation, not offline simulation. Offline runs against internal memory and never reaches the PLC.
- Put a value on a screen that changes on the PLC — a running counter or a clock word. A static tag proves nothing.
- Watch whether the value updates within the simulation window. No update means one of three things: the PC-side interface is not the one the driver documents, a serial setting disagrees with the PLC, or the station number is wrong.
- Change one thing at a time and retest. Settings changes take effect on the next simulation start.
This bench-style approach — verified test tags, one variable at a time, observations against a live value — is the same discipline described in Testing HMI Simulation Against a Live PLC.
Where Ethernet changes the decision #
An Ethernet path removes the interface question entirely only when the PLC hardware actually has an Ethernet port and the selected HMI driver supports that connection type. For an S7-300, some CPUs have no Ethernet interface at all, so no driver setting can conjure one. When Ethernet exists on both ends, the simulator connects over the network like the panel would, and the MPI-versus-RS-485 adapter question disappears.
The decision #
- Project set to RS-485 2W, PC has only an MPI PC Adapter: the adapter is not automatically the simulator's interface. Connect the PC as the panel — an RS-485 interface the driver documents, wired to pins 3, 8 and 5 of the PLC connector, at 187.5 kbps 8E1, station 2.
- Project set to RS-485 2W and the driver's documentation names the adapter as supported: use it, and verify with a changing value during the simulation window.
- The PLC has Ethernet and the driver supports it: use Ethernet and sidestep the serial interface entirely.
- Compilation fails or you started offline simulation: fix that first; no cabling change will help.
A successful tag import is not a pass. Only a value that updates live during the simulation window proves the path.
Questions asked
Why does online simulation not connect through my Siemens PC Adapter?
The simulator drives the communication path the HMI project selected, not whatever adapter happens to be plugged in. A project configured for two-wire RS-485 needs the PC to expose that interface through a driver the HMI software documents as supported. Sharing the RS-485 electrical layer with an MPI adapter does not by itself make the adapter usable by the simulator.
What serial settings must match between the HMI project and the S7-300?
The physical interface (two-wire RS-485), the baud rate, the data format (8 data bits, even parity, 1 stop bit) and the PLC station number must all agree with the PLC network configuration. If any one differs, the simulator and the PLC talk past each other even when the cabling is correct.
Can I wire the S7-300 MPI port straight to a PC COM port?
No. A standard PC COM port is RS-232, which uses different voltage levels than the RS-485 physical layer on the PLC port. Connecting them directly risks damaging both ports. Use an interface that presents RS-485 correctly, wired to the documented pins for signal A, signal B and the signal reference.
Does importing tags from the PLC prove the simulator will communicate?
No. Tag import and runtime communication can go through different paths in the engineering software, and a successful tag import does not exercise the serial interface the simulator uses at runtime. Treat tag import as a project-building step and verify communication with a live value that changes during the simulation window.


