Exemplo n.º 1
0
        /// <summary>
        /// 模式切换
        /// </summary>
        /// <param name="theCraneNO">行车号</param>
        /// <param name="cmdFlag">对应模式切换数值</param>
        private void SendShortCmd(string theCraneNO, long cmdFlag)
        {
            try
            {
                string messageBuffer = string.Empty;

                messageBuffer = theCraneNO + "," + cmdFlag.ToString();
                //DownLoadShortCommand
                Baosight.iSuperframe.TagService.DataCollection <object> wirteDatas = new Baosight.iSuperframe.TagService.DataCollection <object>();
                wirteDatas[theCraneNO + "_" + tag_CraneMode] = messageBuffer;
                tagDataProvider.SetData(theCraneNO + "_" + tag_CraneMode, messageBuffer);
            }
            catch (Exception ex)
            {
            }
        }