You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
namespace Mirle.Component.MPLC.Interfaces { /// <summary>
/// MIRLE PLC 資料提供介面
/// </summary>
public interface IMPLCProvider { /// <summary>
/// 是否連線
/// </summary>
bool IsConnected { get; } /// <summary>
/// 取得位元
/// </summary>
/// <param name="address">位置</param>
/// <returns>True/False</returns>
bool GetBit(string address); /// <summary>
/// 設置位元開啟
/// </summary>
/// <param name="address">位置</param>
/// <returns>True/False</returns>
void SetBitOn(string address); /// <summary>
/// 設置位元關閉
/// </summary>
/// <param name="address">位置</param>
/// <returns>True/False</returns>
void SetBitOff(string address); /// <summary>
/// 讀取字元
/// </summary>
/// <param name="address">位置</param>
/// <returns>值</returns>
int ReadWord(string address); /// <summary>
/// 寫入字元
/// </summary>
/// <param name="address">位置</param>
/// <param name="data">值</param>
void WriteWord(string address, int data); /// <summary>
/// 讀取多個字元
/// </summary>
/// <param name="startAddress">起始位置</param>
/// <param name="length">長度</param>
/// <returns>資料集</returns>
int[] ReadWords(string startAddress, int length); /// <summary>
/// 寫入多個字元
/// </summary>
/// <param name="startAddress">起始位置</param>
/// <param name="data">資料集</param>
void WriteWords(string startAddress, int[] data); } }
|