66 lines
2.8 KiB
C#
66 lines
2.8 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 HardnessMax { get; set; }
|
|
public ushort HardnessStartCoil { get; set; }
|
|
public ushort HardnessStartReset { get; set; }
|
|
public ushort HardnessStartStop { get; set; }
|
|
|
|
public ushort HardnessSudu { get; set; }
|
|
public ushort HardnessWeiyi { get; set; }
|
|
|
|
public ushort HardnessForward { get; set; }
|
|
public ushort HardnessBack { get; set; }
|
|
|
|
public ushort HardnessShishilizhi { get; set; }
|
|
// 兼容旧代码:硬度完成线圈与溶出或硬度实时值寄存器地址
|
|
public ushort HardnessCompleteCoil { get; set; }
|
|
public ushort HardnessPoSun { 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 DisintegrationStopCoil { get; set; }
|
|
public ushort DisintegrationResetCoil { get; set; }
|
|
public ushort DisintegrationSpeed { get; set; }
|
|
public ushort DisintegrationTime { get; set; }
|
|
public ushort[] DisintegrationCompleteCoils { get; set; } = new ushort[6];
|
|
|
|
// 溶出
|
|
public ushort DissolutionRpm { get; set; }
|
|
public ushort DissolutionPercent { get; set; }
|
|
public ushort Dissolution1Percent { get; set; }
|
|
public ushort Dissolution2Percent { get; set; }
|
|
public ushort DissolutionStartCoil { get; set; }
|
|
public ushort Dissolution1StartCoil { get; set; }
|
|
public ushort Dissolution1StopCoil { get; set; }
|
|
public ushort Dissolution1ResetCoil { get; set; }
|
|
public ushort Dissolution1SampleAckCoil { get; set; }
|
|
public ushort Dissolution2StartCoil { get; set; }
|
|
public ushort Dissolution2StopCoil { get; set; }
|
|
public ushort Dissolution2ResetCoil { get; set; }
|
|
public ushort Dissolution2SampleAckCoil { get; set; }
|
|
public ushort Dissolution1Time { get; set; }
|
|
public ushort Dissolution2Time { get; set; }
|
|
public ushort Dissolution1SampleInterval { get; set; }
|
|
public ushort Dissolution2SampleInterval { get; set; }
|
|
}
|
|
}
|