Connecting SIMATIC S5 to OPC Server via Sena LS100 Reference

David Krause15 min read
OPC / OPC UASiemensTechnical Reference
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

Connecting SIMATIC S5 to OPC Server via Sena LS100: Reference Guide

1. Overview: The SIMATIC S5 Integration Challenge

The SIMATIC S5 family (S5-90U, S5-95U, S5-100U, S5-115U, S5-135U, S5-155U) ships with no native OPC DA or OPC UA interface. STEP5 programs are typically loaded and debugged through the PG port using the AS511 serial protocol, or via the CP1430 / CP143 module using SINEC H1 on Industrial Ethernet with the RK512 transport layer. When a modern SCADA, HMI, or IIoT gateway must read or write S5 data, a bridging component is required between the legacy field protocol and the OPC client application.

Three architectural patterns are field-proven for this problem:

  1. Serial-to-Ethernet tunnel + third-party OPC server - exemplified by the Sena LS100 providing a virtual COM port to a vendor OPC server such as Softing S7/S5 OPC Server.
  2. Native Ethernet-to-Ethernet bridge - IBH Link UA from IBHsoftec, which terminates AS511 / MPI / PROFIBUS on the controller side and exposes OPC UA on the network side.
  3. Vendor-native S5-compatible communication - Siemens CP1613 with SIMATIC NET OPC Server in S5-compatible mode over Industrial Ethernet.

This reference covers the first architecture in depth, explains why the Softing OPC Server does not interoperate transparently with a generic serial device server, and documents the migration paths that avoid the constraint entirely.

Critical field note: The Softing S7/S5 OPC Server is licensed and tested against Softing-supplied adaptors (e.g., Softing S7-PCI, S7-USB, PROFIBUS cards). It does not treat a third-party virtual COM port created by a Sena LS100 as a valid S5 endpoint. This is the most common reason a Sena LS100 + Softing combination fails to read tags, even when the virtual COM port round-trips PG traffic successfully.

2. S5 Communication Protocol Architecture

Before selecting an adaptor, identify the protocol layer exposed by the S5 CPU. Mixing layers is the most frequent commissioning error.

Protocol Physical Layer Default Baud Endpoint Typical Use
AS511 RS-232 / 20 mA current loop on PG port 9600 bit/s (fixed) S5 CPU PG socket (15-pin) STEP5 programming, single-tag read/write
3964 / 3964R RS-232 / RS-422 point-to-point 300 - 38400 CP521 / CP523 modules Custom RK512 frames
SINEC H1 10BASE5 / 10BASE2 / 10BASET Industrial Ethernet 10 Mbit/s CP1430 / CP143 S5-to-S5 or S5-to-host with RK512
PROFIBUS DP RS-485 9.6 k - 12 Mbit/s CP5431 / IM308C Distributed I/O only - not used for OPC HMI traffic

The AS511 protocol uses 8 data bits, 1 stop bit, even parity, and a 9600 bit/s default rate. It is a request/response protocol with a 4-byte header (job number, coordination flags, parameter count, data count) and a trailing block-check character. The PG port cannot be multi-dropped; only one master can hold the bus. This constraint forces the use of a single OPC server instance per CPU when using the serial path.

S5 Address Map for OPC Tag Authoring

The following S5 storage areas must be mapped into OPC item names:

  • I (Inputs) - process image, byte-addressable, range IB 0 - IB 127 on most CPUs
  • Q (Outputs) - process image, QB 0 - QB 127
  • F (Flags / Merkers) - internal scratch memory, FW 0 - FW 255
  • D (Data Blocks) - DB 2 - DB 255, each up to 8192 words (DW), with associated DL, DR, DD formats
  • T (Timers) - T 0 - T 255, 16-bit down-counter running at a configured base
  • C (Counters) - C 0 - C 255, 16-bit up-counter

3. Sena LS100 Serial Device Server: Hardware and Protocol Support

The Sena LS100 is a single-port industrial serial device server that converts RS-232/422/485 to 10/100Base-TX Ethernet. It provides four operating modes:

  • TCP Server - LS100 listens on a configured port; client initiates connection.
  • TCP Client - LS100 connects outbound to a configured remote endpoint.
  • UDP - stateless, useful for broadcast polling.
  • Virtual COM - LS100 partners with a Windows VCOM driver that creates a kernel COM port on the host PC; traffic is tunneled to the LS100 transparently.
