欧美日韩在线一区二区-欧美日韩在线一区二区三区-欧美日韩在线一区亚洲二区-欧美日韩在线永久免费播放-欧美日韩整片中文字幕-欧美日韩制服丝袜六区

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

主站蜘蛛池模板: 亚洲AV无码久久精品色欲 | 91制片厂果冻传媒剧情剧电影在线观看 | 亚洲av无一区二区三区久久久 | 亚洲精品蜜夜内射 | 二区女人观看chinese中国真实乱 | 91久久老司机福利精品网 | 久久99国产一区二区 | 国产 日韩 中文字幕 制服 | 国产精品特级露脸 | 四虎永久在线精品免费观看 | 丰满人妻熟妇乱又伦精品软件 | 国产一区二区三区视频在线观看 | 亚洲国产91在线精品国自产拍 | 国产精品国产三级毛片在线专区 | 国产成人久久精品推最新 | 狼狼鲁色在线视频播放 | 天天爽www | 亚洲国产制服丝袜无码av | 国产亚洲av片在线观看18女人 | 欧美国产日韩 | 国产乱码精品一区二区三区四川人 | 成人精品视 | 日韩在线精品观看视频 | 国产成人久久精品77777综合 | 精品国产人妻一区二区三区免费 | 被强行糟蹋的女人A片 | 精品久久精品久久久久 | 国产ts在线视频 | 久久精品国产亚洲v色哟哟 久久精品国产亚洲v色欲密臂 | 日韩一区二区成人资源站 | 乱色熟女综合一区二区三区国产人成亚洲综合无码aⅴ蜜桃 | aⅴ男人的天堂在线观看 | 国产日韩精品一区二区三区在线 | 国产精品免费热播 | a级毛片毛片免费观看久潮喷 | 电视在线国产成人av一区二 | 欧美日韩在线一区亚洲二区 | 久久棈精品久久久久久 | 欧美精品国产综合一区二区三 | 久久ra热在线精品视频 | 国产成人精品无码免费播放 |