Configuring CPU315-2DP Ethernet SCADA via CP343-1 Lean

David Krause15 min read
S7-300SiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

System Overview and Migration Rationale

The Siemens SIMATIC S7-300 CPU 315-2DP (order number 6ES7 315-2AG10-0AB0 or current -2AH14 variant) is a workhorse controller for mid-size automation, including residential and light-commercial control loops. It ships with an integrated MPI/DP interface on the first X1 port and a separate DP master/slave port on X2, but no native Ethernet. When the original HMI/SCADA layer is a CE6 panel connected via the legacy PC Adapter USB A2 (6ES7 972-0CB20-0XA0) on MPI, the architecture is functional but constrained: MPI runs at 187.5 kbit/s or 1.5 Mbit/s, the panel is short on CPU/RAM, and modern tablets running Windows 10/11 cannot reliably install the legacy PC Adapter drivers on USB 3.0 controllers.

Adding a CP 343-1 Lean (6GK7 343-1CX10-0XE0) gives the S7-300 station a 10/100 Mbit Ethernet port that exposes the S7 protocol to any TCP/IP-capable SCADA host. The CP supports S7 communication, PG/OP communication, ISO-on-TCP (RFC1006, port 102), TCP, UDP, and a built-in web server for diagnostics. The Lean variant deliberately omits PROFINET controller functionality and the IT diagnostics of the Advanced (6GK7 343-1GX30-0XE0), but for SCADA polling it is more than sufficient and roughly 40 percent lower in cost.

Compatibility check: The CP 343-1 Lean (6GK7 343-1CX10-0XE0) requires STEP 7 V5.4 SP3 or later, or TIA Portal V13 SP1 or later. The CPU 315-2DP must be in firmware version 2.0.0 or higher for the CP to be inserted in slot 4 without a hardware fault during startup. Verify the firmware level in STEP 7 under PLC → Diagnostics → Module Information before commissioning.

Prerequisites and Bill of Materials

Item Catalog Number / Version Notes
S7-300 CPU 6ES7 315-2AH14-0AB0 (or -2AG10) Firmware V2.0+; integrated MPI + DP master
CP 343-1 Lean 6GK7 343-1CX10-0XE0 One Ethernet port, 16 connections, ISO/TCP/UDP/S7
PS 307 power supply 6ES7 307-1EA01-0AA0 (5 A) or 1KA02 (10 A) Slot 1 of the rail
STEP 7 V5.x or TIA Portal V5.5 SP4+ or TIA V15.1+ Hardware catalog must be updated
Movicon 11.5 (or later) Progea / Emerson Siemens S7 TCP/IP driver preinstalled
Windows 10/11 SCADA host Surface Pro 3 / 4 / 7 or industrial panel Static IP in same subnet as CP
Ethernet switch + WiFi router Any 100 Mbit+ with DHCP Optional wireless for tablet
Patch cable Cat 5e or higher RJ45-RJ45, 1-5 m CP to switch uplink

Before touching any hardware, confirm that the Movicon 11.5 installation media contains the Siemens S7 TCP/IP driver (DLL ss7_tcp.dll or SiemensS7TCP.dll depending on build). The driver is normally bundled with the standard Movicon build for industrial use; it is not a separate license and supports both S7-300 and S7-400 racks.

Hardware Architecture: Adding the CP 343-1 to the S7-300 Rack

The S7-300 backplane is slot-numbered, and the CP must be placed in a free signal-module slot. The standard layout for a CPU 315-2DP system with one CP is:

Slot Module Role
1 PS 307 24 V supply, no logical address
2 CPU 315-2DP Central processor — target of all SCADA requests
3 (reserved / IM360 if used) Interface to expansion rack
4 CP 343-1 Lean Ethernet transport, no user program runs here
5…11 SM/DI/DO/AI/AO/FM Signal and function modules

The CP occupies slot 4 and consumes 24 V from the backplane. Each CP reserves 16 bytes of input and 16 bytes of output in the process image (addresses PE 0…15 and PA 0…15 in slot 4), but these are internal and should not be referenced from the user program. They appear automatically in the hardware configuration of STEP 7.

Slot rule: In the S7-300, slot 2 is always the CPU. The CP, regardless of its physical slot, is a transparent transport. Any SCADA driver that asks for a rack/slot combination should be told Rack 0, Slot 2 — not slot 4. Pointing the driver at the CP's slot is a classic commissioning error that yields Wér_Resource or 0x0000 read errors.

STEP 7 Hardware Configuration

