40 lines
1.5 KiB
C#
40 lines
1.5 KiB
C#
namespace TabletTester2025.Models
|
|
{
|
|
public class PlcConfiguration
|
|
{
|
|
public string IpAddress { get; set; }
|
|
public int Port { get; set; }
|
|
public byte SlaveId { get; set; }
|
|
|
|
// 硬度
|
|
public ushort HardnessValue { get; set; }
|
|
public ushort HardnessStartCoil { get; set; }
|
|
public ushort HardnessStartCoil2 { get; set; }
|
|
public ushort HardnessStartCoil3 { get; set; }
|
|
public ushort HardnessCompleteCoil { get; set; }
|
|
public ushort HardnessStartReset { get; set; }
|
|
public ushort HardnessStartStop { get; set; }
|
|
|
|
// 脆碎度
|
|
public ushort FriabilityStartCoil { get; set; }
|
|
public ushort WeightBefore { get; set; } // 天平重量寄存器(可选)
|
|
public ushort WeightAfter { get; set; }
|
|
public ushort FriabilityStartCoil2 { get; set; }
|
|
public ushort FriabilityStartCoil3 { get; set; }
|
|
|
|
public ushort FriabilityStartCoilStop { get; set; }
|
|
public ushort FriabilityStartCoilReset { get; set; }
|
|
|
|
|
|
// 崩解
|
|
public ushort DisintegrationTemp { get; set; }
|
|
public ushort DisintegrationMovingUpCoil { get; set; }
|
|
public ushort DisintegrationStartCoil { get; set; }
|
|
public ushort[] DisintegrationCompleteCoils { get; set; } = new ushort[6];
|
|
|
|
// 溶出
|
|
public ushort DissolutionRpm { get; set; }
|
|
public ushort DissolutionPercent { get; set; }
|
|
public ushort DissolutionStartCoil { get; set; }
|
|
}
|
|
} |