Files
VacuumPressureMembranePoreS…/Helpers/PlcConfiguration.cs
2026-02-27 16:58:02 +08:00

27 lines
762 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace MembranePoreTester.Communication
{
public class PlcConfiguration
{
public string IpAddress { get; set; }
public int Port { get; set; }
public byte SlaveId { get; set; } = 1; // 从站地址默认1
public ushort PressureRegister { get; set; }
public ushort WetFlowRegister { get; set; }
public ushort DryFlowRegister { get; set; }
public double PressureFactor { get; set; } = 1.0;
public double WetFlowFactor { get; set; } = 1.0;
public double DryFlowFactor { get; set; } = 1.0;
}
public interface IPlcService
{
Task<float> ReadPressureAsync();
Task<float> ReadWetFlowAsync();
Task<float> ReadDryFlowAsync();
}
}