IMDTouchKnowledge BaseShop main store

Explainer

Offline vs online simulation for an S7-1200 HMI project

HMI and touchscreens Published 8 min read

Short answer

Offline simulation runs the project on the engineering PC with no PLC connection, so it proves screen layout and object behavior and can never verify an S7-1200 link. To test communication, run online simulation with the driver matching the PLC project's addressing style, symbolic or absolute, after permitting PUT/GET access on the CPU. A local-device message during offline simulation is a PC-side fault, not a PLC fault.

On this page
  1. Does offline simulation communicate with the PLC?
  2. What can offline simulation prove before you touch the controller?
  3. Why does offline simulation report that local devices are blocked?
  4. Which setting on the S7-1200 decides symbolic or absolute addressing?
  5. What must be enabled on the PLC before online simulation reads data?
  6. How do you run online simulation against a live S7-1200?
  7. What test order separates a PC fault from a communication fault?
  8. Which simulation mode do you commit to for each case?
  9. Questions asked

Offline simulation in EasyBuilder Pro never opens a connection to the controller: it runs the project on the engineering PC alone, which makes it a layout-and-behavior test and nothing more. To prove that a screen actually talks to an S7-1200, you run online simulation with the driver that matches the PLC project's addressing style, symbolic or absolute, after one permission is set on the CPU. Below is what each mode proves, why the local-device message that appears during offline simulation has nothing to do with the PLC, and a three-test order that keeps PC faults and communication faults from being confused with each other.

Does offline simulation communicate with the PLC? #

No. Offline simulation runs the project on the engineering PC with no PLC connection of any kind, so no tag is ever fetched from or written to the S7-1200 — the moment a test needs live controller data, the only correct mode is online simulation.

EasyBuilder Pro offers exactly two simulation types. Offline simulation operates without a connection to the PLC device and verifies the project itself; online simulation runs the same project on the PC while the PC communicates with the controller over Ethernet. The consequence cuts both ways. A communication test conducted in offline mode proves nothing about the PLC, the cable, the IP plan or the driver, because none of them is in the loop. And when offline simulation will not start at all, PLC reachability cannot be the cause — the fault sits in the PC or the simulator environment, which is what the local-device message points to.

What can offline simulation prove before you touch the controller? #

Offline simulation proves what does not need live data: that each screen renders as designed and that objects behave — a button press, a page change, a numeric entry — against the simulator's local memory instead of real tags.

Use that window to sign off layout with zero risk to the machine: because no connection exists, nothing you press can reach the plant. Check text, positions, page navigation and alarm layout, then stop expecting more from the mode. The correct reading of an offline pass is 'the project renders and behaves', never 'the communication works'. Values bound to controller addresses sit at their initialized state the whole time, and that is normal, not a fault.

Why does offline simulation report that local devices are blocked? #

Because the fault is on the PC: the simulator reports that the HMI system is prohibited from accessing local devices and asks whether port 8000 is occupied, and since offline mode never reaches toward the PLC, the controller, its cable and its IP plan are irrelevant to this message.

The port named in the message is the simulator's own local listening port on the PC, not a PLC port. Work through the local suspects in order: another process already holding the port — an earlier simulator instance that never closed is the classic one — then the simulator's configuration, PC compatibility, and operating-system authorization blocking local sockets.

Two field results narrow the search: moving the simulator to port 102 left the identical message, and neither disabling the firewall nor reinstalling the software is a proven fix. The step-by-step repair for this exact fault is in fixing the offline simulation port 8000 already-in-use error. Clear it until a single test button renders offline; only then does communication testing mean anything.

Which setting on the S7-1200 decides symbolic or absolute addressing? #

The PLC program's own addressing style decides it: a project written with symbolic tags needs the S7-1200 symbolic addressing driver in the HMI, a project that references fixed memory addresses needs the S7-1200 absolute addressing driver, and a mismatch connects to nothing even with perfect cabling.

Read the style from the PLC project itself: open it in TIA Portal and look at how the program refers to data. Symbolic means tags carry names that the compiler resolves to storage; absolute means the code points at fixed addresses. Do not select a driver by assumption or by habit from the last machine — the evidence is in the project, and if the original panel programmer left no documentation, the PLC program is the only trustworthy source.

If you need the engineering software that opens an S7-1200 project, what STEP 7 is in a PLC project, and which one you need explains the editions. For the symbolic side, follow the manufacturer's PLC connection guide for S7-1200 symbolic addressing over Ethernet, which also carries the CPU-side permission covered next.

What must be enabled on the PLC before online simulation reads data? #

PUT/GET access from remote partners: in TIA Portal, right-click the PLC program, open Properties, select Protection, and enable the option that permits access with PUT/GET communication from a remote partner, then compile and download — without it, an external HMI is refused regardless of which addressing driver it uses.

This is the setting engineers skip when a driver is configured correctly but reads nothing: the CPU accepts the connection yet refuses the data access an external partner needs. The connection guide for the symbolic addressing driver includes this step, so enable it before testing either driver — a refused PUT/GET looks exactly like a wrong driver from the HMI side. The change exists only in the programming project until it is compiled and downloaded into the CPU, so verify the download completed, not just the checkbox.

How do you run online simulation against a live S7-1200? #

Online simulation turns the engineering PC into the HMI: EasyBuilder Pro executes the project on the PC and opens a real connection from the PC's Ethernet adapter to the S7-1200, so the physical panel, its cable and its configured address are not exercised at all.

  1. Put the PC on the PLC's subnet, or confirm both already share one.
  2. Confirm the CPU-side permission from the previous section is downloaded.
  3. Check the HMI project's device list: the driver matches the addressing style and the PLC's IP address is entered.
  4. Start online simulation and operate the test button.
  5. Keep EasyDiagnoser open beside the project; it reports communication errors while the PC is connected to the PLC.

