Initial commit

This commit is contained in:
2026-07-03 16:37:12 +07:00
commit 63b8c1ea8b
1931 changed files with 640587 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
namespace RobotNet10.Script.IO;
/// <summary>
/// Interface for CC-Link IE connection operations.
/// </summary>
public interface ICcLinkIeConnection : IDisposable
{
/// <summary>
/// Gets the IP address of the CC-Link IE device.
/// </summary>
string IpAddress { get; }
/// <summary>
/// Gets the station number.
/// </summary>
int StationNumber { get; }
/// <summary>
/// Gets whether the connection is currently connected.
/// </summary>
bool IsConnected { get; }
/// <summary>
/// Connects to the CC-Link IE device.
/// </summary>
Task ConnectAsync();
/// <summary>
/// Disconnects from the CC-Link IE device.
/// </summary>
Task DisconnectAsync();
/// <summary>
/// Reads data from the CC-Link IE device.
/// </summary>
/// <param name="address">The memory address.</param>
/// <param name="length">The number of words to read.</param>
/// <returns>The read data as ushort array.</returns>
Task<ushort[]> ReadAsync(int address, int length);
/// <summary>
/// Writes data to the CC-Link IE device.
/// </summary>
/// <param name="address">The memory address.</param>
/// <param name="data">The data to write.</param>
Task WriteAsync(int address, ushort[] data);
}