Parameter Sena LS100 Specification
Serial interface DB9 male, RS-232/422/485 software-selectable
Baud rate 300 - 230400 bit/s
Data bits 7 or 8
Parity None / Even / Odd / Mark / Space
Flow control RTS/CTS, XON/XOFF, None
Ethernet 10/100 Mbit/s, RJ45, auto-MDIX
Protocols TCP, UDP, Telnet, DHCP, HTTP/HTTPS web config
Power 9 - 30 VDC, 2 W typical
Operating temperature -20 °C to +70 °C
Mounting DIN-rail or wall

The Sena LS100 has no awareness of AS511, RK512, MPI, or PROFIBUS. It is a transparent byte-stream tunnel. Any protocol semantics must be implemented by the host application or OPC server.

4. Virtual COM Port Architecture with the Sena LS100

When the LS100 is configured in Virtual COM mode and the Sena VCOM driver is installed on the OPC server host, a Windows COM port (e.g., COM17) appears in Device Manager. The driver intercepts read/write calls at the Win32 level and forwards them to the LS100 over TCP port 7000 (default, configurable). At the LS100, bytes are pushed out the serial port to the S5 CPU.

This arrangement works perfectly for PG traffic - STEP5 V7 and PG-95 connect to the virtual COM port and program the S5 as if a direct serial cable were attached. The S5 responds to programming requests, and the user can read/write variables interactively.

The arrangement does not work for most OPC servers because:

  1. The OPC server expects a vendor-supplied adaptor API (DLL, IOCtl, or OPC custom interface) - not a generic COM port.
  2. Licensing is typically bound to the vendor adaptor hardware serial number.
  3. The OPC server initiates proprietary sessions on connection; a transparent VCOM does not satisfy this handshake.

5. OPC Server Options for SIMATIC S5

OPC Server Supported Adaptors OPC Compliance Adaptor Compatibility with Sena LS100
Softing S7/S5 OPC Server Softing S7-PCI, S7-USB, PB-PCI, PN-IO; Siemens CP5611/CP5613/CP5614/CP1613 in vendor mode OPC DA 2.05/3.0 No - VCOM not supported
Siemens SIMATIC NET OPC Server CP1613, CP5613, CP5614, CP1623 OPC DA 2.05/3.0, OPC AE No - requires S7-compatible mode over IE
IBH Link UA IBH S5-LAN++, IBH S7-LAN, IBH netLINK PROFINET OPC UA 1.04 No - replaces LS100 entirely
KEPServerEX (S5 driver) Native AS511 over COM; vendor MPI/PROFIBUS cards OPC DA 2.05/3.0, OPC UA Yes - VCOM with AS511 driver
Matrikon OPC Server for S5 (historical) AS511 over COM port OPC DA 2.0 Yes - VCOM with AS511 driver
For a working LS100 + OPC topology, use an OPC server with a generic AS511-over-COM-port driver. KEPware / Matrikon-style servers work; Softing and SIMATIC NET do not.

6. Softing S7/S5 OPC Server: Configuration and Compatibility Boundaries

The Softing S7/S5 OPC Server (current edition 2015-02 / "1502") supports the SIMATIC S5 only through Softing-supplied adaptors. Configuring a third-party serial device server as the underlying transport fails because:

  • The server registers Softing adaptor COM-objects at startup; missing objects abort the connection pool.
  • The S5 device DLL (s5mm.dll) calls SLBINIT on a Softing-provided handle, not on a raw file handle.
  • Even with the COM-port emulation flag set in older versions, the licensing DLL (sfck50.dll) requires a Softing hardware dongle or activation key tied to the adaptor serial number.

If Softing is mandated by plant standard, the supported alternatives are:

  • Insert a Softing PROFIBUS master card in the OPC server PC and bridge the S5 PROFIBUS-DP slave data through a Softing PROFIBUS-OPC gateway.
  • Use a Softing-approved Ethernet-to-S5 gateway (limited catalog - confirm with Softing).

7. Alternative 1: IBH Link UA for OPC UA Integration

