Agito ltd. AAComm communication API
$ dotnet add package Agito.AACommAAComm is a C# .NET API for PC-to-Controller communications, supporting a wide range of .NET targets and Windows platforms.
AAComm provides a robust interface for communicating with motion controllers from .NET applications. It is designed for both high-level and low-level control, supporting multiple communication channels and controller types.
AAComm.dll, AACommServer.exe, AACommServerAPI.dllAAComm_Documentation.chm file.Install the NuGet package from nuget.org:
.dotnet add package Agito.AAComm
Or via the NuGet Package Manager in Visual Studio.
Note:
AACommServer.exeandAACommServerAPI.dllare automatically copied to your output directory when using the NuGet package. For manual referencing, copy these files explicitly.
Agito.AAComm NuGet package.AACommServer.exe and AACommServerAPI.dll are in your output directory, or specify the executable path when calling AAComm.StartAACommServer().Below is a minimal example demonstrating how to start the AAComm server, connect to a controller, and send/receive messages:
using AAComm;
using AAComm.Services;
using AAComm.Shared;
string aacs = CommAPI.StartAACommServer();
Console.WriteLine($"AACommServer started: {(string.IsNullOrEmpty(aacs) ? "OK" : aacs)}");
var api = new CommAPI();
var cd = new ConnectionData
{
ControllerType = ProductTypes.AGD200_AGC300_ID,
CommChannelType = ChannelType.Ethernet,
Rs232_PortName = "COM7",
};
var res = api.Connect(cd);
Console.WriteLine($"Connect Result: {res}");
if (res != ConnectResult.Success)
{
res = api.Connect(cd, true);
Console.WriteLine($"FORCE Connect Result: {res}");
if (res != ConnectResult.Success)
{
OnExit();
return;
}
}
var msgRes = api.SendReceive(new AACommMessage("APos"));
Console.WriteLine($"SYNC: APos = {msgRes.MsgReceived}");
api.Send(new AACommMessage(OnReceive, "APos"));
//wait for async response at OnReceive callback
OnExit();
api.Disconnect();
void OnExit()
{
Console.WriteLine("press any key to exit");
Console.ReadKey();
api.CloseAACommServer();
}
void OnReceive(object? sender, AACommEventArgs e)
{
Console.WriteLine($"ASYNC: APos = {e.MsgReceived}");
}Comprehensive API documentation is provided in the AAComm_Documentation.chm file included with the NuGet package.
See CHANGELOG.md for detailed release notes and version history.
This software is proprietary. All rights reserved. Contact Agito for licensing and usage terms.
For further information, consult the included documentation or contact Agito support.