Sally7 0.14.7
dotnet add package Sally7 --version 0.14.7
NuGet\Install-Package Sally7 -Version 0.14.7
<PackageReference Include="Sally7" Version="0.14.7" />
paket add Sally7 --version 0.14.7
#r "nuget: Sally7, 0.14.7"
// Install Sally7 as a Cake Addin #addin nuget:?package=Sally7&version=0.14.7 // Install Sally7 as a Cake Tool #tool nuget:?package=Sally7&version=0.14.7
Sally7
C# implementation of Siemens S7 connections with a focus on performance
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 struct
s and enum
s with the intent to create a project that is easy to comprehend and extend.
How to get started
Connect to a PLC
Connect to a S7-1500 PLC at adress 192.168.0.15 on Rack 0, Slot 1
var connection = Sally7.Plc.ConnectionFactory.GetConnection(host: "192.168.0.15", cpuType: Sally7.Plc.CpuType.S7_1500, rack: 0, slot: 1);
await connection.OpenAsync();
Read a DataBlockDataItem
Read 10 bytes from DataBlock 87 starting at address 54
var dataItem = new DataBlockDataItem<byte[]>
{
DbNumber = 87,
Length = 10,
StartByte = 54
};
await connection.ReadAsync(dataItem);
Console.WriteLine($"Read data: {BitConverter.ToString(dataItem.Value)}");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net46 is compatible. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6
- System.Memory (>= 4.5.4)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
- System.Threading.Channels (>= 5.0.0)
-
.NETFramework 4.6.1
- System.Memory (>= 4.5.4)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
- System.Threading.Channels (>= 5.0.0)
-
.NETStandard 2.0
- System.Memory (>= 4.5.4)
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
- System.Threading.Channels (>= 5.0.0)
-
.NETStandard 2.1
- System.Runtime.CompilerServices.Unsafe (>= 5.0.0)
- System.Threading.Channels (>= 5.0.0)
-
net5.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.14.7 | 100 | 10/21/2024 |
0.14.6 | 459 | 3/12/2024 |
0.14.4 | 207 | 2/12/2024 |
0.14.3 | 309 | 11/30/2023 |
0.14.2 | 338 | 5/9/2023 |
0.14.1 | 154 | 5/9/2023 |
0.14.0 | 158 | 5/9/2023 |
0.13.0 | 814 | 2/3/2022 |
0.12.0 | 373 | 11/3/2021 |
0.10.0 | 978 | 6/30/2021 |
0.9.0 | 474 | 3/26/2021 |
0.8.0 | 668 | 1/4/2021 |
0.7.1 | 2,571 | 8/18/2019 |
0.7.0 | 695 | 5/20/2019 |
0.6.0 | 621 | 5/9/2019 |
0.5.0 | 786 | 10/29/2018 |
0.4.0 | 932 | 8/20/2018 |
0.3.1 | 1,037 | 7/10/2018 |
0.3.0 | 927 | 7/6/2018 |
0.2.0 | 931 | 7/1/2018 |
0.1.1 | 989 | 6/25/2018 |
0.1.0 | 938 | 6/25/2018 |