Enum Tipleri

NightWatch konfigürasyonu içinde ve hedef sistemlere json formatında gönderilen makine, sensör ve alarm verisi içinde bazı değerler doğrudan bu sayfada listelenen enum tiplerinin değerlerini (string olarak) barındırır.

DataCollectorTypes

NightWatch konfigürasyon tipleri.

public enum DataCollectorTypes
{
    ModbusTcp = 10,
    OpcUA = 20,
    OpcDA = 30,    
    IoBox = 40,
    PlcS7 = 50,
    SerialCom = 60,
    LibPlc = 70,
    MqBroker= 80,
}

SinkTypes

NightWatch sink tipleri. Hedef sistemin tipini belirler.

public enum SinkTypes
{
    None=0,
    MQTT=1,
    RabbitMQ=2,
    Redis=3,
    Database=4,
    DcasEnergy=5,
    WebHook=6,
    OpcUa=7,
    DcasPanel=8,
    Influx2=9,
    EasyThingsData=10,
}

SinkKinds

NightWatch sink türleri. Tanımlanan sink'in hangi amaçla kullanılacağını belirler.

public enum SinkKinds
{
    [Code("integration")]
    Integration,
    [Code("alert")]
    Alert
}

ChannelTypes

NightWatch kanal tipleri. Hedef kanalın tipini belirler.

public enum ChannelTypes
{
    /// <summary>
    /// Default value. This value is not processed 
    /// </summary>
    None = 0,

    /// <summary>
    /// Email channel
    /// </summary>
    EMail = 1,

    /// <summary>
    /// Telegram channel
    /// </summary>
    Telegram = 2,
}

SupportedDatabases

Database sinkinin veri tabanı tipini belirler.

public enum SupportedDatabases
{
    pgsql,
    mssql,
    sqlite,
    mysql,
}

NwInfluxLogLevel ve NwInfluxAuthenticationScheme

InfluxDB sinkinin log seviyesi ve kimlik doğrulama tipini belirler.

public enum NwInfluxLogLevel
{
    None,
    Basic,
    Headers,
    Body
}

public enum NwInfluxAuthenticationScheme
{
    Anonymous,
    Session,
    Token
}

ReadingPublishTypes

NightWatch makine ve sensör veri formatları. Bu değerler, dış sistemlere gönderilen json verinin şemasını belirler.

public enum ReadingPublishTypes
{
    [Code("device_asis")]
    Device_AsIs,
    [Code("device_flat")]
    Device_Flat,
    [Code("device_byunit")]
    Device_GroupedByUnit,
    [Code("unit_flat")]
    Unit_Flat,
    [Code("unit_asis")]
    Unit_AsIs,
}

AlertPublishTypes

NightWatch alarm veri formatları. Bu değerler, dış sistemlere gönderilen json alarm verisinin şemasını belirler.

public enum AlertPublishTypes
{
    [Code("alert_permessage")]
    PerAlertMessage,
    [Code("alert_grouped_byunit")]
    GroupedByUnitMessages
}

AlertTriggerTypes

Alarm tanımınlarında alarm koşulunu belirleyen değerler.

public enum AlertTriggerTypes
{
    /// <summary>
    /// Alert is triggered when the value is greater than or equal to the threshold value
    /// </summary>
    ValueAbove,

    /// <summary>
    /// Alert is triggered when the value is less than or equal to the threshold value
    /// </summary>
    ValueBelow,

    /// <summary>
    /// Alert is triggered when no value is present for the specified duration
    /// </summary>
    NoValue,

    /// <summary>
    /// Alert is triggered when value does not change for the specified duration
    /// </summary>
    NoChange
}

LibPlcProtocols

Mitsubishi PLC, Omron PLC, Rockwell PLC, Allan-Bradley PLC için kullanılan protokol tipi.

public enum LibPlcProtocols
{
    /// <summary>
    /// Allen-Bradley specific flavor of EIP
    /// </summary>
    ab_eip = 0,

    /// <summary>
    /// A Modbus TCP implementation used by many PLCs
    /// </summary>
    modbus_tcp = 1
}

LibPlcTypes

public enum LibPlcTypes
{
    /// <summary>
    /// Control Logix-class PLC. Synonym for lgx, logix, controllogix, contrologix, compactlogix,clgx.
    /// </summary>
    ControlLogix = 0,

    /// <summary>
    /// PLC/5 PLC. Synonym for plc5, plc.
    /// </summary>
    Plc5 = 1,

    /// <summary>
    /// SLC 500 PLC. Synonym for slc500, slc.
    /// </summary>
    Slc500 = 2,

    /// <summary>
    /// Control Logix-class PLC using the PLC/5 protocol. Synonym for lgxpccc, logixpccc,lgxplc5, lgx_pccc, logix_pccc, lgx_plc5.
    /// </summary>
    LogixPccc = 3,

    /// <summary>
    /// Micro800-class PLC. Synonym for micrologix800, mlgx800, micro800.
    /// </summary>
    Micro800 = 4,

    /// <summary>
    ///  MicroLogix PLC. Synonym for micrologix, mlgx.
    /// </summary>
    MicroLogix = 5,

