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

午夜339351
級別: 實習會員
精華主題: 0
發帖數量: 3 個
工控威望: 46 點
下載積分: 673 分
在線時間: 0(小時)
注冊時間: 2018-03-23
最后登錄: 2018-03-23
查看午夜339351的 主題 / 回貼
樓主  發表于: 2018-03-23 16:29
圖片:
采用MX COMPONENT 界面監視軟元件狀態,用的entryDeviceStatus指令,通訊界面提醒"超出索引"

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

主站蜘蛛池模板: 久久精品一品道久久精品 | 精品丰满人妻无套内射 | 国产精品日韩欧美亚洲另类 | 91高清免费国产自产拍不卡 | 国产成人无码 | 99久久久无码欧美精品性 | 国产精品久久久久久影院 | 国产午夜福利在线观看红一片 | 日韩欧美中文字幕无码 | 日韩一区二区精品久久高清 | 国产精品白丝久久av情趣网站 | 99热动漫这里只有精品无卡顿 | 国产精品剧情 | 一卡久久4卡5卡6卡7卡 | 国产aV片在线播放免费观看大全 | 18禁美女黄网站色大片免费 | 99国产午夜精品一区二区色戒 | 欧美日韩精品一区二区三区不卡 | 国产寡妇偷人在线视频 | 国产熟女aa级毛片www | 99久久综合狠狠综合久久aⅴ | 福利姬一区二区三区在线观看 | 精品国产人妻一区二区三区 | 成人一区二区三区综合区精品久久久中文字幕一区 | 久久久无码精品午夜 | 伊人影院精品一二三 | 91麻豆精品一区二区 | 国产a级作爱片免费看 | 国产欧美日韩综合精品二区久久 | 福利视频一区 | 99精品国产一区 | 成人综合网站一区二区三区四区 | 日本一道一区二区视频 | 欧美激情视频在线观看一区二区三区 | 精品久久久中文字幕 | 国产av无码专区亚洲版综合 | 成人免费av一区二区三区 | 国产一区二区不卡免费观在线 | 天堂中文在线最新版地址 | 99国产三级精品三级在线专区 | 成人片无码中文免费 |