This commit is contained in:
@@ -12,8 +12,8 @@ namespace AciTester.Models
|
||||
public class PlcConfiguration
|
||||
{
|
||||
// ========== 网络连接参数 ==========
|
||||
public string IpAddress { get; set; } // PLC IP 地址
|
||||
public int Port { get; set; } // Modbus TCP 端口
|
||||
public string IpAddress { get; set; } = "192.168.1.10"; // PLC IP 地址
|
||||
public int Port { get; set; } = 502; // Modbus TCP 端口
|
||||
public byte SlaveId { get; set; } = 1; // 从站地址(默认1)
|
||||
|
||||
// 以下属性用于与上位机交互(但实际按工位读取,此处保留兼容)
|
||||
@@ -32,10 +32,10 @@ namespace AciTester.Models
|
||||
public ushort PressureRegisterStation2 { get; set; } // 工位2
|
||||
public ushort PressureRegisterStation3 { get; set; } // 工位3
|
||||
|
||||
public ushort ValveCoil { get; set; } = 5; // 假设 M5 对应线圈地址 5
|
||||
|
||||
|
||||
|
||||
public ushort PumpCoil { get; set; } // 高压超限 M180
|
||||
public ushort PumpCoil { get; set; } = 6; // 高压超限 M180
|
||||
|
||||
|
||||
public ushort FlowRegister { get; set; } // 高压超限 M180
|
||||
|
||||
Reference in New Issue
Block a user