    /// <summary>
    /// Omron PLC. Synonym for omron-njnx, omron-nj, omron-nx, njnx, nx1p2
    /// </summary>
    Omron = 6

}

MqBrokerTypes

public enum MqBrokerTypes
{
    None = 0,
    Mqtt = 10,
    Rabbit = 20,
    Redis = 30,
}

NwSerialPortParity ve NwSerialPortStopBits

public enum NwSerialPortParity
{
    None,
    Odd,
    Even,
    Mark,
    Space
}

public enum NwSerialPortStopBits
{
    None,
    One,
    Two,
    OnePointFive
}

PlcCpuTypes ve PlcDataTypes

public enum PlcCpuTypes
{
    S7200 = 0,
    S7300 = 10,
    S7400 = 20,
    S71200 = 30,
    S71500 = 40,
}

public enum PlcDataTypes
{
    None = 0,
    Input = 129,
    Output = 130,
    Memory = 131,
    DataBlock = 132,
    Timer = 29,
    Counter = 28
}

NwDataTypes

NightWatch makine ve sensör veri tipleri. Bu değerler, dış sistemlerden gelen verilerin tipini belirler.

public enum NwDataTypes
{
    ///<summary>
    /// Maps to byte (unsigned 8 bit integer)
    ///</summary>
    [NumberOfPoints(1)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.ModbusTcp, ClrType = typeof(byte))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(byte))]
    U8,

    ///<summary>
    /// Maps to ushort 
    ///</summary>
    [NumberOfPoints(1)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.ModbusTcp, ClrType = typeof(ushort))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(ushort))]
    U16,

    ///<summary>
    /// Maps to uint 
    ///</summary>
    [NumberOfPoints(2)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.ModbusTcp, ClrType = typeof(uint))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(uint))]
    U32,

    /// <summary>
    /// Maps to int
    /// </summary>
    [NumberOfPoints(2)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.ModbusTcp, ClrType = typeof(int))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(int))]
    S32,

    /// <summary>
    /// Maps to short
    /// </summary>
    [NumberOfPoints(1)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.ModbusTcp, ClrType = typeof(short))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(short))]
    S16,

    /// <summary>
    /// Maps to unsigned long integer (64 bit)
    /// </summary>
    [NumberOfPoints(4)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.ModbusTcp, ClrType =typeof(ulong))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(ulong))]
    UL,

    /// <summary>
    /// Signed 32 bit float
    /// </summary>
    [NumberOfPoints(2)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.ModbusTcp)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(float))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(float))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(float))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(float))]
    Float,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(bool))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(bool))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.IoBox, ClrType = typeof(bool))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(bool))]
    Boolean,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(sbyte))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(sbyte))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(sbyte))]
    SByte,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(byte))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(byte))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(byte))]
    Byte,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(short))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(short))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(short))]
    Int16,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(ushort))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(ushort))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(ushort))]
    UInt16,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(int))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(int))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(int))]
    Int32,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(uint))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(uint))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(uint))]
    UInt32,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(long))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(long))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(long))]
    Int64,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(ulong))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(ulong))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(ulong))]
    UInt64,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(double))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(double))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.IoBox, ClrType = typeof(double))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(double))]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.SerialCom, ClrType = typeof(double))]
    Double,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(DateTime), IsVariant = true)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(DateTime), IsVariant = true)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(DateTime), IsVariant = true)]
    DateTime,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(string), IsVariant =true)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcDA, ClrType = typeof(string), IsVariant =true)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.IoBox, ClrType = typeof(string), IsVariant = true)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(string), IsVariant = true)]
    String,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.OpcUA, ClrType = typeof(Guid), IsVariant = true)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.MqBroker, ClrType = typeof(Guid), IsVariant = true)]
    Guid,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(bool))]
    Bit_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(byte))]
    Byte_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(Int16))]
    Word_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(Int32))]
    DWord_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(Int16))]
    Int_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(Int32))]
    DInt_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(float))]
    Real_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(double))]
    LReal_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(string), IsVariant = true)]
    String_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(string), IsVariant = true)]
    S7String_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(string), IsVariant = true)]
    S7WString_S7,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(uint))]
    Timer_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(ushort))]
    Counter_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(DateTime), IsVariant = true)]
    DateTime_S7,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.PlcS7, ClrType = typeof(DateTime), IsVariant = true)]
    DateTimeLong_S7,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(bool))]
    Bool_AB,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(bool[]))]
    BoolArray_AB,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(sbyte))]
    SInt_AB,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(sbyte[]))]
    SIntArray_AB,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(int))]
    DInt_AB,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(int[]))]
    DIntArray_AB,


    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(long))]
    LInt_AB,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(long[]))]
    LIntArray_AB,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(float))]
    Real_AB,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(float[]))]
    RealArray_AB,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(string), IsVariant = true)]
    String_AB,

    [NumberOfPoints(0)]
    [DataCollectorType(DataCollectorType = DataCollectorTypes.LibPlc, ClrType = typeof(string[]), IsVariant =true)]
    StringArray_AB,

}