Open SIMATIC Manager and load the existing STEP 7 project that contains the CPU 315-2DP station. If the project was previously only configured for MPI, the S7 program itself (OB1, FB, DB) does not need to change — the user program is unaware of the CP until you add a configured S7 connection in NetPro. For a basic Movicon polling setup using PG/OP communication, the program change is zero.

  1. Open HW Config and double-click the rail.
  2. Drag CP 343-1 Lean (6GK7 343-1CX10-0XE0) from the catalog into slot 4. If the catalog does not show the module, run Options → Install HW Updates and import the latest HSP.
  3. Double-click the CP to open its properties. The General tab shows the order number and firmware; verify that it matches the physical label on the module.
  4. Switch to the Properties → Ethernet Interface sub-dialog and click Properties… under IP Address Assignment.

Assigning a Static IP Address

Uncheck Set IP address using a different method and enter:

IP address:   192.168.1.10
Subnet mask:  255.255.255.0
Router:       (leave blank for a flat LAN)

If the SCADA host is the only client, any RFC1918 subnet is acceptable. Keep the CP and the SCADA host in the same subnet to avoid a router hop. After saving, compile and download the hardware configuration to the CPU. The CP will restart, perform a self-test, and the RUN LED turns solid green within 5–10 seconds. The BF (bus fault) LED should remain off; a steady red SF LED indicates a configuration mismatch (wrong CP inserted in slot 4, or wrong firmware in HW Config).

Enabling PG/OP and S7 Communication

In the CP properties dialog, open the Options tab. Verify that the following checkboxes are set:

  • Set PG/OP interface — required for STEP 7 to attach to the CP for online functions.
  • Enable S7 routing — only required if you have downstream stations, otherwise leave off.
  • S7 communication via TCP/IP — must be on for Movicon and most third-party S7 clients.

For PG/OP communication, no connection object needs to be created in NetPro. The S7 protocol's PG port listens on TCP/102 by default and the SCADA driver is treated as a programming device from the CPU's perspective. For configured S7 connections (used by WinCC flexible, certain OPC servers, or redundant polling), right-click the CP and choose Insert New Connection → S7 Connection, then specify the partner as Unspecified with a local and partner TSAP. Movicon 11.5 does not require a configured connection in NetPro when using the standard S7 TCP/IP driver.

CP 343-1 Lean Operating Modes and LED Diagnostics

The CP has four front-panel LEDs. Their meaning is unambiguous in the CP 343-1 Lean manual:

LED Color State Meaning
SF Red On Group fault: wrong slot, wrong HW Config, IP duplicate, configuration error
BF Red On No physical Ethernet link (cable, switch port, or CP failure)
BF Red Flashing Link up, but no S7 connection established to any partner
RUN Green On CP is in RUN, all configured connections active or ready
RUN Green Flashing CP is starting up or a firmware update is in progress
STOP Yellow On CP is in STOP — no user data exchange possible

A healthy state is RUN solid green, SF off, BF off. Once Movicon opens a connection, RUN remains solid; the BF LED is not lit just because no client is connected. A flashing BF means the link is up but no S7 partner is registered — this is the most common state immediately after download and is normal until the SCADA client starts polling.

Movicon 11.5 Driver Configuration

Open the Movicon project and navigate to Resources → Communication Drivers. The driver list shows the protocols available in the installed build. Add Siemens S7 TCP/IP (sometimes labelled S7 MPI/TCP Ethernet). Right-click the driver instance and open its properties. The relevant fields are:

