hwh
2024-08-21 37c4da42e6bc67a0c40ef1d4f2527a5577f86a2e
Admin.NET/WCS.Application/Enum/PLCEnum.cs
@@ -44,4 +44,90 @@
    /// </summary>
    [Description("工位级别")]
    Station = 2,
}
/// <summary>
/// PLC枚举
/// </summary>
[Description("PLC枚举")]
public enum PLCEnum
{
    //未定义
    [Description("未定义")]
    None = 0,
    //西门子S7-200
    [Description("西门子S7-200")]
    S7_200 = 1,
    //西门子S7-200Smar
    [Description("西门子S7-200Smar")]
    S7_200Smart = 2,
    //西门子S7-300
    [Description("西门子S7-300")]
    S7_300 = 3,
    //西门子S7-400
    [Description("西门子S7-400")]
    S7_400 = 4,
    //西门子S7-1200
    [Description("西门子S7-1200")]
    S7_1200 = 5,
    //西门子S7-1500
    [Description("西门子S7-1500")]
    S7_1500 = 6,
    //ModBusTcp
    [Description("ModBusTcp")]
    ModBusTcp =7,
    //ModBusRtu
    [Description("ModBusRtu")]
    ModBusRtu = 8,
    //ModBusAscii
    [Description("ModBusAscii")]
    ModBusAscii = 9,
    //ModbusRtuOverTcp
    [Description("ModbusRtuOverTcp")]
    ModbusRtuOverTcp = 10,
    //三菱
    [Description("三菱")]
    Mitsubishi = 11,
    //欧姆龙
    [Description("欧姆龙")]
    OmronFins = 12,
    //罗克韦尔
    [Description("罗克韦尔")]
    AllenBradley = 13,
}
/// <summary>
/// PLC数据类型枚举
/// </summary>
[Description("PLC数据类型枚举")]
public enum PLCDataTypeEnum
{
    //Bit
    [Description("Bit")]
    Bit = 1,
    //Byte
    [Description("Byte")]
    Byte = 2,
    //Char
    [Description("Char")]
    Char = 3,
    //Word
    [Description("Word")]
    Word = 4,
    //DWord
    [Description("DWord")]
    DWord = 5,
    //Int
    [Description("Int")]
    Int = 6,
    //DInt
    [Description("DInt")]
    DInt = 7,
    //Real
    [Description("Real")]
    Real = 8,
    //LReal
    [Description("LReal")]
    LReal = 9,
    //String
    [Description("String")]
    String = 10,
}