Cimon.Net
1.0.0
dotnet add package Cimon.Net --version 1.0.0
NuGet\Install-Package Cimon.Net -Version 1.0.0
<PackageReference Include="Cimon.Net" Version="1.0.0" />
paket add Cimon.Net --version 1.0.0
#r "nuget: Cimon.Net, 1.0.0"
// Install Cimon.Net as a Cake Addin #addin nuget:?package=Cimon.Net&version=1.0.0 // Install Cimon.Net as a Cake Tool #tool nuget:?package=Cimon.Net&version=1.0.0
Cimon.Net
A .NET Library for Cimon PLCs Connectivity
About The Project
<p>CIMON-PLC is an industrial control device based on international standards of IEC61131. There are many tools and servers to work with PLCs and send/recieve data with them, but what if we want to use our application to communicate? I Couldn't find any library to work with Cimon PLCs, and actually I used them in many projects. So I decided to publish my library.</p>
Getting Started
1. Installing Cimon.Net
You can install Cimon.Net with NuGet Package Manager Console:
Install-Package Cimon.Net
Or via the .NET Core command-line interface:
dotnet add package Cimon.Net
Either commands, from Package Manager Console or .NET Core CLI, will download and install Cimon.Net and all required dependencies.
2. Defining your Connector
Create a Connector based on your connection type, You can choose between EthernetConnector
to support Ethernet TCP/UDP connection or SerialConnector
to support RS232C/RS485 serial interfaces.
EthernetConnector
usage sample for reading 10 bits from Input device memory X
address 000001:
var Plc = new EthernetConnector(new TcpSocket("192.168.1.10", 10620), true);
var (responseCode, data) = await Plc.ReadBitAsync(MemoryType.X, "000001", 10);
SerialConnector
usage sample for write 5 bits to Output device memory Y
address 000010:
var Plc = new SerialConnector(new SerialSocket("COM3", 9600), true);
await Plc.WriteBitAsync(MemoryType.Y, "000010", 1, 1, 1, 0, 1);
Documentation
Check the Wiki and feel free to edit it: https://github.com/MojtabaKiani/Cimon.Net/wiki
Supported PLCs
Complete range of Cimon PLC products including PLC-S
, CP
, XP
series
Compile
You need at least Visual Studio 2019 (you can download the Community Edition for free).
Running the tests
Unit tests use no devices and only work with Faked sockets, but You can test them with PLC only with address a real socket.
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. |
-
net5.0
- Ardalis.GuardClauses (>= 3.0.1)
- System.IO.Ports (>= 5.0.0)
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 |
---|---|---|
1.0.0 | 500 | 12/19/2020 |