久久99精品视频一区97_亚洲a免费在线观看_美欧日韩av无码一区二区_国产精品视频123_东京热一本无码av_99精品国产闺蜜国产在线闺蜜

午夜339351
級別: 實(shí)習(xí)會員
精華主題: 0
發(fā)帖數(shù)量: 3 個
工控威望: 46 點(diǎn)
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
樓主  發(fā)表于: 2018-03-23 16:29
圖片:
采用MX COMPONENT 界面監(jiān)視軟元件狀態(tài),用的entryDeviceStatus指令,通訊界面提醒"超出索引"

       #region  "監(jiān)視元件狀態(tài)"
        private void btn_EntryDeviceStatus_Click(object sender, EventArgs e)
        {
            int iReturnCode;                //Return code
            String szDeviceName = "";        //List data for 'DeviceName'
            int iNumberOfData = 0;            //Data for 'DeviceSize'
            int iMonitorCycle = 0;            //Data for 'MonitorCycle'
            int[] arrDeviceValue;            //Data for 'DeviceValue'


            //Displayed output data is cleared.
            ClearDisplay();

            //Get the list of 'DeviceName'.
            //  Join each line(StringType array) of 'DeviceName' by the separator '\n',
            //  and create a joined string data.
            szDeviceName = String.Join("\n", txt_DeviceNameStatus.Lines);

            //Check the 'DeviceSize'.(If succeeded, the value is gotten.)
            if (!GetIntValue(txt_DeviceSizeStatus, out iNumberOfData))
            {
                //If failed, this process is end.
                return;
            }

            //Check the 'MonitorCycle'.(If succeeded, the value is gotten.)
            if (!GetIntValue(txt_MonitorCycleStatus, out iMonitorCycle))
            {
                //If failed, this process is end.
                return;
            }

            //Check the 'DeviceValue'.(If succeeded, the value is gotten.)
            arrDeviceValue = new int[iNumberOfData];
            if (!GetIntArray(txt_DeviceDataStatus, out arrDeviceValue))
            {
                //If failed, this process is end.
                return;
            }


            //
            //Processing of EntryDeviceStatus method
            //
            try
            {
                    //When ActUtlType is selected by the radio button,
                    //The EntryDeviceStatus method is executed.
                    iReturnCode = axActUtlType1.EntryDeviceStatus(szDeviceName,
                                                                    iNumberOfData,
                                                                    iMonitorCycle,
                                                                    ref arrDeviceValue[0]);
            }

            //Exception processing            
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, Name,
                                  MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            //The return code of the method is displayed by the hexadecimal.
            txt_ReturnCode.Text = String.Format("0x{0:x8} [HEX]", iReturnCode);
        }
        #endregion
午夜339351
級別: 實(shí)習(xí)會員
精華主題: 0
發(fā)帖數(shù)量: 3 個
工控威望: 46 點(diǎn)
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
1樓  發(fā)表于: 2018-03-23 16:30
各位大神求助!卡了半天了!!謝謝!
午夜339351
級別: 實(shí)習(xí)會員
精華主題: 0
發(fā)帖數(shù)量: 3 個
工控威望: 46 點(diǎn)
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
2樓  發(fā)表于: 2018-03-23 16:33
          

主站蜘蛛池模板: 成人国产免费观看 | 不卡的在线视频 | 日本免费网站看大片视频 | 高潮久久久久久久久久久久久久 | 亚洲三区欧美一区国产二区 | 精品人伦一区二区 | 国产在线一区视频播放 | 日本r级无打码中文 | 日产精品久久久久久久性色 | 国产小视频在线 | 国产精品99久久久精品免费观看 | 精品日产一区二区三区视频怎么看 | 绯色av蜜臀av| 免费在线观看的黄色网址 | 99精品国产99久久久久久福利 | 91精品国产乱码久 | 一级视频在线观看免费 | 日韩av中文字幕在线免费观看 | 91免费在线观看网站 | 韩日午夜在线资源一区二区 | 谍战剧《惊弦》免费观看高清 | 国产丰满老熟女一区二区三区 | 久久久亚洲成人 | 国产91在线免费 | 麻豆av在线播放 | 91tv官网精品成人亚洲 | 久久久久亚洲最大xxxx | 国产无吗一区二区三区在线欢 | 精品自拍av | 亚洲一区二区三区在线网站 | 不卡高清视频 | 影音先锋女人aa鲁色资源 | 久久久久久久久久久久99 | 欧美一二三区在线 | 日韩一区网站 | 奇米色欧美一区二区三区 | 黄色仓库入口免费 | 密臀久久| 日本一区二区免费高清 | 欧美日韩一区二区三区不卡 | 欧美日韩视频在线第一区 |