Licensed S7 communication library

Secure S7 access for C, C++ and C#.

TKHC-S7 combines a native C library with the TKHC.S7 wrapper for .NET 8. Build software that browses, reads and writes Siemens S7-1200 and S7-1500 data—including variables in optimized data blocks.

C# / .NET 8TKHC.S7.NET wrapper
C / C++TKHC-S7Native runtime and C API
S7-1200S7-1500including optimized data blocks

One runtime, two interfaces

Choose the API that fits your application.

The native library exposes a stable C API suitable for C and C++ integrations. The TKHC.S7 .NET wrapper brings the same runtime to modern C# applications with synchronous and asynchronous methods.

Native library

TKHC-S7 for C / C++

A native C API for licensing, connection management, data-block discovery, symbolic lookup and typed read/write operations.

#include <tkhc-s7/tkhc-s7.h>

tkhc_s7_client* client =
    tkhc_s7_client_create();

tkhc_s7_client_connect(
    client, plc_address, plc_port, 5000U
);

.NET wrapper

TKHC.S7 for C#

A .NET 8 wrapper with managed types, async operations and native runtime assets for supported Windows, Linux and macOS targets.

using TKHC.S7;

S7Client.SetLicense(licenseKey);
using var client = new S7Client();

await client.ConnectAsync(
    "192.168.0.10", port: 102
);

Capabilities

Practical PLC access for production software.

01

Secure PLC communication

Connect to S7-1200 and S7-1500 controllers with Secure PG/PC and HMI Communication enabled.

02

Browse and resolve symbols

Discover data blocks, browse their variables and resolve paths such as Production.Lines[2].Name.

03

Typed reads and writes

Work with individual values or batches, including scalars, strings, arrays, structures and binary data.

Product details

Delivered for your target environment.

TKHC-S7 is licensed software supplied directly for your application and deployment target. Contact TKH Software to discuss technical fit, supported platforms and the appropriate runtime license.

Discuss licensing
Target PLCs
Siemens S7-1200 and S7-1500
Interfaces
Native C API for C/C++; .NET 8 wrapper for C#
Data access
Symbolic variables and optimized data blocks
Licensing
Commercial TKHC-S7 runtime license