Troubleshooting
Why SPS-VISU will not connect to TIA Portal or STEP 7
Short answer
SPS-VISU talks to STEP 7 or TIA Portal over TCP/IP as a simulated CPU315 DP/PN, so the connection fails when the MHJ-Dienst service is stopped, the PC has no active network interface, the WinPLC-Engine settings dialog is still open, or the project's CPU315 at firmware 2.6 does not carry the address the simulator shows. Fix each in that order.

On this page
SPS-VISU will not connect to TIA Portal or STEP 7 for one of four reasons: the MHJ-Dienst Windows service is not running, the PC has no active network interface, the WinPLC-Engine settings dialog is still open, or the project does not describe a CPU 315 DP/PN at firmware 2.6 carrying the simulator's IP address. The simulator attaches to the Siemens engineering software over TCP/IP and behaves as a networked S7-300 CPU, so the project is built and addressed exactly as it would be for real hardware. Work through the checks below in order, change one condition at a time, and repeat the connection attempt after each change; the order separates a Windows problem from a simulator setting from a project error.
What the simulator presents to STEP 7 and TIA Portal #
SPS-VISU does not emulate a programming cable. It opens a TCP/IP endpoint that behaves like a networked CPU 315 DP/PN, so every setting in the Siemens project is made as if a physical S7-300 CPU315 sat on the network: the same CPU selection, the same firmware version, the same Ethernet addressing. The simulated CPU runs firmware 2.6, and that is the version the project must name. The documented pairing covers TIA Portal V13 and V14 and STEP 7 V5.x.
Run the checks in this order #
Change one condition at a time and retry the connection after each change.
- Check the MHJ-Dienst service. Open Windows' Services dialog, find MHJ-Dienst, and confirm the state is running. Start it if it is stopped, and look again after any failed connection attempt: a service that stops on its own is a fault to fix before any address is edited. Opening the simulator window is not a substitute for this check; the service runs separately from the application.
- Give the PC a networked interface. The computer must be networked: an Ethernet card with no cable and no WLAN connection leaves no interface for the connection to use. On a bench with no network at all, install the Microsoft Loopback Adapter — Microsoft documents installing it through the add-hardware wizard or from a command prompt — then enable it and give it a usable IP configuration.
- Start the simulator first. Open SPS-VISU and load a plant. A message containing "Socket" at startup is not the condition to chase at this point; the documented sequence continues past it.
- Enable communication and take the address. In the Software-SPS menu, open the WinPLC-Engine settings entry (WinPLC-Engine Einstellungen), switch communication on, and write down the IP address shown; that address is what the Siemens project must carry. Leave the dialog with the OK button: while it is open, no communication with the Siemens software is possible. Run this step once after every start of SPS-VISU.
- Build the project the simulator expects. Start TIA Portal or STEP 7, create a project, and configure an S7-300 station containing the CPU 315 DP/PN at firmware 2.6. Set the CPU's IP address to the value noted in the previous step, in the same Ethernet properties used to change an S7-300 IP address without breaking the machine. If the hardware catalog will not offer the CPU or firmware you expect, check which S7-300 modules TIA Portal V13 supports, and where to look before treating that as a network fault.
- Compile everything, then go online. In TIA Portal, compile the entire project, hardware and software, before the online attempt; a software-only compile leaves the hardware configuration unverified. Then press the Connect online button (Online verbinden) and let the portal open the session to the simulator.
Checking dialog 192.168.0.1 against project 192.168.1.1 #
The single mistyped octet is the most common address failure, so this example works one; the addresses are examples, and the real values come from the dialog and from the project.
Inputs:
- Address displayed by the WinPLC-Engine settings dialog: 192.168.0.1, an example value.
- Address entered on the CPU in the project: 192.168.1.1, the example's mistake, in the third octet.
- Subnet mask carried with the address in the CPU's Ethernet properties: 255.255.255.0, an example value.
Rule: two IPv4 endpoints exchange frames directly only when their addresses, combined bitwise with the subnet mask, produce the same network address. The procedure already requires the project address to equal the dialog address, and an exact match passes this test by definition, so a failed test proves a mismatch.
Arithmetic:
- Dialog address: 192.168.0.1 AND 255.255.255.0 = 192.168.0.0.
- Project address: 192.168.1.1 AND 255.255.255.0 = 192.168.1.0.
- 192.168.1.0 is not 192.168.0.0, so the endpoints sit on different networks and no direct TCP/IP path connects them.
Result: Connect online cannot reach the simulator even though the two addresses differ by one digit.
Decision: when the online attempt fails, compare the CPU's address against the dialog's address octet by octet; all four must be identical. Correct any octet that differs, recompile, and connect again — with identical addresses the network computation matches and the endpoint is the one the simulator publishes.
When every check passes and the connection still fails #
Three things remain. First, in the online connection dialog, select the interface and target that point at the simulator's address; a second adapter in the PC can direct the attempt somewhere else. Second, restart the sequence in the documented order: close the Siemens software, start SPS-VISU, redo the engine settings step, reopen the project, and connect. Third, keep the complete text of any failure message for comparison against the interface and service readings. Keep the boundary of this checklist in mind as well: a physical controller that presents link lights while TIA Portal cannot connect fails for its own reasons, as described in S7-1200 shows link lights but TIA Portal cannot connect.
The decision for each case #
- MHJ-Dienst stopped: start it and retry; if it stops again or will not start, repair that service fault first, because no address setting compensates for it.
- No cable and no WLAN: connect one, or use the Loopback Adapter branch from check 2, then read the displayed address again before editing the project.
- WinPLC-Engine settings dialog open: switch communication on, leave the dialog with OK, and retry; redo this after every simulator start.
- Project shows a different CPU, a different firmware version, or an address that differs from the dialog's: correct the station, enter the dialog's address octet for octet, compile hardware and software, then connect online.
- Everything matches and the connection still fails: pick the online path pointing at the simulator's address, restart in the documented order, and work from the complete message text.
Questions asked
Why firmware 2.6 in the project?
The simulated CPU runs firmware 2.6, and TIA Portal's hardware catalog offers 2.6 as the lowest selectable firmware for the CPU 315-2 DP, so the version field cannot be set older by mistake. In STEP 7 V5.x, select the same firmware version in the CPU's properties. A project naming a different version describes a device the simulator is not, and the online connection then finds nothing to talk to.
Why does a disconnected network cable matter when both programs run on one PC?
The simulator and the engineering software reach each other through Windows' TCP/IP stack, so the PC still needs an active interface with a valid IP address even on a one-PC bench. A card without a cable or WLAN connection receives no valid address and leaves no path. Microsoft's Loopback Adapter is a virtual card that Windows treats as permanently connected, which is why it covers a bench with no network at all.
A message containing Socket appears when SPS-VISU starts — is that the fault?
Not at that point in the sequence. The documented startup path continues past a Socket message: start the simulator, open a plant, enable communication in the engine settings, close the dialog with OK, and attempt the online connection. Only when the service, interface, dialog and project checks all pass and the connection still fails does the complete message text become a lead worth recording alongside the interface readings.
Which software releases does this connection cover?
The documented pairing is SPS-VISU V4 with TIA Portal V13 and V14 and with STEP 7 V5.x. Keep the simulator current through the vendor's own distribution channel. For any other engineering release, confirm compatibility with the simulator vendor first, because a different hardware catalog or online dialog can fail for reasons this checklist does not reach.


