2026-06-05 13:44:39 +09:00

34 lines
1016 B
C#

using Aurora.Api;
using Aurora.Api.Devices;
using PropertyTools.DataAnnotations;
using System.IO.Ports;
namespace AuroraCAS
{
public class CASConfig : IDeviceConfig
{
[DisplayName("Simulation Mode (this device)")]
public bool IsSimul { get; set; } = false;
public IConnConfig ConnConfig { get; set; }
////AuroraMachine에 있는 항목임.. 나중에 필요없으면 빼도 됨
[Category("Limit")]
public double LowLimit { get; set; } = 20;
public double HighLimit { get; set; } = 40;
//public double ErrorRange { get; set; } = 10;
//[Category("Communication")]
//public int SlaveAddress { get; set; } = 1;
//public bool BccEnable { get; set; } = true;
public CASConfig()
{
ConnConfig = new SerialConnConfig() {
BaudRate = 9600,
Parity = Parity.None,
StopBits = StopBits.Two,
DataBits = 8
};
}
}
}