Troubleshooting
Why WinCC flexible Runtime Cannot Control an S7-1200
Short answer
WinCC flexible Runtime on the PC is a separate HMI station, not a view into the MP277, so a working panel proves nothing about the PC path. Ping the S7-1200 from the Runtime PC, confirm the project connection uses the S7Online access point, then map that access point in Set PG/PC Interface to the adapter that reaches the real PLC, or to the simulation path when PLCSIM is the destination.
On this page
Your PC Runtime is a second HMI station, not a window into the MP277. When the panel drives the S7-1200 correctly but WinCC flexible Runtime on the PC moves no values and shows no indications, the panel project, both downloads and the PLC logic are already proven, and the only untested link is the PC's own path to the controller. Work it in this order: ping the S7-1200 from the Runtime PC, confirm the project connection uses the S7Online access point, then open Set PG/PC Interface in the Windows Control Panel and map that access point to the adapter that reaches the real PLC, or to the simulation path when PLCSIM is the destination.
What the symptom splits into #
Here, control means an object writes a PLC variable and indication means a screen reads one. Where the failure sits decides what you are allowed to touch:
- Neither control nor indication works in PC Runtime while the MP277 keeps working: the PC has no usable path to the controller, or Runtime is using the wrong one. Work the checks below and leave the tags alone for now.
- PC Runtime reads values but commands do nothing: communication exists. Operate the button once while watching the commanded variable online, then check the write tag, the object event and any write protection in the PLC program.
- Runtime writes commands but indications stay frozen: check the read tag, its acquisition setting and its address against the variable the working panel object uses.
- One screen updates and another does not: the connection serving the updating screen is proven good, so trace only the failing screen's objects and tags.
Why the working MP277 proves nothing #
Downloading the project from WinCC flexible 2008 SP2 to the MP277 created one runtime station: the panel's own processor, its own Ethernet port and its own connection to the S7-1200. Starting the same project in Runtime on the PC creates a second station with a different processor, a different adapter and a different operating-system communication layer. The panel never forwards tag traffic for the PC, so panel behavior is not evidence about the PC path in either direction.
Both stations talk to the S7-1200 through its PROFINET interface, and the controller serves each station's connection on its own. That is why the panel can keep running untouched while you fix the PC: nothing on the working station needs to change, and stopping it proves nothing.
Ping the S7-1200 from the Runtime PC #
Decide the destination first, because the path differs: a physical S7-1200 on the plant network, or a simulated controller in TIA Portal PLCSIM or PLCSIM Advanced. For the physical PLC, confirm the PC's adapter is enabled and cabled to the network the PLC sits on, and read both addresses from the devices instead of assuming them.
Ping the PLC address from the Runtime PC. A reply proves only that IP traffic travels between the two addresses; it proves nothing about WinCC flexible. Run it first anyway, because a silent PLC caps everything downstream.
Worked example, with example values that are not required settings: suppose the PC shows 192.168.0.20 with subnet mask 255.255.255.0 and the S7-1200 shows 192.168.0.1 with the same mask. AND each address with the mask: 192.168.0.20 AND 255.255.255.0 gives 192.168.0.0, and 192.168.0.1 AND 255.255.255.0 gives 192.168.0.0. Equal network parts mean the two devices can address each other directly, so a ping should be answered. If the PLC instead sits at 192.168.200.1, its network part is 192.168.200.0, which differs from 192.168.0.0, so a router would have to sit between them and a direct cable ping fails no matter how the HMI project is configured.
Decision: a reply sends you to the access point checks. No reply means stay here: correct the adapter state, one of the two addresses, the mask, the cabling or the switching path before touching the project. Where the network filters ping between segments, judge reachability by the engineering software's online test instead, because a filtered ping is not proof of a dead path.
Point the connection at the S7Online access point #
In WinCC flexible, open the connection editor and select the connection the failing tags use. The access point there must read S7Online, which is the name Runtime requests when it opens its controller connection and the same access point the Windows settings list as S7ONLINE (STEP 7). If the tags reference another connection or the field is empty, select S7Online, recompile and restart Runtime before going further.
Decision: with S7Online selected, the project side is finished; everything left is Windows configuration on that PC.
Map the access point in Set PG/PC Interface #
This mapping is the piece a working panel can never show you. Open Set PG/PC Interface in the Windows Control Panel of the Runtime PC and select S7ONLINE (STEP 7) as the application access point. Then, in the interface list, assign the entry that actually reaches your destination: for a physical S7-1200, the TCP/IP entry naming the adapter on the PLC network; for a simulated controller, the path that serves the simulation instead of a physical adapter. The dialog does exactly one job: an application that asks for S7ONLINE (STEP 7) receives whatever interface you assign here.
That is also why ping can succeed while Runtime does nothing: a ping travels the normal Windows routing and never consults this mapping, while Runtime asks for the access point by name and lands wherever the mapping sends it. If S7ONLINE (STEP 7) points at a disconnected adapter, an unused port or a leftover simulation entry, Runtime strands there and the MP277 keeps working as if nothing happened. The accessible-nodes search in the engineering software lists the controllers the currently assigned interface can actually see, which makes it a fast way to confirm a new mapping.
If S7ONLINE (STEP 7) is missing from the list, the Siemens communication components on that PC are missing or damaged; repairing or reinstalling them brings the entry back.
For the simulation case the same three checks apply with the mapping aimed at the simulator. The WinCC flexible side of that setup is walked through in Simulating a PLC behind WinCC flexible 2008 SP3. The access-point side of a PLCSIM target is covered in connecting WinCC to PLCSIM through the S7Online access point.
Decision: physical PLC, S7ONLINE (STEP 7) assigned to the TCP/IP entry of the adapter on the PLC network; simulated controller, assigned to the simulation path. Anything else strands Runtime while the panel keeps working.
The test order that isolates the fault #
Run the checks in this order and act on each decision before the next:
- Ping the real PLC from the Runtime PC and expect a reply. No reply: fix addressing, cabling or switching first; the project is not yet the suspect.
- Go online from the engineering software on the same PC. If ping succeeds but the engineering software still cannot reach the PLC, the fault sits below the project level; the same reasoning is worked through in fixing a TIA Portal connection that fails while ping works.
- Confirm in the connection editor that the failing tags' connection uses S7Online.
- Confirm in Set PG/PC Interface that S7ONLINE (STEP 7) resolves to the adapter serving your destination, physical or simulated.
- Restart Runtime and watch one indication tag whose PLC variable you can toggle. Expect the Runtime value to change in step with the online value in the PLC programming software.
- Operate one low-risk command while watching its variable online. Command writes move real outputs, so pick a tag that drives nothing a person could be hurt by and keep someone able to stop the machine. Expect the variable to change the way the object's event and the PLC logic define.
- Run the MP277 and PC Runtime together and expect both to update through their own connections; neither depends on the other, and neither should have to stop for the other to work.
When the path is good and tags still do not move #
Only now isolate one tag. Confirm three links in the chain: the screen object references that tag, the tag references the S7-1200 connection you just verified, and the tag's address matches the PLC variable the working MP277 object uses. The broader pattern of addresses that answer while no tag moves is covered in when an HMI and PLC ping but will not communicate. The same disconnect symptom on the newer platform, where the runtime shows the S7-1200 gone, is described in WinCC Professional runtime shows S7-1200 disconnected.
Two traps waste the most time here. First, ping is check one, not the finish line: it clears the IP path and nothing else. Second, a total lack of tag updates is not a script problem even when scripts misbehave too. Panel and PC file systems differ, so file functions written for panel use can fail under Windows, but they do not stop tag traffic. Restore the path first, then adapt the scripts.
Decision: with the path verified and object, tag, connection and address all matching, the value must move. If it still does not, replace the tag with a fresh one bound to a known-changing PLC variable and retest that single object.
Questions asked
Can the MP277 and WinCC flexible Runtime talk to the S7-1200 at the same time?
Yes. Each station opens its own connection to the controller, within the connection resources the S7-1200 offers on its PROFINET interface, and the two do not depend on each other. Nothing in this fault comes from the stations competing, so leave the panel running while you test the PC. A working MP277 next to a dead Runtime is the normal picture of a PC-side configuration fault, not a controller overload.
The same project ran on the panel, so why does the PC need different settings?
A download builds the project into the panel's own communication environment, so the panel never uses your PC's adapters or access points. The identical project file running in Runtime on the PC is served by the PC's hardware and its Windows communication settings instead. That is why the difference never shows in the project and always shows in the PC's configuration. The file is the same; the station under it is not.
What if S7ONLINE (STEP 7) is missing from the access point list?
Then the Siemens communication components on that PC are not installed correctly, and Set PG/PC Interface may be missing from the Control Panel too. If the Control Panel shows many applets, switch the view to small icons, because the interface applet is easy to lose among them. If it is genuinely absent, repair or reinstall the Siemens communication software, which restores both the applet and the access point entry.
Scripts that ran on the MP277 fail in PC Runtime. Is that the communication fault?
Almost never. A panel and a Windows PC have different file systems, and file functions written for panel use behave differently under Windows, so script errors can appear in Runtime that the panel never showed. But script failures do not explain a screen where no tag updates at all. Restore the access path first, then adapt the scripts to the PC file system one function at a time.