2026-01-26 14:51:28 +09:00

42 lines
1.2 KiB
C#

using Aurora.Api;
using Aurora.Api.Devices;
using PropertyTools.DataAnnotations;
using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AuroraChiller
{
public class SmcChillerConfig : IDeviceConfig
{
public IConnConfig ConnConfig { get; set; }
[Category("Chiller Type")]
[SelectorStyle(SelectorStyle.ComboBox)]
public eChillerType Type { get; set; } = eChillerType.HRL;
//AuroraMachine에 있는 항목임.. 나중에 필요없으면 빼도 됨
[Category("Alarm")]
public double TargetTemp { get; set; } = 20;
public double WarningRange { get; set; } = 5;
public double ErrorRange { get; set; } = 10;
[Category("Communication")]
public int SlaveAddress { get; set; } = 1;
public bool BccEnable { get; set; } = true;
public SmcChillerConfig()
{
ConnConfig = new SerialConnConfig()
{
BaudRate = 9600,
Parity = Parity.None,
StopBits = StopBits.Two,
DataBits = 8
};
}
}
}