2023-04-04 11:43:23 +00:00
|
|
|
using InnovEnergy.Lib.Devices.Trumpf.TruConvert;
|
2023-03-01 09:53:34 +00:00
|
|
|
using InnovEnergy.Lib.StatusApi;
|
|
|
|
using InnovEnergy.Lib.Units;
|
|
|
|
using InnovEnergy.Lib.Units.Composite;
|
|
|
|
using InnovEnergy.Lib.Utils;
|
2023-02-16 12:57:06 +00:00
|
|
|
|
|
|
|
namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertDc;
|
|
|
|
|
|
|
|
using AlarmMessages = IReadOnlyList<AlarmMessage>;
|
|
|
|
using WarningMessages = IReadOnlyList<WarningMessage>;
|
|
|
|
using DcCurrentLimitStates = IReadOnlyList<DcCurrentLimitState>;
|
|
|
|
|
2023-04-04 11:43:23 +00:00
|
|
|
public record TruConvertDcStatus : DcDcConverterStatus
|
2023-03-01 09:53:34 +00:00
|
|
|
{
|
2023-04-04 11:43:23 +00:00
|
|
|
public MainState MainState { get; init; }
|
|
|
|
public Power TotalDcPower { get; init; } // TODO: necessary?
|
|
|
|
public DcCurrentLimitStates StatusOfCurrentLimiting { get; init; }
|
|
|
|
public Decimal OverloadCapacity { get; init; }
|
|
|
|
public Temperature DcDcInletTemperature { get; init; }
|
|
|
|
public AlarmMessages Alarms { get; init; } = Array.Empty<AlarmMessage>();
|
|
|
|
public WarningMessages Warnings { get; init; } = Array.Empty<WarningMessage>();
|
|
|
|
public Boolean PowerOperation { get; init; }
|
|
|
|
public Decimal NumberOfConnectedSlaves { get; init; } // TODO: necessary?
|
|
|
|
public Decimal NumberOfConnectedSubSlaves { get; init; } // TODO: necessary?
|
|
|
|
}
|
|
|
|
// {
|
|
|
|
// public static TruConvertDcStatus operator |(TruConvertDcStatus left, TruConvertDcStatus right) => OpParallel(left, right);
|
|
|
|
// private static readonly Func<TruConvertDcStatus, TruConvertDcStatus, TruConvertDcStatus> OpParallel = Operators.Op<TruConvertDcStatus>("|");
|
|
|
|
// }
|