IMDHMIControls LibraryShop main store

Troubleshooting

Why an OPC server stays offline with a simulated S7-400

SCADA and data logging Published 6 min read By IMDHMI controls team

Short answer

A simulated S7-400 cannot be reached by an OPC server: the classic PLCSIM runtime exposes no network endpoint, and OPC UA on this family comes only from a CP443-1 OPC UA card, which the simulator does not emulate. The offline station and bad-quality tags are symptoms of that missing endpoint, not bad tag addresses. Commission RSView screens against the server's own simulator device, and prove the program-to-SCADA path on a physical CPU with the exact rack and slot.

On this page
  1. The offline station is a dead endpoint
  2. A simulator device inside the server is another machine
  3. Where OPC UA on an S7-400 actually lives
  4. Three layers and the check that isolates each
  5. Prove the path with one changing bit
  6. The decision for each case
  7. Questions asked

Your S7-400 program runs in PLCSIM, the station you added in Station Configurator stays offline, and RSView sees nothing through the OPC server. The cause is structural, not a setting: the classic S7-400 simulator executes the program and holds its memory but opens no network endpoint, so no OPC server has anything to connect to — and an S7-400 carries no OPC server of its own anyway, because OPC UA on this family comes from a CP443-1 OPC UA communications processor, which the simulator does not emulate. Station status, the server's device route and the client tags are three separate layers. Below is the check that isolates each one, the one-bit test that proves a path, and the decision for each outcome.

The offline station is a dead endpoint #

OPC, whether DA or UA, is only the interface between a client and a server. The server still needs a driver and a communication route to the controller, and that route is where your chain is broken. The classic S7-400 simulator that belongs to SIMATIC Manager stands in for the CPU during download and online monitoring from the programming tool; it never exposes an S7 communication service on a network port. Every driver that dials it — SIMATIC NET's, Kepware's, any other — gets no answer, so the connection stays down at every address, cable and timeout you try.

Station Configurator belongs to the SIMATIC NET route, where a PC station is configured in the project and its components run on the PC. A station typed into the configurator by hand, with no matching station configured in SIMATIC Manager Classic V5.x and downloaded, has nothing behind it and stays offline whatever the PLC side does; a correctly built station still goes nowhere against classic PLCSIM. If your server is KEPServerEX, Station Configurator plays no role at all: delete the hand-made entry and read the server's own device diagnostics instead.

A simulator device inside the server is another machine #

The simulator type you picked in the new-device dialog is one of the server's own data sources — the Kepware driver documentation lists its simulator drivers, among them the Advanced Simulator Driver, beside the real PLC drivers. Its tags live entirely inside the server process. A Boolean you add under that device declares a two-state value at a server-internal address; no cable, driver or PLC is involved, and the S7-400 program in PLCSIM is untouched. Declaring the data type says nothing about addressing or connectivity, which is why those Boolean tags neither fixed nor proved anything at the PLC layer.

That device is still good for exactly one job: proving the client half. A good-quality value read from it through an OPC test client proves the server, its OPC interface and your client configuration — nothing about the PLC route. Where a simulator does expose a network interface, feeding SCADA through an OPC server is an ordinary configuration exercise, covered in Simulating an S7 PLC for SCADA OPC server testing; the S7-400 in classic PLCSIM is not that case.

Where OPC UA on an S7-400 actually lives #

The S7-400 CPU provides no OPC server of its own; on this family, OPC UA is delivered by the CP443-1 OPC UA communications processor in the rack, and the simulator does not emulate that card. An OPC UA test against simulated S7-400 hardware is therefore impossible, and no driver, license or configuration changes that. For OPC DA, the route is a PC-based server — SIMATIC NET or a third-party one — whose S7 driver points at the CPU's network address, rack and slot exactly as the hardware configuration shows them; a wrong rack or slot is enough to keep every item bad.

The generational contrast is worth knowing: an S7-1500 embeds the OPC UA server in the CPU, enabled in TIA Portal through the CPU's properties under OPC UA > Server, with no PC station and no extra card, as explained in When an S7-1500 needs no SIMATIC PC Station for OPC UA. If your specification says OPC UA and the CPU stays an S7-400, plan the CP443-1 OPC UA hardware and run the acceptance test on the real rack.

Three layers and the check that isolates each #

What you observe Layer at fault Deciding check
Station Configurator entry offline, no project station behind it PC-station configuration Configure the PC station in SIMATIC Manager Classic V5.x and download it; skip the configurator entirely if the server is KEPServerEX
Server runs, S7-400 device never connects Server-to-PLC route With classic PLCSIM this check fails by design; move the route to a physical CPU
Simulator-device tag reads good in the test client, RSView tag stays bad Client mapping Select the same server in RSView and reuse the verified item ID
Simulator-device tag reads bad in the test client too Client-to-server link or item address Correct the item address or the client's server selection before touching the PLC side