The IBH Link UA is a small DIN-rail gateway with an Ethernet uplink and an AS511 / MPI / PROFIBUS downlink. It terminates the legacy protocol internally and exposes an OPC UA server endpoint. For S5, the default address space maps as follows:

S5 Area OPC UA Node Data Type
Inputs ns=1;s=S5.[CPU].I.B<n> Byte
Outputs ns=1;s=S5.[CPU].Q.B<n> Byte
Flags ns=1;s=S5.[CPU].M.W<n> Word
Data Block ns=1;s=S5.[CPU].DB<db>.W<n> Word
Data Block Double Word ns=1;s=S5.[CPU].DB<db>.D<n> Int32 / DWord
Timers ns=1;s=S5.[CPU].T<n> UInt16
Counters ns=1;s=S5.[CPU].C<n> UInt16

Byte order is big-endian (Motorola), matching STEP5 native word storage. The IBH Link UA Discovery URL is opc.tcp://<ip>:48020. Browsing this endpoint with any OPC UA client (UaExpert, Siemens OPC Scout V10) reveals the configured CPU nodes without further plug-ins.

8. Alternative 2: Siemens CP1613 with S5-Compatible Communication

Siemens documents the S5-compatible communication path for migrating S5 HMI traffic onto the same Industrial Ethernet as S7 nodes. The reference application is in Siemens Entry ID 16667875. The configuration sequence:

  1. Install a CP1613 (PCI) or CP1623 (PCIe) Industrial Ethernet card in the OPC server PC.
  2. Install SIMATIC NET PC software v6.4 or later (current at the time of this reference is SIMATIC NET V18). Select the SIMATIC NET OPC Server and S7/S5 Communication components.
  3. Configure the CP1613 in the PC Station with SIMATIC NET Configuration Console; assign an IP address on the same subnet as the S5 CP1430/CP143.
  4. Open Station Configuration Editor and add the OPC Server as a v6.4 application slot. Index 3 is typical for OPC DA.
  5. Launch SIMATIC NET Commissioning; create a new connection of type S5 - Communication. Set TSAP to 01.01 for the local side and the remote TSAP configured on the S5 CP1430 (typically 01.01).
  6. Define the read/write area using the S5 absolute address: DB 10 DW 0, length 100 words, transport type Job mode.
  7. Export the PC Station configuration and download to the CP1613. Restart the OPC Server service.
A CP1613 supports one S5 connection per logical slot; multiple S5 CPUs require multiple CP1613 cards or a Layer-3 topology with router hops. Confirm the S5 CP1430/CP143 firmware supports the active transport (RK512-FAST is supported on CP1430 TF variant v5.0+).

9. S5 Data Address Mapping for OPC Tag Configuration

When authoring OPC items, the canonical formats are:

// Generic AS511 OPC item syntax (vendor-specific)
S5:[CPU]"DB10"DW0    // 16-bit word, big-endian
S5:[CPU]"DB10"DD4    // 32-bit double word
S5:[CPU]"M"FW0       // flag word
S5:[CPU]"I"IB0       // input byte
S5:[CPU]"Q"QB0       // output byte
S5:[CPU]"T"T5        // timer word
S5:[CPU]"C"C7        // counter word

Word values are stored in big-endian (high byte at low address) on all S5 CPUs. OPC clients that read a 16-bit tag will receive the high byte first. Bit access uses DB10.DX0.0 (data bit) or M.X0.0 (flag bit).

S5 STEP5 Program Considerations

  • Data blocks must be opened with C DB 10 before access; an unopened DB returns 0 or triggers an OB23/OB24 error in the CPU.
  • Word boundaries in DW access are natural; DX (bit) access must align with the byte boundary (DX 0.0 through DX 0.7, then DX 1.0).
  • Timers run at the timebase defined in OB1 (10 ms, 100 ms, 1 s, 10 s) - confirm in the STEP5 program before exposing T values to SCADA logic.

10. Configuration Procedure: Sena LS100 + AS511 OPC Server

This procedure applies when a third-party OPC server with a generic AS511-over-COM driver is available (e.g., KEPware). For Softing or SIMATIC NET, jump to Sections 7 or 8.

