
2023/3/30 13:56
Home · S7NetPlus/s7netplus Wiki · GitHub
https://github.com/S7NetPlus/s7netplus/wiki
1/12
S7NetPlus / s7netplus
Public
Home
Jump to bottom
09try edited this page on May 8, 2022 · 37 revisions
S7.Net documentation
How to download s7.Net
The official repository is on GitHub (https://github.com/killnine/s7netplus), you can also download the library
directly from NuGet (https://www.nuget.org/packages/S7netplus/).
What is S7.Net
S7.Net is a plc driver that works only with Siemens PLC and only with Ethernet connection. This means that your
plc must have a Profinet CPU or a profinet external card (CPxxx card). S7.Net is written entirely in C#, so you can
debug it easily without having to go through native dlls.
Supported PLC
S7.Net is compatible with S7-200, S7-300, S7-400, S7-1200, S7-1500.
Getting started with S7.Net
To get started with S7.Net you have to download and include the S7.Net.dll in your project. You can do this by
downloading the NuGet package, or by downloading the sources and compile them.
Create a PLC instance, connect and disconnect
To create an instance of the driver you need to use this constructor:
cpu: this specify what CPU you are connecting to. The supported CPU are:
Code Issues 67 Pull requests 7 Actions Projects 2 Wiki Security Ins
public Plc(CpuType cpu, string ip, Int16 rack, Int16 slot)
public enum CpuType {
S7200 = 0,
S7300 = 10,
S7400 = 20,
S71200 = 30,