【文章內(nèi)容簡介】
for scanclass %d QueryInterface:IID_IDataObject failed for scanclass %d Advise returns E_OUTOFMEMORY Advise returns E_UNEXPECTED Advise returns error Advise Group failed for %s No ConnectionPoint for scanclass %d AddItems failed for tag %s AddItem failed for %s XXXX 發(fā)電有限 責(zé)任公司 PI 系統(tǒng)用戶使用手冊(cè)資料 第 9 頁 共 20 頁 Write failed Write error %X for tag Read: (some string from server here, we hope) Refresh: (some string from server here, we hope) 上述信息都是一些致命的錯(cuò)誤,表明 OPC 服務(wù)器返回了在對(duì)應(yīng)操作時(shí)的錯(cuò)誤代碼。嘗試采用 PIOPCTool 進(jìn)行同樣的操作,如果它能工作,再用交互式方式運(yùn)行查看是否出現(xiàn)同樣的錯(cuò)誤。如果兩者都能運(yùn)行,檢查你的 DCOM 設(shè)置是否授予 INTERACTIVE 用戶有足夠的權(quán)限。AddItem 引起的錯(cuò)誤代碼 c0040007 表示服務(wù)器沒該點(diǎn)。 PI 的點(diǎn)名的 InstrumentTag 項(xiàng)必須與 OPC 服務(wù)器里的點(diǎn)名完全一致。使用 PIOPCTool 添加該點(diǎn)到一個(gè)組,或直接用瀏覽的方式看點(diǎn)名框的該點(diǎn)的全名。 The requested data type cannot be returned for this item (c0040004) 表示你使用了一個(gè)服務(wù)器中該點(diǎn)不能使用的數(shù)據(jù)類型(比如請(qǐng)求的是數(shù)字,但該點(diǎn)是字符串 Not Open)??梢允褂?PIOPCTool 添加該點(diǎn)到一個(gè)組,但不指明該點(diǎn)的數(shù)據(jù)類型,服務(wù)器會(huì)根據(jù)其數(shù)據(jù)類型給出該點(diǎn)的值。 Invalid read/write mode requested for tag %s 該信息不是致命錯(cuò)誤,但你需要設(shè)置一個(gè)命令行來消除它。表示服務(wù)器在返回?zé)o效的讀 /寫信息。多半是因?yàn)樵缙?的服務(wù)器版本會(huì)出現(xiàn)這個(gè)問題,可以使用 /AR=N 標(biāo)志告訴接口忽略該信息。 RemoveItem failed for tag %s dev_remove_tag: Unable to DUnadvise %s dev_remove_tag: Unable to remove group %s 上述信息表示服務(wù)器拒絕我們從一個(gè)組里刪除該點(diǎn)或停止一個(gè)組的數(shù)據(jù)采集。如果后面沒有出現(xiàn)大量的其它信息,該信息可能不是問題。如果我們不能從該刪除該點(diǎn)或組,我們?nèi)匀荒懿杉臄?shù)據(jù),但由于在 PI 的數(shù)據(jù)庫里已經(jīng)將其刪除,所以獲得的 數(shù)據(jù)都會(huì)被丟棄。但該信息仍然說明 OPC 服務(wù)器有些問題。 AddItems failed, server not in RUNNING state, will try later XXXX 發(fā)電有限 責(zé)任公司 PI 系統(tǒng)用戶使用手冊(cè)資料 第 10 頁 共 20 頁 該信息是提示信息。有些服務(wù)器需要一會(huì)兒才能完全啟動(dòng)。我們可以等到服務(wù)器進(jìn)入RUNNING 狀態(tài)就可以繼續(xù)進(jìn)行??梢允褂?PIOPCTool 查看服務(wù)器的狀態(tài)( (使用 Get Status 按鈕 ). 如果服務(wù)器仍然沒有進(jìn)入 RUNNING 模式,就需要查查原因了。 QueryInterface:IID_IConnectionPointContainer failed, using protocol 該信息也是提示性信息。如果使用 COM 的接口,但服務(wù)器不支持,就會(huì)自動(dòng)使用 。它只是表示服務(wù)器不支持 OPC DA 版本。 Write unable to get values: Getsnapshotx error %d 該信息表示我們想從 PI 里讀取一個(gè)數(shù)據(jù)并寫到 OPC 服務(wù)器里,但不能讀取到數(shù)據(jù)。確認(rèn)PI 在運(yùn)行 — 可用 apisnap (in the API directory)。檢查點(diǎn)的配置確認(rèn)是否要 寫一個(gè)字符串到一個(gè)數(shù)值型的輸出 。 No Item name instrumenttag and exdesc both empty Unable to get point type Unable to get square root Square root must be 0, 1 or 2 Unable to get total specs Total must be 0,1,2,3,4, or 5 Nonzero Totalcode requires nonzero Convers This Totalcode requires DZero to be specified. Point cannot be write and Read On Change Unable to get source point type. Event Point has invalid scan class (!= 0) Point has invalid scan class (== 0) XXXX 發(fā)電有限 責(zé)任公司 PI 系統(tǒng)用戶使用手冊(cè)資料 第 11 頁 共 20 頁 Point has invalid scan class ROC Point has invalid scan class (== 0) 這些信息來自 PI,表示點(diǎn)的配置有問題,需要檢查該點(diǎn)的配置。 GetStatus 該信息表示 OPC 服務(wù)器對(duì)狀態(tài)的請(qǐng)求沒有響應(yīng)。它可能是 down 或 disconnected。 Can39。t get PI server time 這是我們?cè)谙?API 請(qǐng)求時(shí)間標(biāo)簽時(shí)出現(xiàn)的一個(gè)主要錯(cuò)誤。如果出現(xiàn)該提示,你可能需要請(qǐng)求幫助。如果你剛安裝了系統(tǒng),試著重啟一下,然后確定你能連接到 PI。試著 pinging 一下 PI 機(jī)器 (ping machinename);確認(rèn) PI 在運(yùn)行;使用 APIsnap 連接 GetStatus: Server has no current time. 這實(shí)際上是表示服務(wù)器已經(jīng)癱瘓,因此連當(dāng)前時(shí)間也拒絕給。一般來說,服務(wù)器在發(fā)送服務(wù)器的狀態(tài)時(shí)已經(jīng)包含了當(dāng)前時(shí)間的。 Cleaning up connections Cleaned up connections 接口程序在退出時(shí)會(huì)出這種提示信息。第一局表示接口開始退出與 OPC 的連接。第二句表示接口正在退出,并且即將退出。 Interface failed to write some %s states 當(dāng) OPC 服務(wù)器關(guān)閉時(shí),如果需要它會(huì)給每個(gè)點(diǎn)發(fā)送一個(gè) shutdown 狀態(tài) (在命令行參數(shù)里使用 /OPCSTOPSTAT)。如果有這種需要,但有些或全部信息不能發(fā)送,就會(huì)出現(xiàn)這種信息。 Server sent shutdown notice 當(dāng)接口從 OPC 服務(wù)器收到關(guān)閉信息時(shí)就會(huì)收到該信息。它的后面 可能會(huì)緊跟著一條信息說明服務(wù)器為何關(guān)閉。接口會(huì)一直定期的保持對(duì)服務(wù)器的重新連接,直到被關(guān)閉或連接成功。 OnDataChange:Invalid group ID 0 OnDataChange:Invalid advise group ID: XXXX 發(fā)電有限 責(zé)任公司 PI 系統(tǒng)用戶使用手冊(cè)資料 第 12 頁 共 20 頁 OnDataChange:Invalid group ID 999 OnDataChange: Header status: OnDataChange has format not HGlobal OnDataChange:Invalid group ID for write pletion Unknown access type for group %s 這些信息都是一些服