10.1 Prerequisites

  • Sena LS100 with firmware 1.4+ (verify via web UI).
  • OPC server host running Windows 10/11 or Windows Server 2016+.
  • Sena VCOM driver v5.20 or later.
  • OPC server with AS511-over-COM driver license.
  • Null-modem or straight-through serial cable appropriate for the S5 PG port (S5-95U uses straight-through DB15-to-DB9; S5-115U/135U/155U PG ports vary - consult the CPU manual).

10.2 LS100 Network and Serial Configuration

  1. Connect a PC to the LS100 Ethernet port. Default IP is 192.168.16.1/24; set the PC to 192.168.16.100.
  2. Browse to http://192.168.16.1; log in with default credentials admin/admin.
  3. Network > IP Configuration: assign a static IP on the plant network, e.g., 192.168.10.50/24, gateway 192.168.10.1.
  4. Serial > Port Settings: set Baud = 9600, Data Bits = 8, Parity = Even, Stop Bits = 1, Flow Control = None. Match exactly to S5 AS511 defaults.
  5. Operation Mode: select VCOM. Note the TCP port (default 7000).
  6. Firewall: confirm UDP/TCP 7000 is permitted between the OPC server host and 192.168.10.50.

10.3 Windows VCOM Driver Installation

  1. Run the Sena VCOM installer. Reboot if prompted.
  2. Launch Sena VCOM Manager; click Add.
  3. Enter Remote Host 192.168.10.50, Port 7000, Description S5_PG_LS100.
  4. Assign an unused COM port number, e.g., COM17.
  5. Click Apply. The new COM17 appears in Device Manager under Ports (COM & LPT).

10.4 Verification Round-Trip

  1. Install STEP5 V7.x on the OPC server host (or a dedicated engineering PC).
  2. Launch PG-95 or STEP5 > File > Online > Set PG Interface; select COM17 at 9600/8E1.
  3. Attempt a Status read of the S5 CPU. A successful response confirms the LS100 + VCOM + S5 AS511 path is operational.
  4. Read a known tag (e.g., DB10 DW0) and confirm the value matches the PLC program.

10.5 OPC Server Tag Authoring

  1. In the OPC server configuration tool, create a new Channel of type S5/AS511 over Serial.
  2. Select COM17 at 9600/8E1.
  3. Create a Device named after the CPU, e.g., S5_95U_Station1.
  4. Add tags using the syntax from Section 9. Example for a 16-bit flag word: S5_95U_Station1.M.FW0.
  5. Set the default update rate to 500 ms; lower to 100 ms only for control-critical loops to avoid AS511 bus contention.
  6. Save and start the OPC DA server. Browse with an OPC DA client (e.g., Matrikon OPC Explorer) to confirm tags read.

11. Troubleshooting Matrix

Symptom Likely Cause Diagnostic Fix
STEP5 cannot connect to virtual COM port VCOM driver not bound, or wrong TCP port Sena VCOM Manager status; telnet 192.168.10.50 7000 from OPC host Re-add VCOM entry, confirm LS100 firmware >= 1.4
Connection succeeds but no response Serial wiring mismatch (RX/TX crossover needed) Loopback test on LS100 serial port Use null-modem cable between LS100 DB9 and S5 PG port
PG works, OPC server cannot connect OPC server does not support generic COM-based AS511 (Softing / SIMATIC NET) Confirm vendor adaptor is not required Switch to KEPware / IBH / CP1613 architectures
Intermittent timeout every 30 s AS511 keep-alive mismatch; LS100 TCP idle timeout Capture packet trace on port 7000 Set LS100 TCP idle timeout to 0 (disabled) or above OPC poll interval
Tags read but values are byte-swapped OPC client interprets as little-endian Compare DB DW0 raw bytes in STEP5 Enable byte-swap in OPC tag or use SWAP function block on S5 side
OPC server license rejected License bound to Softing/Siemens dongle Check vendor licensing model Use IBH Link UA (no per-CPU fee) or KEPware per-tag licensing
CPU returns OB23/OB24 error after OPC write Data block not opened in OB1 STEP5 cross-reference of C DB blocks Add C DB 10 in OB1 prior to OPC writes
S5-95U PG port locked by OPC server Single-master AS511; STEP5 session left open Disconnect from STEP5; verify COM17 released Close STEP5; confirm OPC server is sole owner of COM17

12. Verification and Commissioning

