/Sally7

C# implementation of Siemens S7 connections with a focus on performance

Primary LanguageC#MIT LicenseMIT

Sally7

C# implementation of Siemens S7 connections with a focus on performance

license AppVeyor NuGet

What is the S7 protocol?

The S7 protocol is a proprietary protocol for PLC communication with and between Siemens S7 PLC's. It's making use of COTP (Connection Oriented Transport Protocol, ISO 8073 / RFC 905) and TPKT (ISO Transport Service on top of the TCP Version 3, RFC 1006). The S7 protocol uses ConnectionRequest (CC) and ConnectionConfirm (CR) from COTP for connection management and COTP DataTransfer (DT) to wrap S7 protocol functions. A good description is available at The Siemens S7 Communication - Part 1 General Structure and The Siemens S7 Communication - Part 2 Job Requests and Ack Data.

The implementation of Sally7

Sally7 supports the most basic read and write actions to the DataBlock area. All protocols are mapped to structs and enums with the intent to create a project that is easy to comprehend and extend.