国产蝌蚪视频在线观看_亚洲亚色_日批网站免费_亚拍一区_69网站_九热精品_最新中文在线视频_欧美视频日韩视频_国内精品二区_天堂资源站_av综合一区_国产精品久免费的黄网站_四虎免费在线观看_少妇做爰奶水狂喷视频_野花视频韩国免费观看3_久久国产精品亚洲人一区二区三区_国产日产精品_国产精品毛片_亚洲精品久久草草起碰_国产偷国产偷亚洲综合av_两个人日本WWW免费版_91麻豆视频_亚欧在线观看视频_久久久99免费_久久精品视频12_麻豆视频播放_日本高清WWW午色夜COM_公和我做好爽添厨房_成人午夜剧场在线观看_gay无套ⅹxxoo_在线观看成人福利

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

三亚市| 报价| 紫阳县| 会东县| 万全县| 彰化县| 万州区| 建湖县| 饶阳县| 沐川县| 醴陵市| 桐柏县| 突泉县| 敦煌市| 嘉禾县| 楚雄市| 承德县| 靖宇县| 丁青县| 阿巴嘎旗| 德钦县| 崇信县| 灵璧县| 农安县| 绥棱县| 永顺县| 麻栗坡县| 朝阳区| 安吉县| 安阳县| 永福县| 松潘县| 民权县| 英山县| 蓝田县| 巢湖市| 博客| 随州市| 西昌市| 丰台区| 牙克石市|