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

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

主站蜘蛛池模板: 人妻无码av中文字久久 | 国产成人av在线免播放观看 | 国产成人久久av一区二区 | 日韩精品a欧美精品a亚洲精品 | 国产成人无码一区二区在线播放 | 波多野结衣在线一区 | 国产二级一片内射视频插放 | 亚洲AV久久无码精品国产网站 | 色之综合网 | 国产精品一二三四区免费 | 麻豆蜜桃成人无码乱码毛片 | 国产a毛片高清视频精品熟女日韩 | 久久草资在线播放 | 精品国产一区二区在线观看 | 高潮娇喘抽搐A片无码黄 | 麻豆蜜桃成人无码乱码毛片 | 精品国产一区二区三区高清观看 | 欧美一区二区成人午夜在线观看 | 国产成人无码手机免费 | 国产精品久在线观看 | 国内自拍神器美颜相机 | 无码av高清网址 | 精品久久洲久久久久护士免费 | 国产成在线观看免费视频密 | 国产欧美国产综合一区 | 18禁成人黄网站免费视频 | 久久精品无码一区二区无码三区 | 日本国产一卡二卡三新区 | 国产精品毛片在线大全 | 三级毛片在线免费观看 | 丁香五月亚洲综合深深爱 | 精品一区二区三区中文字幕 | 国产l精品国产亚洲区在线观看 | 国产探花 | 无码成人免费av片在线观看 | 欧美国产成人精品一区二区三区 | 国产成人夜色高潮福利影视95 | 丰满人妻一区二区三区av猛交 | 亚洲aⅴ秘无码一区二区三区 | 国产精品原创巨作av免费 | 狠狠躁|