32 lines
910 B
C#
32 lines
910 B
C#
namespace RIZO.Admin.WebApi.PLC.Model
|
|
{
|
|
public class PlcConfig
|
|
{
|
|
public string PlcName { get; set; }
|
|
public string Ip { get; set; }
|
|
public short Rack { get; set; } = 0;
|
|
public short Slot { get; set; } = 1;
|
|
}
|
|
|
|
public class GlobalPlcConfig
|
|
{
|
|
public int ConnectTimeout { get; set; } = 5000;
|
|
public int ReadWriteTimeout { get; set; } = 5000;
|
|
}
|
|
|
|
// PLC测试结果实体
|
|
public class PlcTestResult
|
|
{
|
|
public string PlcName { get; set; }
|
|
public string Ip { get; set; }
|
|
public bool ConnectSuccess { get; set; }
|
|
public string ConnectMessage { get; set; }
|
|
public bool ReadSuccess { get; set; }
|
|
public string ReadValue { get; set; }
|
|
public string ReadMessage { get; set; }
|
|
public bool WriteSuccess { get; set; }
|
|
public string WriteMessage { get; set; }
|
|
}
|
|
|
|
}
|