niuyx месяцев назад: 4
Родитель
Сommit
7ac8c346da
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      CyberX8_Simulator/Devices/FestoSocketSimulator.cs

+ 2 - 2
CyberX8_Simulator/Devices/FestoSocketSimulator.cs

@@ -17,9 +17,9 @@ namespace CyberX8_Simulator.Devices
         private const int FESTO_REGISTER_COUNT = 100;
         private IByteTransform byteTransform = new BigEndianByteTransformBase();
         /// <summary>
-        /// 数据字典(DO_address - data)
+        /// 数据(DO_address - data)
         /// </summary>
-        Dictionary<int, short> _festoOutputDataDic = new Dictionary<int, short>();
+        private short[] _festoOutputDataDic = new short[FESTO_REGISTER_COUNT];
 
         /// <summary>
         /// 构造函数