namespace MewtocolNet {
public enum CpuType {
}
public struct PLCInfo {
///
/// Current error code of the PLC
///
public string ErrorCode { get; internal set; }
///
/// Current station number of the PLC
///
public int StationNumber { get; internal set; }
}
///
/// Contains generic information about the plc
///
public class PLCInfoOld
{
///
/// Contains information about the PLCs cpu
///
public CpuInfo CpuInformation { get; set; }
///
/// Contains information about the PLCs operation modes
///
public PLCMode OperationMode { get; set; }
///
/// Current error code of the PLC
///
public string ErrorCode { get; set; }
///
/// Current station number of the PLC
///
public int StationNumber { get; set; }
///
/// Generates a string containing some of the most important informations
///
///
public override string ToString() {
return $"Type: {CpuInformation.Cputype},\n" +
$"Capacity: {CpuInformation.ProgramCapacity}k\n" +
$"CPU v: {CpuInformation.CpuVersion}\n" +
$"Station Num: {StationNumber}\n" +
$"--------------------------------\n" +
$"OP Mode: {(OperationMode.RunMode ? "Run" : "Prog")}\n" +
$"Error Code: {ErrorCode}";
}
}
}