



Void ReadClass(object sourceClass, int db) Public byte ReadBytes(DataType dataType, int DB, int startByteAdr, int count) S7.Net exposes a class called Plc that contains all the methods that we can use to communicate with the plc: Lack of a function that permit to read/write multiple non-connected variables with a single request to the plc.ĭocumentation on the driver and S7 protocol.What it’s not good about S7.Net, roadmap for future upgrades: ĝid I already say that it’s written in C#, no interop at all?.It’s open source, MIT license permit you to use it in every commercial application.It is easy to use, well written and perfectly readable.The types of C# are mapped into types of S7 and there are converters for every type (double to REAL, int to DEC, etc).Ĝan directly map DBs to classes and structs.Ĝan read and write bytes from a single area of memory, given a starting address and the number of bytes.Ĝan connect and disconnect with the plc using sockets.S7.Net is a plc driver written in C#, this means that you don’t have to handle any interoperability with native code, but it just use OO programming and all the. Why S7.Net: features and capabilities of the driver Getting started with S7.Net (how to compile and add the driver in a C# application).Documentation on the driver and S7 protocol.Why S7.Net: features and capabilities of the driver.In this article I explain how to implement a Siemens S7 plc driver by using the open source driver S7.Net.