After commissioning, perform the following acceptance checks:

  1. Round-trip latency: read DB10.DW0 from the OPC client; record time stamp on both client and S5. AS511 over VCOM should achieve 50-200 ms per tag at 9600 bit/s.
  2. Sustained read: read 50 tags in a polling loop for 30 minutes; verify no timeouts and no CRC errors in LS100 logs.
  3. Write integrity: from the OPC client, write FW200 = 1234; verify on the S5 with PG that the value is stored.
  4. Failover check: disconnect the OPC server host from the LS100; confirm the OPC server logs a disconnection event within the configured deadband (default 10 s).
  5. Concurrent OPC and STEP5: keep STEP5 connected in monitor mode while OPC is running; verify neither blocks the other for more than the AS511 retry timeout (1 s typical).
Safety caveat: S5 controllers in service since the 1980s may have hardware faults (capacitor aging in power supplies, contact wear in relay outputs) that surface only under steady HMI polling. Verify CPU diagnostics (ISTACK, BSTACK in STEP5) before commissioning traffic. For safety-relevant signals, use a separate, hardwired path - never depend on a single OPC round-trip.

13. Migration Recommendation

Scenario Recommended Architecture
New OPC UA integration, modern SCADA/IIoT IBH Link UA - native OPC UA, no per-tag license, browser-based commissioning
Existing SIMATIC NET investment, OPC DA required CP1613 + SIMATIC NET S5-compatible - vendor-supported, no extra OPC license
Existing Sena LS100 hardware already in plant, OPC DA only LS100 + KEPware AS511 driver - keep installed base, add only the OPC license
Softing corporate standard, mixed S5/S7 fleet Softing OPC Server + Softing PB-PCI card - uniform toolchain
Softening vendor lock-in, brownfield migration to S7-1500 IBH Link UA as bridge during phased PLC replacement

14. Specifications Summary

Item Value
S5 AS511 default parameters 9600, 8E1, no flow control
AS511 max data per request 64 bytes payload
Sena LS100 default TCP port (VCOM) 7000
Sena LS100 default web UI http://192.168.16.1 (admin/admin)
IBH Link UA discovery URL opc.tcp://<ip>:48020
CP1613 S5 transport type RK512-compatible, fetch active / fetch passive / job mode
S5 word byte order Big-endian (high byte at low address)

Can the Softing S7/S5 OPC Server connect to a Sena LS100 over Ethernet?

No. The Softing S7/S5 OPC Server requires Softing-supplied adaptors (e.g., PB-PCI, PN-IO, S7-USB). It does not interoperate with a third-party serial device server such as the Sena LS100. For a Softing-compliant topology, replace the LS100 with a Softing PROFIBUS card or add a Softing-approved Ethernet-to-S5 gateway.

What OPC server works directly with the Sena LS100 and SIMATIC S5?

Use an OPC server with a generic AS511-over-COM driver, such as KEPware (S5/AS511 driver) or the historical Matrikon OPC Server for SIMATIC S5. The Sena LS100 is set to Virtual COM mode at 9600/8E1, and the OPC server is pointed at the resulting Windows COM port. Softing and SIMATIC NET are not compatible with this configuration.

How do I expose S5 data blocks through OPC UA without changing the PLC program?

Use the IBH Link UA. Connect the IBH Link UA to the S5 PG port via its serial interface, then browse the OPC UA endpoint at opc.tcp://<ip>:48020. The gateway exposes DB, M, I, Q, T, and C areas as OPC UA nodes without modifying STEP5. No per-tag licensing applies.

Why does PG traffic work over the Sena LS100 but the OPC server cannot connect?

STEP5 / PG-95 simply opens the COM port and exchanges raw AS511 frames, so the LS100's transparent byte-tunnel is sufficient. Vendor OPC servers (Softing, SIMATIC NET) require their own adaptor API and a licensing handshake that the LS100 cannot provide. This is a vendor-stack boundary, not a wiring fault.

What is the maximum number of tags I can poll from one S5 over AS511?

AS511 is single-master, request/response, with a 64-byte payload per telegram. At 9600 bit/s the theoretical ceiling is roughly 100 small tags per second; in practice with overhead, target 50 tags at 500 ms each. For larger tag counts, move to IBH Link UA (MPI mode), CP1613 (S5-compatible over IE), or migrate the S5 to S7-1500 with an ET 200S migration module.

Back to blog