日韩精品一区高清|国产情侣作爱视频免费观看|激情欧美亚洲一区|亚洲亚洲精品av在线动态图|欧美一区 欧美二区

午夜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
          

主站蜘蛛池模板: 精品无码国模私拍视频| 在线观看视频第一区| 亚洲国产精品无码中文在线| 亚洲精品久久久久69影院| 任你躁在线精品免费| 成人毛片无码免费播放网站| 久久久精品人妻一区亚美研究所| 久久国产一区二区三区| 亚洲日产韩国一二三四区| 国产一区二区三区精品不卡| 国产看真人毛片爱做a片| 久久精品国产久精国产69 | 一本大道无码人妻精品专区| 日韩亚洲国产中文永久| 在线观看免费人成视频色9| 午夜亚洲影院在线观看| 波多野美乳人妻hd电影欧美| 日本在线一区二区三区免费| 日韩亚洲欧美一区_欧美日韩一区二| 免费99精品国产人妻自在现线| 香蕉久久精品日日躁夜夜躁夏 | 免费无码精品黄av电影| 国产老师开裆丝袜喷水视频| 狠狠色综合网久久久久久 | 国产高清亚洲一区| 免费人成年激情视频在线观看| 蕾丝av无码专区在线观看| 国产熟女乱免费一区二区| 中文字幕一区二区资源在线| 爽死你欧美大白屁股在线| 人妻少妇一区二区三区| 久久精品免费一区二区喷潮| 美日韩中文字幕一区二区三区就行了| 国产精品对白刺激久久久| 亚洲午夜无码久久久久| 久久精品无码一区二区www| 亚洲国产长腿丝袜av天堂| 久久久老熟女一区二区三区| 内射国产内射夫妻免费频道| 大又粗又硬一区二区三区免费看 | 色翁荡熄又大又硬又粗又动态图|