Field Value for S7-300 + CP 343-1 Notes
Communication port TCP/IP Serial COM is for PPI/MPI via PC Adapter only
IP address 192.168.1.10 Must match CP 343-1 exactly
TSAP (local / remote) leave default, or 01.01 / 02.01 Only relevant for configured S7 connections
Rack 0 S7-300 rack is always 0
Slot 2 CPU slot — NOT the CP slot
Timeout (ms) 3000 Increase to 5000 on busy networks
Polling interval (ms) 250–1000 Lower = higher CPU load on tablet
Connection retries 3 Auto-reconnect on link loss
Slot 2 vs. Slot 4: The Movicon driver treats the Slot field as the address of the S7 CPU that holds the data. The CP is invisible to the S7 protocol — it is a transport adapter. Selecting slot 4 (the CP's physical slot) returns item not found errors or, depending on firmware, hangs the connection. Always set Slot = 2 for any S7-300 with the CPU in slot 2.

Tag Database and Data Block Mapping

Movicon tags are addressed in the form DB<n>.<type><offset>. The most common data types and their STEP 7 counterparts are:

Movicon address STEP 7 symbol Size (bytes) Use
DB100.DBX0.0 DB100.DBX0.0 1 bit Boolean flag / bit status
DB100.DBX0.1 DB100.DBX0.1 1 bit Boolean flag
DB100.DBB0 DB100.DBB0 1 Byte
DB100.DBW2 DB100.DBW2 2 INT (16-bit signed)
DB100.DBD4 DB100.DBD4 4 DINT (32-bit signed)
DB100.DBR8 DB100.DBR8 4 REAL (IEEE 754 float)

For a residential automation project it is common to centralize all SCADA-visible variables in two or three DBs — for instance DB100 for inputs (booleans from door contacts, window contacts, motion detectors), DB101 for outputs (relay states, dimmer levels), and DB200 for setpoints (room temperature target, lighting scenes, alarm arm/disarm). The DBs must be declared in STEP 7 with the symbol DB100, DB101, etc., and downloaded to the CPU. The CP 343-1 Lean does not require any symbol export or OPC XML file; the S7 driver reads raw byte offsets and trusts the DB layout.

Enable the attribute Optimized Block Access = OFF for any DB read by SCADA. Optimized access hides the byte layout and the driver cannot read symbolic names. With optimized access off, the DB is treated as a classic S7-300 data block and every byte has a stable offset.

Step-by-Step Commissioning Procedure

  1. Power off the S7-300 rack, insert the CP 343-1 in slot 4, power on. Observe SF and BF — if SF is steady red, the CP firmware revision in HW Config does not match the physical module.
  2. Connect an Ethernet patch cable from the CP to the switch. The BF LED should extinguish within 2 seconds of link-up. The SF LED should remain off.
  3. Open STEP 7, go online with the CPU, and download the updated HW Config. The CP restarts and acquires its IP address (192.168.1.10 in the example).
  4. From a Windows command prompt on the SCADA host, run ping 192.168.1.10. You should see replies with TTL=64 and round-trip times of 1–3 ms on a wired link.
  5. Open Movicon, add the S7 TCP/IP driver, and enter the parameters from the table above. Save the project.
  6. Click Driver Diagnostics in Movicon. The status indicator should transition from Connecting to Online within 3–5 seconds. The RX/TX byte counters will start incrementing as soon as the screen polls the first tag.
  7. Add a numeric tag Test_Real with address DB100.DBR0 and a digital tag Test_Bool with address DB100.DBX4.0. Place both on a test screen and verify that bit changes in the PLC are visible on the HMI within one polling interval.
Verification rule: If the driver shows Online but tags read #### or 0 with no errors, the rack/slot combination is wrong. Recheck that Slot = 2 and that the DB is non-optimized. If the driver shows Connection failed after 3 retries, the IP is unreachable, the CP is in STOP, or the firewall on the SCADA host is blocking TCP/102.

Troubleshooting Matrix

Symptom Likely cause Resolution
BF LED on, no link Cable / switch port / wrong speed Test with known-good cable, force 100 Mbit full duplex on switch port if auto-negotiation fails
SF LED on, RUN off Wrong CP order number in HW Config, or wrong slot Compare order number on the label with the entry in HW Config; verify slot 4
BF LED flashing, RUN on Link OK but no S7 partner Start Movicon driver; check IP, rack, slot
Ping fails, BF off, RUN on IP/subnet mismatch, or duplicate IP Verify with arp -a and ipconfig; remove duplicate device
Driver stays in Connecting Windows Firewall blocking TCP/102 inbound/outbound Add firewall rule for the Movicon executable on the private network profile
Driver goes Online then tags read 0 Slot configured as 4 (CP slot) instead of 2 (CPU slot) Change slot to 2 in driver properties
Tags read garbage / swapped bytes Byte order mismatch on REAL/DINT Movicon's S7 driver is big-endian aligned with S7; for some legacy DB layouts use a Movicon conversion function block
Connection drops every 30-60 s Watchdog in CP disconnects idle partners; or WiFi roaming Reduce polling interval below 10 s, or disable CP's keep-alive timeout in HW Config
Slow response on wireless tablet WiFi interference or 2.4 GHz congestion Switch to 5 GHz SSID; use a dedicated SSID for the automation VLAN
STEP 7 cannot go online via Ethernet PG/OP interface not enabled on CP, or wrong PC interface Set PG/OP interface in CP Options tab; in PG/PC interface select S7ONLINE → TCP/IP → Intel NIC

Performance, IP Cameras, and WiFi Considerations

The original CE6 panel hit a performance wall with both the SCADA runtime and the number of screens. A Surface 3 (or a modern Atom-based industrial panel) running Windows 10 and Movicon 11.5 will run the S7 driver with negligible CPU — typical poll of 200 tags at 500 ms uses about 1–2 percent of an i3 core. The bottleneck shifts from CPU to network: the CP 343-1 Lean supports 16 simultaneous S7 connections, of which the SCADA driver uses one. IP cameras should be placed on a separate VLAN or at minimum a separate SSID to prevent multicast traffic from saturating the automation network.

For wireless SCADA, deploy a 5 GHz WiFi network dedicated to the tablet. The CP 343-1 Lean is wired; the wireless hop is between the SCADA host and the switch. Roaming behavior of consumer WiFi adapters can cause momentary disconnects that the S7 driver interprets as connection lost. If the tablet moves between access points, set the driver's connection retry to 5 and the timeout to 5000 ms; this masks typical 802.11r transitions of 200–400 ms.

Security and CPU Access Protection

By default, the CPU 315-2DP allows any S7 partner on the network to read and write data blocks using the PG port. This is convenient for development but unacceptable on a permanent installation. Configure access protection in STEP 7 under CPU Properties → Protection:

  • Level 1: No password — only suitable for closed commissioning networks.
  • Level 2: Password for write access — recommended. SCADA can read everything; only STEP 7 with the password can write.
  • Level 3: Password for read and write — Movicon may fail to read if it does not know the password. Only use if the SCADA driver supports password submission (most do not).

For Level 2, the Movicon S7 driver works without changes because all polling is read-only by default. The CP 343-1 Lean does not enforce CPU access protection on its own; the check is performed by the CPU. If the CP itself is secured (Options → Security in HW Config), the password is independent of the CPU password and applies to CP management web pages only.

Migrating to WinCC Flexible / TIA Portal WinCC

For projects that have outgrown Movicon, the next step within the Siemens ecosystem is WinCC Comfort/Advanced (TIA Portal) for PC-based visualization. The CP 343-1 Lean, STEP 7 project, and DB layout all carry over unchanged — only the HMI software changes. WinCC uses the same S7 protocol and the same rack/slot addressing, but it expects an HMI connection configured in the TIA Portal device → device network, with the CP 343-1 selected as the access point. The HMI tag database is generated from the PLC tag table, which is a significant maintenance improvement over manual Movicon tag entry.

Outside the Siemens ecosystem, open-source alternatives such as libnodave or S7.Net provide free S7-300/400 drivers for custom .NET or Python SCADA applications. The wire protocol is the same: ISO-on-TCP, port 102, rack 0, slot 2 for an S7-300.

Field-Notes Summary

Migrating a CPU 315-2DP installation from a CE6 panel on MPI to a modern Windows 10/11 SCADA host on Ethernet requires three deliberate decisions: the CP variant, the rack/slot configuration, and the SCADA driver slot value. Pick the CP 343-1 Lean for cost, configure rack 0 and slot 2 in the SCADA driver (not the CP's physical slot), and verify the link with ping and a single boolean tag before building the rest of the project. The legacy USB/MPI adapter (6ES7 972-0CB20-0XA0) and its Windows 10 driver problems disappear the moment Ethernet is in place.

Frequently Asked Questions

Why does Movicon ask for a rack and slot when the CP is in slot 4?

The rack/slot pair identifies the S7 CPU that owns the data blocks, not the CP. For an S7-300 the CPU is always in slot 2 of rack 0. The CP is invisible to the S7 protocol and serves only as a TCP/IP transport. Configuring slot 4 makes the driver target a non-CPU module and returns read errors.

Can I keep the MPI cable and add Ethernet at the same time?

Yes. The CPU 315-2DP has two ports: MPI/DP on X1 and DP on X2. The CP 343-1 adds a third, separate interface. You can run PG/OP communication on MPI for STEP 7 and S7 communication on Ethernet for the SCADA simultaneously, but be aware that every active S7 partner on the CP counts against the 16-connection limit.

Do I need a configured S7 connection in NetPro for Movicon?

No. The Movicon S7 TCP/IP driver uses PG/OP communication, which does not require a connection object in NetPro. The driver opens a passive S7 connection on TCP/102 and the CPU accepts it. Only WinCC flexible, certain OPC servers, and Put/Get from custom code require an explicitly configured S7 connection with TSAPs.

What polling interval is reasonable for residential automation?

500–1000 ms is a good default. Faster polling (100–200 ms) gives no perceptible UI improvement on a human-operated screen and increases CP and tablet CPU load. If you have fast-changing analog values (e.g., a flow rate), poll only those tags at 200 ms and keep the rest at 1000 ms to balance load.

Does the CP 343-1 Lean support PROFINET?

No. The Lean variant supports only standard TCP/IP and the S7 protocol. For PROFINET IO controller functionality you need the CP 343-1 (6GK7 343-1EX30-0XE0) or CP 343-1 Advanced (6GK7 343-1GX30-0XE0). For SCADA-only applications, PROFINET is unnecessary; the Lean is the right choice and costs less.

What happens to the project if I lose the WiFi connection briefly?

The Movicon S7 driver attempts to reconnect with the configured retry count. With the recommended 3 retries at a 3000 ms timeout, a WiFi dropout of up to 9 seconds is bridged transparently. Longer outages produce Bad Quality on the affected tags until the connection is re-established. CPU and CP state are preserved; the PLC continues running its user program throughout the disconnect.

Back to blog