27 lines
762 B
C#
27 lines
762 B
C#
using Aurora.Api;
|
|
using Aurora.Api.Devices;
|
|
|
|
namespace AuroraLaser.Amplitude
|
|
{
|
|
public class LaserSatsumaConfig : IDeviceConfig
|
|
{
|
|
public IConnConfig ConnConfig { get; set; }
|
|
public int RetryCount { get; set; } = 5;
|
|
public int ScanIntervalMS { get; set; } = 100;
|
|
|
|
public LaserSatsumaConfig()
|
|
{
|
|
ConnConfig = new ModbusTcpIpConnConfig();
|
|
|
|
(ConnConfig as ModbusTcpIpConnConfig).Address.IpAddress = "127.0.0.1";
|
|
(ConnConfig as ModbusTcpIpConnConfig).Address.PortNumber = 502;
|
|
(ConnConfig as ModbusTcpIpConnConfig).Slave = 1;
|
|
}
|
|
|
|
public static LaserSatsumaConfig GetDefaultConfig()
|
|
{
|
|
return new LaserSatsumaConfig();
|
|
}
|
|
}
|
|
}
|