hutongqing
2024-09-03 9ffd50c8ed26e0be4ccdb500f261132c19600e96
WIDESEAWCS_Server/WIDESEAWCS_Communicator/Siemens/SiemensDBDataType.cs
@@ -76,6 +76,12 @@
        public const string DataType_Char = "char";
        #endregion <Const>
        /// <summary>
        /// 根据西门子PLC的数据类型获取对应C#的类型编号枚举
        /// </summary>
        /// <param name="dataType">西门子PLC的数据类型</param>
        /// <returns>返回对应C#的类型编号枚举</returns>
        /// <exception cref="CommunicationException"></exception>
        public static TypeCode GetTypeCode(string dataType)
        {
            return dataType.ToLower() switch