无码精品人妻一区二区三区入口-无码精品人妻一区二区三区夜夜嗨-无码精品人妻一区二区三区颖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
          

主站蜘蛛池模板: 久久免费看少妇高潮A片JA小说 | 欧美日韩在线亚洲一区二区三区 | 日本一道综合久久aⅴ免费 日本一道综合色视频 | 欧美牲交a欧美牲交 | 国产裸体美女视频网站免费观看 | 羞羞视频在线观看 | 99国产欧美久久久精品蜜桃 | 99久久精品九九亚洲精品 | 欧美一区二区三区婷婷月色 | 精品无码一二区A片 | a级毛片免费观看在线 | 久久久久无码av色戒 | 国产啪爱视频精品免视 | chinese国产高清av | 成人av无码一区二区三区 | 四虎网站最新免费地址2024 | 欧美亚洲视频在线观看 | av资源 | 国产91中文综合字幕日韩 | 天美影视文化传媒公司 | 国产成人无码久久久天美传媒 | 久久久精品人妻一区二区三区四 | 久久6699精品国产人妻 | 国产精品三级a三级三级午夜 | 久久精品国产99国产精品 | 免费国产污网站在线观看不要卡 | 国产精品合集一区二区三区 | 91亚洲永久免费亚洲精品影 | 91免费精品国自产拍在线不卡 | 欧美激情 亚洲 在线 | 色偷拍亚洲国产大姐 | 蜜芽亚洲AV无码精品国产 | gogo人体无码一区二区 | 无码免费人妻A片AAA毛片 | 国产精品视频一区日韩丝袜 | 精品国产三级在线 | 国产va免费精品高清在线 | 国产亚洲综合一区在线 | 亚洲综合欧美日韩在线 | 六月婷婷色 | 日日噜噜夜夜狠狠tv视频免费 |