Work them in this order:

  1. Fix the server-to-PLC route first; nothing downstream can compensate for it.
  2. Prove one item with an OPC test client before any SCADA tag exists.
  3. Map RSView last, reusing the item ID the test client has already verified.

Prove the path with one changing bit #

One changing Boolean settles more than an imported tag list. Pick a bit the program never writes — a spare memory bit you set from the programming tool's watch table — and toggle it on a fixed period while you count what each layer reports. One rule for that test: run it on a bench CPU or with the machine's outputs disabled, and never force a bit in a CPU that is running production.

Example numbers: you toggle the bit every 2 s for one minute. That gives 60 s ÷ 2 s per change = 30 changes. A client reading the tag once per second takes 60 s ÷ 1 s = 60 reads, and each state between two changes lasts 2 s ÷ 1 s = 2 reads, so no state can hide between polls. The counts now decide: the test client reports zero changes → the fault sits below the client, in the driver route; the test client reports all 30 changes while RSView reports none → the fault is the mapping, a wrong server selection or a mistyped item ID; both report all 30 → the path is proven, and you may import the rest of the tags.

On the simulator-device route, run the same test in reverse: write the bit from the OPC test client, read it back, and watch the RSView tag follow. That proves the client half while the CPU half waits for real hardware.

The decision for each case #

  • Screens must be commissioned now: point the server at its simulator device, add the tags, prove them through the test client, map them into RSView. Re-point the device at the S7-400 when hardware exists and re-verify, because item IDs change with the driver.
  • The program-to-SCADA path must be proven: put a physical S7-400 on the bench with a reachable Ethernet interface — the CPU's own where it has one, otherwise a CP443-1 — configure the driver with the exact network address, rack and slot, and run the one-bit test. The classic route reads only non-optimised data blocks, and every S7-400 data block qualifies, since optimised block access belongs to the S7-1200/1500 generation.
  • The specification demands OPC UA on the S7-400: plan the CP443-1 OPC UA card; it cannot be simulated, so its acceptance test belongs on the real rack.
  • The PC station must show online in Station Configurator: build it in SIMATIC Manager Classic V5.x, compile and download, so the configurator displays the same station the project defines.

Questions asked

Does S7-PLCSIM Advanced remove the limitation for an S7-400?

No. S7-PLCSIM Advanced belongs to the TIA Portal generation and simulates S7-1200 and S7-1500 CPUs behind a virtual network adapter, which is exactly the interface the classic S7-400 simulator lacks. There is no Advanced variant for the S7-400, so moving your test there means porting the program to an S7-1500, a migration with its own rework, not a recompile.

Must PLCSIM be running before the OPC server is launched?

Launch order makes no difference. The classic S7-400 simulator never opens a communication endpoint, so every sequence fails the same way. The only order worth keeping is server before client, so the first browse hits a live server; that habit pays off later, when a physical CPU and a working driver replace the simulator.

Can RSLinx Classic serve the S7-400 to RSView?

No. RSLinx Classic speaks to Allen-Bradley controllers; a Siemens CPU is invisible to it, however well the OPC DA side is configured. RSView consumes OPC DA, so the right server is any OPC DA server with an S7-400 driver, and your KEPServerEX installation qualifies. Its missing piece on the bench is a reachable endpoint, not the protocol or the server choice.

Does the redundant S7-400 H change anything?

No. The H variant provides no OPC server either, and the rule stays the same: OPC UA requires the CP443-1 OPC UA communications processor in the rack, and the simulator cannot emulate it. Redundancy changes how the program survives a CPU failure, not how an OPC client reaches the data.

Keep reading

  • How-to

    Connect an S7-1500 to SCADA over OPC UA from TIA Portal

    The S7-1500 has a built-in OPC UA server from firmware V2.0, deactivated by default. Enable it in the CPU device properties in TIA Portal, select the installed server license, copy the endpoint URL, and download. Paste the opc.tcp address into any OPC UA SCADA client, trust the certificates on both sides, then browse the PLC variables and map them to SCADA tags.

    SCADA and data logging

  • How-to

    Connecting a CODESYS HMI on Windows to an S7-1500 PLC

    Yes, it works. Use OPC UA with the S7-1500 as server and the CODESYS HMI as client when the PC only supervises; use a CODESYS Control Win runtime with target visualization over a PROFINET controller/device link when the PC must also run logic. The PROFINET path adds one single-device license on top of the runtime; the OPC UA path adds none.

    SCADA and data logging

  • How-to

    Simulating an S7 PLC for SCADA OPC server testing

    Plain PLCSIM accepts connections only from applications on the same PC, so an OPC server on another machine never sees it. Bridge classic STEP 7 PLCSIM to TCP/IP with NetToPLCSim, or run a virtual S7-1500 in S7-PLCSIM Advanced with its built-in OPC UA server, and the SCADA connects as if to real hardware.

    SCADA and data logging