public void ResetReadMark(PLCCom _Com)
 {
     try
     {
         CommUtil.SetDevice(0, ReadMarkDevice, _Com);
         Log.Info("重设读取标志成功.");
     }
     catch (System.Exception ex)
     {
         Log.Error("重设读取标志失败.", ex);
     }
 }
        /// <summary>
        /// set amount to device
        /// </summary>
        /// <param name="_Amount"></param>
        /// <param name="_Com"></param>
        public void SetAmount(short _Amount, PLCCom _Com)
        {
            try
            {
                Amount = _Amount;

                CommUtil.SetDevice(Amount, AmountDevice, _Com);
                Log.Info(String.Format("数量写入成功. 软元件地址:[{0}]. 数量:[{1}].", AmountDevice, Amount));
            }
            catch (System.Exception ex)
            {
                Log.Error("数量写入失败.", ex);
            }
        }