Remote Access to Siemens S7 PLCs: Fundamentals
Siemens PLCs in the S7 series—S7-300, S7-400, S7-1200, and S7-1500—are among the most widely deployed in global industry. The ability to access them remotely to diagnose issues, modify settings, or monitor their status is a major operational challenge: every trip avoided saves time and money.
Remote access to a Siemens S7 PLC relies on two complementary components:
- Network connectivity: An industrial 4G/LTE router installed on the site’s OT network creates an encrypted VPN tunnel to the operator’s platform or to the engineer’s workstation.
- The S7comm protocol: the native Siemens protocol that encapsulates TIA Portal/Step 7 communications with the PLC, which are transmitted transparently through the VPN tunnel.
Compatibility by Siemens PLC Series
All S7 series are accessible remotely, but with different prerequisites:
| Series | Network Interface | Protocol | Required CP Card |
|---|---|---|---|
| S7-300 | Native MPI port + CP 343-1 | S7comm over Ethernet | Yes (CP 343-1 Lean or Advanced) |
| S7-400 | Native MPI port + CP 443-1 | S7comm over Ethernet | Yes (CP 443-1) |
| S7-1200 | Integrated Ethernet | S7comm + Modbus TCP + OPC UA | No |
| S7-1500 | Integrated Ethernet | S7comm + OPC UA + Web server | No |
| ET 200SP CPU | Integrated Ethernet | S7comm + OPC UA | No |
The S7-1200 and S7-1500 are the easiest to connect to remotely: their native Ethernet interface and OPC UA support make them directly accessible via the 4G VPN router.
Architecture of a Secure S7 Remote Access System
The 4G router acts as a transparent bridge: from within TIA Portal, the engineer sees the PLC as if it were on the same local network. The S7comm protocol passes through the VPN tunnel without any modifications. The S7 PLC receives the connection on its TCP port 102; the 4G VPN router encrypts all traffic to the VPN concentrator; and the engineer connects from TIA Portal via their VPN client.
Configuring TIA Portal for Remote Access
When configuring S7 remote access, there are several TIA Portal settings to check:
In the CPU properties:
- Enable Ethernet communication (the "Ethernet Addresses" tab)
- Set a static IP address (avoid using DHCP in an industrial environment)
- Configure the CPU protection level (Protection Level) according to your security policy
- On the S7-1500: enable or disable PUT/GET access as needed
For remote diagnostics:
- The "Go Online" feature in TIA Portal works via VPN exactly as it does locally
- The diagnostic buffer can be viewed remotely
- Watch tables are accessible in real time
S7comm vs. OPC UA: Which Protocol Should You Use for Remote Access?
The S7-1200 (firmware ≥ 4.0) and S7-1500 support OPC UA in addition to S7comm. For remote access, both approaches have their place:
S7comm is essential for:
- Programming and modifying programs with TIA Portal
- Online diagnostics (block status, variable values)
- Uploading to the device (Download to device)
OPC UA is best suited for:
- SCADA or MES integration
- Multi-vendor monitoring
- Real-time applications using publish/subscribe (OPC UA PubSub)
- Access from third-party systems (Python, Node-RED, MATLAB)
Security: Best Practices for S7 Remote Access
Securing remote access to a Siemens PLC requires a multi-layered approach:
- Never expose directly: TCP port 102 must never be open to the Internet. All access must go through the VPN tunnel.
- Strong authentication: X.509 certificates or a robust pre-shared key for the VPN, CPU password in TIA Portal.
- Network Segregation: The S7 PLC is in an isolated OT subnet, with the 4G router providing a controlled connection.
- Logging: Every VPN connection and every TIA Portal session is time-stamped and logged.
- S7-1500 CPU Protection: Enable the “Confidentiality” protection level to encrypt the downloaded program.
- NIS2 Compliance: For operators of critical infrastructure, document remote access procedures and authorizations.
Practical Implementation with an Industrial 4G Router
The deployment of S7 remote access typically follows these steps:
- Installing the 4G router on the OT network (DIN rail, 24 V DC or 12 V DC power supply)
- VPN configuration: configuring the IPsec or OpenVPN tunnel on the router side
- Assigning a static IP address to the S7 CPU on the OT network
- Connectivity test: ping from the engineer’s workstation via VPN
- Connecting to TIA Portal: Select the "TCP/IP" PG/PC interface and enter the PLC’s IP address
- Authorization verification: Checking the CPU protection level
- Documentation: Recording the procedure and access permissions