Kolver.Kducer 0.1.0-beta1

Prefix Reserved
This is a prerelease version of Kolver.Kducer.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Kolver.Kducer --version 0.1.0-beta1                
NuGet\Install-Package Kolver.Kducer -Version 0.1.0-beta1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kolver.Kducer" Version="0.1.0-beta1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kolver.Kducer --version 0.1.0-beta1                
#r "nuget: Kolver.Kducer, 0.1.0-beta1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Kolver.Kducer as a Cake Addin
#addin nuget:?package=Kolver.Kducer&version=0.1.0-beta1&prerelease

// Install Kolver.Kducer as a Cake Tool
#tool nuget:?package=Kolver.Kducer&version=0.1.0-beta1&prerelease                

nuget kolver.kducer package

This library allows you to interface with a Kolver K-Ducer torque driving system without having to worry about the underlying Modbus TCP protocol. You can obtain tightening results, enable/disable the screwdriver, and run the screwdriver remotely (read the manual and always follow all safety precautions before running the screwdriver from the library). It's compatible with .NET standard 2.0 (backwards compatible with .NET framework) Brought to you by Kolver www.kolver.com

Usage

Instantiate a client

// create a Kducer client. The cyclic async communication loop is started automatically in the background. You can optionally pass a ILoggerFactory for logging.
Kducer kdu = new Kducer("192.168.32.103", NullLoggerFactory.Instance);
// kdu.Dispose(); // call Dispose when done using, to stop the Modbus TCP communication loop and close the connection
// print a tightening result using async/await. You can optionally pass a CancellationToken to stop the task.
KducerTighteningResult lastesTightening = await kdu.GetResultAsync(CancellationToken.None);
Console.WriteLine($"{lastesTightening.GetResultTimestamp()} - The torque was {lastesTightening.GetTorqueResult()} cNm and the angle was {lastesTightening.GetAngleResult()} degrees");
// print a tightening result without using async/await
while (true)
{
    Thread.Sleep(1000); // some work being done by your app

    if (kdu.HasNewResult())
    {
        KducerTighteningResult latestResult = kdu.GetResult();
        Console.WriteLine($"{latestResult.GetResultTimestamp()} - The torque was {latestResult.GetTorqueResult()} cNm and the angle was {latestResult.GetAngleResult()} degrees");
        break;
    }
}

Select a program on the K-Ducer controller

// select a program on the KDU controller
try
{
    await kdu.SelectProgramNumberAsync(60); // select programn number 60
}
catch (ModbusException)
{
    // the KDU controller was not ready to accept the new program
    // for example if the screwdriver was running when you issued the command
    throw;
}
catch (SocketException)
{
    // exception on underlying TCP connection (cable physically disconnected, power loss...)
    throw;
}

Automatically disable (lock) the screwdriver after receiving a result

// LockScrewdriverIndefinitelyAfterResult
kdu.LockScrewdriverIndefinitelyAfterResult(true); // with this option, kdu will automatically disable the screwdriver after a new result is detected
KducerTighteningResult result = await kdu.GetResultAsync(CancellationToken.None);
// now the screwdriver is disabled and the operator cannot use it
// use EnableScrewdriver() to re-enable it:
await kdu.EnableScrewdriver();

Roadmap

Future features:

  • support for changing tightening program parameters
  • support for KDU-NT series controller

License

MIT License

Copyright (c) 2024 Kolver Srl www.kolver.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 was computed. 
.NET Framework net461 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.4.0 122 10/22/2024
0.3.2 105 8/2/2024
0.3.1 100 7/23/2024
0.3.0 166 7/8/2024
0.2.0-rc 127 6/7/2024
0.1.0-beta1 177 3/20/2024

first beta public release