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 leak_test_project.Models
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DIO 보드의 개별 포인트(입력 또는 출력)를 나타내는 모델.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DioPoint
|
|
|
|
|
{
|
|
|
|
|
/// <summary>포인트 이름 (예: LEFT_START, LEFT_OK, RIGHT_NG)</summary>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>설명 (예: 좌측 시작 신호)</summary>
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>true: 입력, false: 출력</summary>
|
|
|
|
|
public bool IsInput { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>현재 값 (ON=true, OFF=false)</summary>
|
|
|
|
|
public bool Value { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>하드웨어 IO 포트의 실제 비트 인덱스 (0~31)</summary>
|
|
|
|
|
public int BitIndex { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DIO 입력 변경 시 사용되는 이벤트 인자.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DioEventArgs : System.EventArgs
|
|
|
|
|
{
|
|
|
|
|
public string PointName { get; set; }
|
|
|
|
|
public bool NewValue { get; set; }
|
|
|
|
|
|
|
|
|
|
public DioEventArgs(string pointName, bool newValue)
|
|
|
|
|
{
|
|
|
|
|
PointName = pointName;
|
|
|
|
|
NewValue = newValue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|