久久久国产一区-久久久国产一区二区三区丝-久久久国产一区二区三区丝袜-久久久国产综合视频-久久久精品白浆无码-久久久精品波多野结衣

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

       #region  "監視元件狀態"
        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
級別: 實習會員
精華主題: 0
發帖數量: 3 個
工控威望: 46 點
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
1樓  發表于: 2018-03-23 16:30
各位大神求助!卡了半天了!!謝謝!
午夜339351
級別: 實習會員
精華主題: 0
發帖數量: 3 個
工控威望: 46 點
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
2樓  發表于: 2018-03-23 16:33
          

主站蜘蛛池模板: 男人大JI巴做爰好爽视频 | 狠狠的干2014 | 美女扒开腿让男人桶视频在线观看 | 永久黄色免费网站 | 色天天综合久久久久综合片 | 麻豆小偷闯空门巧遇空 | 国产欧美一区二区三区高清视频 | 精品久久久久久久自慰 | 成年看免费观看视频拍拍 | 亚洲AV国产成人精品区三上悠亚 | 日韩中文永久免费观看电视剧 | 亚洲五月花 | 全黄H全肉短篇禁乱NP慕浅浅 | 亚洲一区二区三区无码中文字幕 | 丁香成人影院 | 亚洲av午夜福利精品香蕉 | 女自慰喷水免费观看www | 人妻 熟女 有码 中文 | 人妻不卡久久精品 | 亚洲成色www久久网站夜月 | 国产精品久久久久久久免费 | 欧美视频在线观看一 | 精品免费国产大片wwwwwwww | 日本MV在线观看永久免费 | 秋霞在线观看saoziba | 免费毛片内射视频 | 麻豆传煤官网入口免费进入 | 国产精品原创av在线播放 | 老师洗澡让我吃她胸的视频 | 久々久々久久女同 | 蜜月a 免费一区二区三区 | 精品人妻视频一区二区日韩 | 亚洲第一天堂 久久 | 香港aa三级久久三级不卡 | 人妻无码中文久久久久专区 | 白丝制服被啪到喷水很黄很暴力 | 高清日韩欧美另类 | 国产乱子轮xxx农村 国产乱子视频一区二区三 国产乱子影视频上 | 麻豆国产成人av在线播放 | 免费人妻无码中文系列精品 | 国产精品麻豆一区二区三区v视界 |