无码精品人妻一区二区三区入口-无码精品人妻一区二区三区夜夜嗨-无码精品人妻一区二区三区颖A片-无码精品日本一区二区桃花岛-无码精品网站-无码精品一

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

主站蜘蛛池模板: 国产极品美女无套内射 | 国产一区二区三区在线影院 | 无码成人亚洲AV片 | 波多野结衣无码中文字幕 | 2024年亚洲天天爽天天噜 | 国产高潮丝袜熟女视频 | 中文字幕视频精品一区二区三区 | 国产女王强制射精在线 | 一道vs无码中文字幕 | 亚洲精品成人专区在线观看 | 国产亚洲人在线观看 | 国产真实乱人偷精品人妻69 | 国产一区二区不卡在线 | 97国产大学生情侣在线视频 | 久久精品免费全国观看国产 | 国产福利亚洲一区二区三区 | 国产精品乱码久久久久软件 | 经典三级一区二区三区视频 | a级毛片免费完整视频 | 成人国产欧美精品一区二区 | 国产乱子伦精品无码码专区 | 国产91精品对白露脸全集观看 | 99久久久无码国产精品性 | 国产中文字幕永久免费观看电视剧 | 黑人与亚洲女人 | 欧美日韩亚洲中文字幕 | 久久伊人色综合 | 国产精品成人嫩草影院 | 91久久精品免费看国产一区 | 国产一区二区视频在线播放 | 久久国产人妻一区二区中国下载永久久久 | 国产av无码国产av毛片 | 成人精品一区二区三区免费视频 | 欧美日韩一区二区三区久久精品 | 国产精品日本一区二区在线播放 | 免费无码一区二区三区A片视频 | 狠狠色婷婷丁香综合久久韩国 | 福利一区二区三区视频在线观看 | 国产又爽又大又黄A片软件 国产又爽又大又黄A片图片 | 日韩欧美国产卡通动漫 | 欧美在线亚洲 |