34 lines
854 B
C#
34 lines
854 B
C#
using Aurora.Api;
|
|
using Aurora.Api.Devices;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AuroraScale.CAS
|
|
{
|
|
public class CASScaleConfig : IDeviceConfig
|
|
{
|
|
public IConnConfig ConnConfig { get; set; }
|
|
public int MinValue { get; set; } = 0;
|
|
public int MaxValue { get; set; } = 1000;
|
|
|
|
public bool IsSiuml { get; set; } = false;
|
|
|
|
public CASScaleConfig()
|
|
{
|
|
ConnConfig = new SerialConnConfig()
|
|
{
|
|
PortNum = 8,
|
|
BaudRate = 9600,
|
|
Parity = System.IO.Ports.Parity.Odd,
|
|
StopBits = System.IO.Ports.StopBits.One,
|
|
DataBits = 8,
|
|
NewLine = "\n",
|
|
ReadRetryCount = 5
|
|
};
|
|
}
|
|
}
|
|
}
|