One caution belongs here: in online simulation the PC is a live operating station and its buttons write to the real machine, so make the first runs against a bench CPU or with the machine in a safe state. The method for proving the live link with test tags before production code is touched is in testing HMI simulation against a live PLC.

What test order separates a PC fault from a communication fault? #

Three tests, always in this order — offline render, configuration check, online exchange — because each fails for one cause only: the first proves the PC and project, the second proves setup, the third proves the PC-to-PLC path; a pass moves you forward, a fail never points at a cleared suspect.

Test 1: start offline simulation with one button on one screen. A pass proves the simulator, the project file and the PC's local device access; a fail stays on the PC, and the local-device message covered earlier is where you work.

Test 2: configuration, no hardware touched — the driver name matches the addressing style, the PLC's IP address is the one the CPU actually carries, and the PUT/GET permission is downloaded. This is paperwork, and it is the test that catches the symbolic-versus-absolute mistake before you blame the network.

Test 3: online exchange — prove the IP path, then start online simulation and watch EasyDiagnoser. A ping that answers proves only the IP layer and nothing about the driver, the permission or the S7 connection; when the ping answers but tags stay dead, the split is covered in when an HMI and PLC ping but will not communicate.

Worked example of the IP gate before test 3. Say the engineering PC is set to 192.168.0.10 with mask 255.255.255.0, and the CPU still carries its factory address, 192.168.0.1. The PC's network is 192.168.0.10 AND 255.255.255.0 = 192.168.0.0; the CPU's network is 192.168.0.1 AND 255.255.255.0 = 192.168.0.0.

The results match, so both devices sit on one subnet and no gateway is involved: the ping must be answered, and if it is not, the fault is below the driver — adapter, cable, switch, or an address someone changed on the CPU — so stop and fix the IP layer first. If the ping answers while the connection still fails, the IP layer is proven and the remaining suspects are the driver-versus-addressing match, the PUT/GET permission, or a firewall in front of the CPU's S7 communication endpoint.

The discipline underneath the order is that every test proves exactly one cause — why industrial troubleshooting improves when each test proves a cause — so write down each result before moving to the next test.

Which simulation mode do you commit to for each case? #

Commit per case: offline simulation when the PLC is unreachable or the machine must stay untouched, online simulation when the S7-1200 link itself is the deliverable, and no simulation at all until the PC-side local-device fault is cleared — each choice follows from what the mode can and cannot prove.

  • Screens must be signed off while the controller is weeks away: offline simulation; accept a layout-and-behavior pass and record that communication is still unproven.
  • The panel must exchange data with the S7-1200: online simulation with the driver matched to the addressing style, PUT/GET downloaded and the ping gate passed; the panel's own hardware and network settings are proven later, by downloading to the panel.
  • Offline simulation will not start or shows the local-device message: stop, it is a PC fault and the PLC is not implicated; clear local device access first.
  • Only the port number was changed as a workaround: revert it, because the reported field result is that the message survived the swap — the number is not the fault.

Run the modes in that order — offline, configuration, online — and every failure you see has exactly one place to look.

Questions asked

Does online simulation need the HMI panel connected to the engineering PC?

No. Online simulation runs on the PC and uses the PC's own network adapter, so it never tests the panel's hardware, cable or sockets. A project can pass online simulation and still fail on the machine if the panel's physical link is bad, so download to the panel and repeat the test there before you call the job done.

What is port 102 on an S7-1200 used for?

It is the CPU's own S7 communication endpoint, the port an external HMI or programming tool connects to for S7 data exchange. It belongs to the PLC, not to the simulator, so pointing a simulator's local port at it changes nothing on the PC and does not clear a local-device message.

When do you open EasyDiagnoser?

Open it while online simulation is running and the PC is connected to the PLC. It reports the driver connection status and communication errors as they happen, so it shows whether a dead value means a failed connection or a bad address, which the project window alone cannot tell you.

Why do some values update in offline simulation if there is no PLC?

Because those objects are bound to internal, simulator-resident memory rather than controller addresses, and such values move locally with no connection at all. Treat it as a check: if a value changes in offline mode, the address behind it is local memory, and you should confirm the object was really meant to read the S7-1200.

Keep reading

  • Troubleshooting

    Fixing an HMI Date and Time Tag That Fails Over S7

    When ordinary tags read and write but a Siemens date and time tag returns a communication error, the driver imported the tag but cannot transfer that data type. Copy the clock into ordinary component variables in PLC logic and read and write those from the HMI. The Ethernet side needs no changes.

    HMI and touchscreens

  • Troubleshooting

    Why an online simulator cannot reach a simulated S7 PLC endpoint

    The failure is a missing network endpoint, not a tag or driver fault. An HMI online simulator needs a host-reachable Ethernet address that serves the configured protocol; a simulated PLC that exists only inside the engineering tool's private context offers none, and no tag edit or undocumented bridge can fix that. Give the runtime a physical PLC or a simulator interface documented as externally reachable with explicit protocol support.

    HMI and touchscreens

  • Explainer

    Why EasyBuilder Pro PC simulation stops after 15 minutes

    Yes, up to a point you cannot log on. EasyBuilder Pro online simulation polls an RS-485 meter from the PC through a USB converter, but Weintek documents a 10-minute limit when the target device is connected directly to the PC, so the session ends and needs a manual restart. Prove the link in simulation; run the hourly log on an operator panel or a dedicated logger.

    HMI and touchscreens