PI系統(tǒng)管理培訓(xùn)詳細(xì)版_第1頁(yè)
PI系統(tǒng)管理培訓(xùn)詳細(xì)版_第2頁(yè)
PI系統(tǒng)管理培訓(xùn)詳細(xì)版_第3頁(yè)
PI系統(tǒng)管理培訓(xùn)詳細(xì)版_第4頁(yè)
PI系統(tǒng)管理培訓(xùn)詳細(xì)版_第5頁(yè)
已閱讀5頁(yè),還剩328頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、PI 系統(tǒng)管理 I 基本技能 Version 3.4,2,課程概述,與PI服務(wù)器相關(guān)的文檔: 參考手冊(cè) 系統(tǒng)管理手冊(cè) 系統(tǒng)應(yīng)用使用手冊(cè),3,課程安排,課時(shí): 2 天 互動(dòng)課程: 講解部分 練習(xí)和用例部分,4,培訓(xùn)目標(biāo),了解PI系統(tǒng)的體系結(jié)構(gòu) 學(xué)會(huì)安裝和配置PI服務(wù)器 學(xué)會(huì)安裝和配置PI接口 學(xué)會(huì)創(chuàng)建和維護(hù)測(cè)點(diǎn) 學(xué)會(huì)配置PI系統(tǒng)安全機(jī)制 學(xué)會(huì)PI系統(tǒng)的備份和恢復(fù) 學(xué)會(huì)發(fā)現(xiàn)和處理PI系統(tǒng)出現(xiàn)的故障 整個(gè)課程中您可以隨時(shí)提問(wèn),5,課程內(nèi)容 (第一天),PI系統(tǒng)簡(jiǎn)介 PI客戶端工具 PI 數(shù)據(jù)流 PI 測(cè)點(diǎn)配置 PI 系統(tǒng)管理工具 PI 接口 測(cè)點(diǎn)配置及優(yōu)化,6,課程內(nèi)容 (第二天),PI 測(cè)點(diǎn)配置

2、PI 安全機(jī)制 PI 系統(tǒng)管理 PI系統(tǒng)故障及解決辦法,1.0 PI系統(tǒng)簡(jiǎn)介,8,OSIsoft,成立于1980年 在美國(guó)、加拿大、墨西哥、德國(guó)、澳大利亞、新西蘭、巴西和新加坡都擁有辦事處 關(guān)于PI系統(tǒng): 已經(jīng)有超過(guò)一萬(wàn)套PI系統(tǒng)在全世界八十多個(gè)國(guó)家使用 是世界上最優(yōu)秀的實(shí)時(shí)信息管理系統(tǒng) 為企業(yè)的信息化建設(shè)打下堅(jiān)實(shí)的基礎(chǔ),9,什么是PI系統(tǒng)?,從你的生產(chǎn)過(guò)程獲得數(shù)據(jù)的一套實(shí)時(shí)數(shù)據(jù)管理系統(tǒng) 包含成熟的分析工具來(lái)幫助人們進(jìn)行決策 隨時(shí)隨地可通過(guò)可配置、交互式的界面獲得需要的數(shù)據(jù) PI 可以存儲(chǔ)近乎無(wú)限的數(shù)據(jù) OSIsofts Real-time Performance Management (Rt

3、PM) 平臺(tái)的一部分,10,什么是RtPM 平臺(tái)?,Enterprise Resource Planning,Supply Chain Management,Customer Relationship Management,Programmable Logic Controller,Distributed Control System,1.1 PI 系統(tǒng)結(jié)構(gòu),12,PI 系統(tǒng) 基本結(jié)構(gòu),Interface node,Analytical tools ACE Sigmafine,Data Source (DCS, PLC, etc),Other system - ERP - Maintenanc

4、e - Lims,PI Server,Interface node,Data Source (DCS, PLC, etc),13,PI 系統(tǒng) 平臺(tái),PI Version 2.x Released 1985 OpenVMS OS Alpha and Vax processor,PI Version 3.x Released 1995 Microsoft Windows Compaq Unix IBM AIX Sun Solaris,Microsoft Windows,Available for Windows OpenVMS Compaq Unix HP UX IBM AIX Sun Solar

5、is,接口端,PI Server,客戶端,Available for Windows,1.2 PI 系統(tǒng)安裝,15,安裝前的準(zhǔn)備,選擇可靠的系統(tǒng)結(jié)構(gòu) 使用可靠的硬件(品牌) 考慮使用冗余結(jié)構(gòu) 考慮使用數(shù)據(jù)采集端 選擇操作系統(tǒng) (軟件) 根據(jù)OSIsoft提供的性能要求來(lái)決定使用的硬件的性能,16,需要的內(nèi)存,以下是一個(gè)比較理想的內(nèi)存需求建議: 1 000 data streams: 512 MB RAM 10 000 data streams: 1 GB to 2 GB RAM 20 000 data streams: 2 GB to 4 GB RAM Sizing Spreadsheet:

6、,17,PI 系統(tǒng)管理員賬號(hào),PI系統(tǒng)管理員賬號(hào)需要有安裝和運(yùn)行系統(tǒng)服務(wù)、修改注冊(cè)表、創(chuàng)建和復(fù)制文件夾的權(quán)限,PI服務(wù)器安裝示例,19,PI Server Installation - 1,20,PI Server Installation - 2,21,PI Server Installation - 3,22,PI Server Installation - 4,23,PI Server Installation - 5,24,PI Server Installation - 6,25,PI Server Installation - 7,26,PI Server Installation

7、 - 8,27,PI Server Installation - 9,28,PI Server Installation - 10,29,練習(xí),Start the PI server services Go to PIADM Run PISRVSTART.BAT (not PISTART.BAT!) Note: to stop the PI Server, go to PIADM Run PISRVSTOP.BAT (not PISTOP.BAT!),1.3 PI 時(shí)間格式,31,PI 時(shí)間格式,絕對(duì)時(shí)間 (時(shí)間軸上精確的一點(diǎn)) * : (當(dāng)前) t :今天 00:00:00 18-dec-0

8、2 16:00:00 相對(duì)時(shí)間 (另外一個(gè)時(shí)間的偏移量) +8h : + 8 hours 組合時(shí)間 t+8h : today + 8 hours,32,絕對(duì)時(shí)間,DD-MMM-YY hh:mm:ss,DD日 MMM月(Jan, Feb, Mar, Apr, May, ) YY年 hh小時(shí) mm分鐘 ss秒,例子: 18-dec-02 10:43:29,33,絕對(duì)時(shí)間,DD-MMM-YY hh:mm:ss,日期缺省為當(dāng)天 時(shí)間缺省為 00.,34,絕對(duì)時(shí)間 其他格式,絕對(duì)時(shí)間格式,35,相對(duì)時(shí)間,天、小時(shí)、分鐘、秒數(shù) 前面需要加 +或-號(hào) 沒(méi)有缺省的時(shí)間單位,必須標(biāo)明 相對(duì)時(shí)間很少單獨(dú)使用,一般

9、都作為組合時(shí)間的一部分,36,組合格式,同時(shí)使用絕對(duì)時(shí)間和相對(duì)時(shí)間格式,37,練習(xí),PI Time Express the following timestamps using a specific day and date: Tuesday-2d 1 6: y+8h *-30m Express the following times in valid PI timestamps: Today at 6:00 AM The 4th of the current month at 16:00 12 hours ago,1.4 PI 測(cè)點(diǎn),39,什么是測(cè)點(diǎn)?,測(cè)點(diǎn)是PI系統(tǒng)中為一個(gè)數(shù)據(jù)流提供的唯一

10、的存儲(chǔ)位置 例子 一個(gè)流量計(jì)的流速 一個(gè)控制器的運(yùn)行模式 一個(gè)產(chǎn)品的批號(hào) 一個(gè)操作人員的文本注釋 計(jì)算或統(tǒng)計(jì)的結(jié)果,40,PI 測(cè)點(diǎn)屬性 1,Tag name: PI測(cè)點(diǎn)名稱(唯一) Descriptor: PI 測(cè)點(diǎn)描述 (26 個(gè)字符) Engunits: 工程單位,41,測(cè)點(diǎn)名,測(cè)點(diǎn)名需符合下列要求: 第一個(gè)字符必須是字母或數(shù)字 不允許使用控制鍵 以下符號(hào)不允許使用: * ? ; “ ! 測(cè)點(diǎn)名長(zhǎng)度應(yīng)小于80個(gè)字符,Back,42,缺省測(cè)點(diǎn),如果在安裝PI服務(wù)器的時(shí)候選擇了 “Install default tags”項(xiàng)系統(tǒng)就會(huì)創(chuàng)建10個(gè)測(cè)點(diǎn)作為“測(cè)試測(cè)點(diǎn)”用 可以用這些測(cè)點(diǎn)來(lái)測(cè)試PI系

11、統(tǒng)而不會(huì)影響正常的數(shù)據(jù),43,PI 測(cè)點(diǎn)屬性 - 2,Point Type: 變量的存儲(chǔ)類型 Zero, Span 和Typical value: 量程起點(diǎn)、量程范圍和典型值 Step: (On/Off): 是否將數(shù)據(jù)以梯形方式顯示,44,數(shù)據(jù)類型,Int16: 整型, 16 位 (0 to 32767) Int32:整型, 32位 (-2147450880 to 2147483647) Float16:浮點(diǎn)型, 16 位(acc: 1/32767) Float32:浮點(diǎn)型, 32 位 (單精度) Float64:浮點(diǎn)型, 64 位(雙精度) Digital:開(kāi)關(guān)量 (On/Off) Stri

12、ng:文本,最大 976 字節(jié) Blob:二進(jìn)制數(shù),最大 976 位 Timestamp: 時(shí)間,范圍在1-jan-1970 到 1-Jan-2038 之間,45,Float32 - Float64,Float32 有 8 個(gè)有效位 Float64 有 17 有效位 例子: Float32 as 834 568 766.76 Float64 as 2.1234567890123456789,insignificant,46,Zero, Span 和 Typical Value,47,Step,2.0 PI 客戶端工具,49,PI 開(kāi)發(fā)工具,PI API (Application Program

13、ming Interface) 版本為2的客戶端和大多數(shù)接口使用 PI SDK (Software Development Kit object oriented) 版本為3的客戶端和系統(tǒng)管理工具使用,2.1 命令對(duì)話窗口,51,PI Server 連接窗口 (1/2)客戶端工具,顯示所有PI服務(wù)器的狀態(tài) Connect: 與PI服務(wù)器進(jìn)行連接 Disconnect: 斷開(kāi)于PI服務(wù)器的連接 Add: 增加一個(gè)PI服務(wù)器到列表里 Remove: 從列表里刪除一個(gè)PI服務(wù)器 Set as default: 設(shè)置缺省PI服務(wù)器 注意: 一個(gè)應(yīng)用程序可以有多個(gè)連接,52,PI Server連接窗口

14、(2/2)客戶端工具,建立一個(gè)新的連接: Node: PI服務(wù)器的名稱或IP地址 User Name: pidemo 或其他的PI用戶名 Port: 5450,如果需要輸入密碼的話將會(huì)彈出如下窗口:,53,測(cè)點(diǎn)查詢窗口客戶端工具,進(jìn)入測(cè)點(diǎn)查詢窗口: 在PI ProcessBook: 通過(guò)菜單欄上的Tag Search 按鈕 通過(guò)工具條上的按鈕 通過(guò)對(duì)象的屬性窗口 在PI DataLink: 通過(guò)PI菜單中的按鈕,54,Tag Search WindowClient Tools,子字符串查詢,不支持通配符,支持通配符查詢,顯示結(jié)果: 當(dāng)這個(gè)窗口打開(kāi)時(shí),前一次查詢的結(jié)果將顯示 需要更新查找結(jié)果點(diǎn)擊

15、Search 按鈕,55,測(cè)點(diǎn)查找策略客戶端工具,使用通配符查找: 使用* 代替任意字符 例子: trc* = trc100.pv, trc14.pv, trc3114.pv 使用 ? 代替一個(gè)字符 例子: trc42?.pv = trc420.pv, trc421.pv, trc422.pv 提示1: 測(cè)點(diǎn)查詢中對(duì) descriptor 的查找是以文本為基礎(chǔ)的,因此如果使用了通配符的話測(cè)點(diǎn)查詢將會(huì)去查找描述中有*或?符號(hào)的測(cè)點(diǎn) 提示2: 查找不區(qū)分大小寫 提示3: 查找條件可以組合 例子: 查找 Tagmask = sin* 和 PtSource = P的測(cè)點(diǎn),56,測(cè)點(diǎn)信息窗口客戶端工具,

16、57,Exercise 1,PI Client Tools Common Dialog Windows Objectives: Learn how to connect to a PI Server from a Client Tool Learn how to use the Client Tools Tag Search Window,2.2 PI ProcessBook,59,PI ProcessBook,PI ProcessBook: 繪制畫面、數(shù)值、趨勢(shì)圖的客戶端軟件,60,PI ProcessBook 模式,Run Mode: 瀏覽 PI ProcessBook 的畫面元素 Bui

17、ld Mode:繪制或編輯 PIProcessBook 畫面 可以通過(guò)Tools菜單或者Drawing 工具條上的按鈕來(lái)進(jìn)行模式的切換,61,創(chuàng)建 PI ProcessBook 文件,點(diǎn)擊File/New 或 圖標(biāo) PB File (.piw): 包含ProcessBook畫面的文件 PB Entry:PI ProcessBook 畫面 - 畫面及畫面鏈接 - 到 PB 文件的鏈接- 操作系統(tǒng)命令- 文本 PB Display (.pdi):單獨(dú)的頁(yè)面,62,創(chuàng)建趨勢(shì) “General” Tab,63,Exercise 2,PI ProcessBook Objective: Learn how

18、 to build a simple trend using PI ProcessBook,2.3 PI DataLink,65,PI DataLink,PI DataLink: Microsoft Excel/Lotus 123 add-In 將數(shù)據(jù)直接從PI系統(tǒng)取到表格中進(jìn)行分析,66,Exercise 3 (optional),PI DataLink Objective: Learn how to make a simple query in PI DataLink,3.0 數(shù)據(jù)流,Reference Guide, Chapter 2,68,數(shù)據(jù)流,PI compression algo

19、rithm,PIArchives,Snapshot,New value (scan or exception based),Exception Report,Exception,Compression69,原始數(shù)據(jù),從數(shù)據(jù)源掃描過(guò)來(lái)的原始數(shù)據(jù) 未經(jīng)過(guò)Exception 和Compression 測(cè)試, 數(shù)據(jù)將會(huì)被歸檔保存,Time,Temperature,70,Exception 測(cè)試 (接口層),Exception 測(cè)試:,ExcMax (time),+ Excdev,- Excdev,Current Snapshot,新數(shù)值如果在該矩形外就會(huì)觸發(fā) Exceptio

20、n 測(cè)試 Exception 測(cè)試是在 接口進(jìn)行 當(dāng)一個(gè)數(shù)值觸發(fā)Exception測(cè)試時(shí),這個(gè)數(shù)值和之前的那個(gè)數(shù)值就會(huì)被送到PI服務(wù)器,71,PI Exception 測(cè)試,Scan = 1m ExcDev = 1 ExcMax = 10m,DCS Value Exception Current Snapshot,72,Exception 測(cè)試,Time,Temperature,P,E,P,P,P,E,E,E,E,E,E,E,E,E,E: Exception P: Previous,E,73,Exception 測(cè)試 結(jié)果,Time,Temperature,通過(guò)測(cè)試的數(shù)值將會(huì)不斷的送到PI服務(wù)

21、器,送的那個(gè)數(shù)值將是當(dāng)前的實(shí)時(shí)值,74,Exception 測(cè)試,當(dāng)一個(gè)數(shù)值通過(guò)測(cè)試的時(shí)候,這個(gè)數(shù)值和之前的那個(gè)數(shù)值將會(huì)被報(bào)告 Why? To have a better representation of the actual tag behavior,Snapshot value,+/- Excdev,Temperature,Time,75,Directed Exercise,Consider the following parameters: Excdevpercent:2 Span;200 Excmax:180 The current snapshot value and timest

22、amp are: 70.310:00:00 Which of the following values pass the exception test:,76,關(guān)閉 Exception測(cè)試?,將 ExcDev=0 (Exception 開(kāi)關(guān)) 所有的數(shù)據(jù)都將送到 PI. 這樣會(huì)增加接口和服務(wù)器之間的網(wǎng)絡(luò)負(fù)荷,77,Compression 測(cè)試 (PI Server),Compression 測(cè)試:,Last archived value,如果有一個(gè)在上次歸檔數(shù)值和當(dāng)前值之間的數(shù)值超出了這個(gè)平行四邊形的話那就觸發(fā)了compression 測(cè)試,那么當(dāng)前值之前的那個(gè)數(shù)值就會(huì)被歸檔存儲(chǔ) Compre

23、ssion 測(cè)試是在PI Server進(jìn)行的 Compression 測(cè)試的開(kāi)關(guān)可以通過(guò)Compressing 屬性來(lái)控制,+ Compdev,- Compdev,Current snapshot, Compmax (s),78,Compression 測(cè)試,Time,Temperature,A: Archived Value,A,A,A,A,A,A,A,compression 的運(yùn)算法則是不斷與實(shí)時(shí)值進(jìn)行比較以決定那些值需要保存在PI數(shù)據(jù)庫(kù)中,79,Compression 結(jié)果,Time,Temperature,當(dāng)用戶給定任一時(shí)間獲得數(shù)值的時(shí)候,數(shù)值的偏差不會(huì)大于compdev,存儲(chǔ)在PI數(shù)

24、據(jù)庫(kù)中的數(shù)值,80,Compression 結(jié)果,Raw values scanned,Time,Temperature,After Exception,Compression之后,81,關(guān)閉 Compression?,將Compressing屬性設(shè)為Off: 所有通過(guò)exceptions測(cè)試的數(shù)值將會(huì)被存儲(chǔ) *最好* 將Compressing 屬性設(shè)為 ON, compdev屬性 設(shè)為 0: 同樣或排列整齊的數(shù)值將不會(huì)被存儲(chǔ),這樣效率會(huì)更高,82,數(shù)據(jù)流,exception測(cè)試和compression測(cè)試應(yīng)該是把數(shù)據(jù)調(diào)整成存儲(chǔ)效率高但同時(shí)不失精度 硬盤空間、性能 vs 數(shù)據(jù)精度,83,Exc

25、eption 和 Compression 屬性,每一個(gè)PI測(cè)點(diǎn)都可以單獨(dú)配置自己的exception 測(cè)試和 compression 測(cè)試屬性,84,推薦的屬性設(shè)置,把例外報(bào)告偏離值設(shè)置為儀表所能測(cè)量出的最小變化值。 將 Exception Deviation 設(shè)置成compression deviation的一半 提示: ExcMin, ExcMax, CompMin 和 CompMax 屬性的單位是秒,4.0 PI 測(cè)點(diǎn)配置,86,PI Tag 屬性 - 3,Point Class: PI 測(cè)點(diǎn)種類(從接口過(guò)來(lái)的測(cè)點(diǎn)通常使用 “Classic”) Archiving (On/Off): 設(shè)

26、成 0 (Off), PI 會(huì)采集數(shù)據(jù)但不存儲(chǔ) Shutdown (On/Off): 當(dāng)PI服務(wù)器停止的時(shí)候,一個(gè)shutdown事件將會(huì)寫到 shutdown 標(biāo)志設(shè)為1 (On)的測(cè)點(diǎn)中 Scan (On/Off): 掃描標(biāo)志,87,Point Class (Database View),39 attributes,57 attributes,54 attributes,61 attributes,注意!測(cè)點(diǎn)的類型是不能改變的,Base +18,Base +15,Base +22,65 attributes,Base +26,Totalizer Adds the point attribu

27、tes for totalizer tags,SQC_Alarm Adds the point attributes for SQC Alarm tags,Classic Adds the point attributes for interface tags,Alarm Adds the point attributes for alarm tags,BASE Included in all point types,88,Sub-second timestamps,歸檔最短時(shí)間間隔是15.26 s 也就是 1/65535 秒 15.26 s 的精度意味著: 小數(shù)點(diǎn)后可以保持四位 Ex: 14

28、-oct-03 15:31:31.1234 remains 14-oct-03 15:31:31.1234 超過(guò)5位后的小數(shù)將會(huì)被四舍五入 Ex: 14-oct-03 15:31:000025 becomes 14-oct-03 15:31:000030,89,Sub-second timestamps,在客戶端的表示: DataLink: 支持小數(shù)點(diǎn)后3位 (ms) ProcessBook 2.3: 不支持 ProcessBook 3.0:支持小數(shù)點(diǎn)后3位 (ms),90,PI 測(cè)點(diǎn)屬性 測(cè)點(diǎn)安全,控制PI測(cè)點(diǎn)訪問(wèn)權(quán)限的屬性 PtOwner, PtGroup, PtAccess: 控制誰(shuí)能修

29、改和看到測(cè)點(diǎn)屬性. DataOwner, DataGroup, DataAccess: 控制誰(shuí)能讀寫測(cè)點(diǎn)數(shù)據(jù). 這些屬性的設(shè)置將會(huì)在安全章節(jié)中詳細(xì)介紹,5.0 PI 系統(tǒng)管理工具,5.1 公用對(duì)話框窗口,93,PI 服務(wù)器連接窗口 (1/2)PI SMT,Changes made here are stored in the Windows Registry,94,PI 服務(wù)器連接窗口 (2/2)PI SMT,95,測(cè)點(diǎn)查詢窗口PI SMT,注意: SMT 測(cè)點(diǎn)查詢窗口支持在描述欄中使用通配符查詢,96,測(cè)點(diǎn)信息窗口PI SMT,97,PI 連接: SDK vs API,如果API 連接中有了

30、變化,這個(gè)變化將會(huì)同樣影響SDK 連接: 一段時(shí)間后 PINet 服務(wù)啟動(dòng)時(shí) PI SDK 連接時(shí) 如果SDK 連接中有了變化,這個(gè)變化不會(huì)到影響API連接,98,Exercise 4,PI System Management Tools Common Dialog Windows Objectives Learn how to connect to a PI Server from a System Management Tool Learn how to use the System Management Tools Tag Search Window,5.2 系統(tǒng)管理工具簡(jiǎn)介,100,系

31、統(tǒng)管理工具,PI System Management Tools (PI-SMT) 是一個(gè)圖形界面應(yīng)用程序,用戶可以通過(guò)它在遠(yuǎn)程管理PI系統(tǒng) PI System Management Tools 包含在PI服務(wù)器軟件中,101,系統(tǒng)管理工具 3,102,系統(tǒng)管理工具,PI System Management Tools 3.0 同樣提供 PI SMT 2 tools 的快捷方式,103,Directed Exercise,Use the System Management Tools to access the following: Stale and Bad tags on your PI

32、server PI Point Builder,5.4 PI Point Builder,105,PI PointBuilder,允許用戶創(chuàng)建和配置PI測(cè)點(diǎn)的圖形工具,106,Exercise 5,PI Point Builder Objective: Learn how to create a tag with PI Point Builder,5.3 狀態(tài)集的創(chuàng)建,108,離散型測(cè)點(diǎn),離散型測(cè)點(diǎn)是以整型存儲(chǔ),但以文本顯示 Point Type 屬性 = digital 離散型測(cè)點(diǎn)有一個(gè)狀態(tài)集( Digital Set) 將 DigitalSet 屬性設(shè)置為相關(guān)聯(lián)的狀態(tài)集名 狀態(tài)集必須在創(chuàng)建

33、離散型測(cè)點(diǎn)前就已經(jīng)存在,109,狀態(tài)集,狀態(tài)集是一組狀態(tài),110,Exercise 6,Add a New Digital State Set Objective: Create a new digital state set,111,Exercise 7,Add a digital tag Objective: Create a digital tag that will use the digital state set created in the last exercise,6.0 PI 接口,System Management Guide, Chapter 1: Managing I

34、nterfaces,113,What is a PI Interface?,它是用于PI服務(wù)器和數(shù)據(jù)源間通訊的軟件 從數(shù)據(jù)源中采集數(shù)據(jù)傳送到PI服務(wù)器中,PI Server,DCS/PLC/Data Source,6.1 接口安裝,115,Interface Installation,安裝操作系統(tǒng) 測(cè)試到數(shù)據(jù)源的連接 安裝 PI API 安裝PI SDK (如果需要) 測(cè)試到PI服務(wù)器的連接 安裝接口 配置數(shù)據(jù)緩存服務(wù),116,接口安裝,接口安裝過(guò)程 運(yùn)行安裝包或者將接口文件拷貝到安裝路徑下如c:pipcinterfacesifc. PI ICU進(jìn)行接口配置 或者根據(jù)接口文檔的要求手動(dòng)修改.b

35、at 文件里的命令行參數(shù) 通過(guò)交互方式啟動(dòng)接口: ifc.bat 提示:如果接口不能以交互方式啟動(dòng),那它可能將不能作為服務(wù)運(yùn)行,只有在接口能夠以交互方式啟動(dòng)后再將接口作成服務(wù)啟動(dòng),117,PI 接口啟動(dòng),使用腳本文件啟動(dòng) 腳本文件和接口在同一機(jī)器上 每一個(gè)接口都必須有各自的腳本文件,WindowsIfc.bat UnixIfc.sh,118,通用接口參數(shù)說(shuō)明(對(duì)所有接口適用),/PS:數(shù)據(jù)源名 /ID:接口ID號(hào),當(dāng)在同一臺(tái)機(jī)器上運(yùn)行同一個(gè)數(shù)據(jù)源的多個(gè)接口時(shí)可以起到區(qū)分的作用 /F:接口掃描頻率,可設(shè)多個(gè). (ex: /F=00:10:00 /F=08:00:00,07:00:00) /HOS

36、T:PI服務(wù)器名稱和端口號(hào) (ex: /HOST=localhost:5450) /EC:I/O Rate 測(cè)點(diǎn)ID號(hào) /STOPSTAT:當(dāng)接口停止后寫到各個(gè)測(cè)點(diǎn)的狀態(tài),119,掃描頻率,PI接口可以使用多個(gè)不同的時(shí)間頻率進(jìn)行數(shù)據(jù)采集 一個(gè)掃描頻率由時(shí)間和偏移量決定 有四種定義掃描頻率的方法: /f=SSor/f=SS,SSor /f=HH:MM:SSor/f=HH:MM:SS,hh:mm:ss,120,Directed Exercise,Which of the following scan classes is different from the others? /f=5,10 /f=

37、00:00:05, 00:03:05 /f=5,0 /f=00:00:05 Define scan classes for: A scan every hour which scans at 10:25:00 A scan every minute, on the minute A scan every 15 seconds. No preferences on when the first scan is done.,121,接口安裝建議,在數(shù)據(jù)采集端設(shè)置Buffering服務(wù) 接口 安裝成為自動(dòng)的服務(wù) 接口如安裝在PI服務(wù)器上的話應(yīng)包含site-specific 腳本文件,這樣可以隨著PI

38、服務(wù)器的啟停而啟停 (pisvrsitestart.bat and pisrvsitestop.bat) 同步接口端和PI服務(wù)器的時(shí)鐘,如果接口端的時(shí)鐘比PI服務(wù)器時(shí)鐘快10分鐘以上的話數(shù)據(jù)將會(huì)被PI服務(wù)器拒絕,6.2 Uniint-Based Interfaces,123,Uniint-based Interfaces,Uniint: Universal Interface的簡(jiǎn)寫 集成的很多OSIsoft接口中的可復(fù)用代碼 包含一些通用的功能例如: 建立與PI服務(wù)器的連接 處理PI測(cè)點(diǎn)數(shù)據(jù)庫(kù)的變化,124,將接口設(shè)置為服務(wù),將接口安裝為 Windows 服務(wù): Ifc.exe Install

39、 依賴與其他服務(wù)可以如下表示: IFC.exe install depend “bufserv” 當(dāng)系統(tǒng)重啟的時(shí)候自啟動(dòng) IFC.exe install auto 在服務(wù)窗口中顯示服務(wù)名 IFC.exe install auto display “display name”,125,Directed Exercise,Install the PI Ping_basic interface as an automatic service Open a command prompt Access the interface installation directory (pipcinterface

40、sping_basic) Use the Following command: piping_basic.exe install auto Open the Services applet to make sure the service has been installed Start the PI Ping_Basic interface,126,接口運(yùn)行步驟,建立與PI服務(wù)器的連接 建立與數(shù)據(jù)源的連接 從PI服務(wù)器中獲得測(cè)點(diǎn)列表 通過(guò)數(shù)據(jù)源驗(yàn)證測(cè)點(diǎn)配置的有效性 開(kāi)始數(shù)據(jù)采集 注意: 接口啟動(dòng)以后每?jī)煞昼娺B接一次PI服務(wù)器以處理測(cè)點(diǎn)的變化(如測(cè)點(diǎn)增加、修改或刪除),127,基礎(chǔ) PI接口,

41、PI服務(wù)器缺省安裝5個(gè)接口 Simulators Random Interface Ramp_Soak Interface Basic IT Monitoring interfaces PI Ping Basic Interface (limited to 32 data streams) PI SNMP Basic Interface (limited to 32 data streams) PI Performance Monitor Basic Interface (limited to 512 data streams and to local data collection),128

42、,缺省測(cè)點(diǎn)數(shù)據(jù)源,PI Alarm Alarm GroupsG PI Performance EquationC PI TotalizerT PI RTSQCQ PI PerfMon# PI PingJ PI SNMP$ Ramp_soak9 RandomR,129,已經(jīng)被使用的數(shù)據(jù)源,如果一定要修改缺省數(shù)據(jù)源的話: PI Performance Equation, PI PerfMon, PI Ping, PI SNMP, Ramp_soak 和 Random 接口可以通過(guò)修改.bat文件修改數(shù)據(jù)源 PI Alarm和 PI RTSQC 可以通過(guò)修改注冊(cè)鍵來(lái)修改數(shù)據(jù)源 PI Totalize

43、r 接口數(shù)據(jù)源不能被修改,6.3 PI 測(cè)點(diǎn)屬性 接口,131,PI 測(cè)點(diǎn)屬性 接口,Instrument Tag: 數(shù)據(jù)源中測(cè)點(diǎn)的位置或名稱 Extended Descriptor: 詳細(xì)的查詢指令 Exception Specifications: 定義值的變化多大才算有意義 Point Source: 數(shù)據(jù)源名,將測(cè)點(diǎn)按接口分組 Location Codes: 定義數(shù)據(jù)在數(shù)據(jù)源系統(tǒng)中如何定位 Scan: 是否掃描列表中的PI測(cè)點(diǎn) (On/Off),132,使用的典型屬性,Location1:接口ID號(hào) Location4: 掃描頻率號(hào) (見(jiàn)接口啟動(dòng)部分的 /f 參數(shù)),6.5 I/O R

44、ate 測(cè)點(diǎn)和 Performance 測(cè)點(diǎn),134,I/O Rate 測(cè)點(diǎn),I/O Rate 測(cè)點(diǎn)記錄每分鐘送到PI服務(wù)器的事件數(shù) (每十分鐘進(jìn)行一次平均). I/O Rate可以通過(guò)手動(dòng)或PI ICU (Interface Configuration Utility)來(lái)創(chuàng)建,135,Performance 測(cè)點(diǎn),測(cè)點(diǎn)記錄接口掃描一次的秒數(shù) 每一次掃描結(jié)束后數(shù)據(jù)將更新 每個(gè)performance測(cè)點(diǎn)每8小時(shí)(可配置)將統(tǒng)計(jì)結(jié)果送到PI API日志文件里 掃描完成時(shí)間越接近于0,接口性能越好,掃描完成時(shí)間精確到毫秒,136,Performance 測(cè)點(diǎn),Performance 測(cè)點(diǎn)可以通過(guò)手動(dòng)

45、或 PI ICU創(chuàng)建,137,Directed Exercise,You have missed scans and skipped scans on an interface. Here are the scan classes used: /f=10,5 /f=5,0 /f=15,0 How should we modify the offsets to avoid having 2 or more scan classes launched at the same time?,6.6 PI 接口配置工具(Interface Configuration Utility),139,PI 接口

46、配置工具 (PI ICU),接口配置界面包括: 安裝服務(wù) 管理 .bat 文件 顯示日志 配置緩存服務(wù) 創(chuàng)建接口監(jiān)控測(cè)點(diǎn),140,PI ICU Tabs,141,PI ICU Tabs(continued),142,PI ICU Tabs(continued),143,PI ICU Tabs(continued),144,接口測(cè)點(diǎn)配置,145,通過(guò) ICU配置,配置一個(gè)新的接口或修改當(dāng)前接口配置 一旦通過(guò)ICU修改接口啟動(dòng)文件就不要再用手動(dòng)去修改 注意: ICU 需要連接到一個(gè)正在運(yùn)行的PI服務(wù)器,同時(shí)還需要對(duì)模塊數(shù)據(jù)庫(kù)有寫的權(quán)限 Help 菜單包含接口文檔,146,Exercise 9,Cr

47、eate I/O Rates Tags and Performance Points Using ICU Objective: Create I/O Rates Tags and Performance Points Using PI ICU,147,Exercise 10,Using PI ICU to Manage Interfaces Objectives: Learn how to install PI interfaces as services using PI ICU Learn how to configure PI interfaces using PI ICU,6.7 分布

48、式接口和緩存,149,Bufserv 服務(wù),Without buffering,With buffering,PI Server,數(shù)據(jù)采集端,Interface,Buffering Service,Snapshot Subsystem,150,Bufserv 服務(wù),OSIsoft 推薦安裝并使用接口的緩存功能 Buffering 是一個(gè) Windows 服務(wù) bufserv 服務(wù)必須由一個(gè)具有管理員權(quán)限的本地用戶來(lái)運(yùn)行 Buffering 可以通過(guò) pipcdatpiclient.ini 文件或 PI ICU進(jìn)行配置,151,Buffering,使用 pipcbinbufutil 程序監(jiān)控 b

49、uffering 活動(dòng),Interface,PI Server,Memory Buffer #1,Memory Buffer #2,File Buffer (APIBUF.DAT),1,1,1,2,2,2,3,3,4,4,6,5,7,8,5,6,7,8,9,13,12,11,10,14,9,10,11,12,13,14,15,17,16,15,16,17,9,10,11,12,13,14,3,4,14,18,18,5,6,19,19,7,20,20,15,16,17,18,19,20,9,10,11,12,13,14,21,21,15,16,17,18,19,20,22,22,23,23,24

50、,24,數(shù)據(jù)通常以時(shí)間順序送到PI服務(wù)器中,When full, Memory Buffer #2 is flushed to disk and filled again,When the PI server is not available, Memory Buffer #1 fills,Then Memory Buffer #2 fills,In normal operation, data flows through Memory Buffer #1,When communication resumes, Memory Buffer #1 is sent to the server,An

51、d new values are sent to Memory Buffer #2,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,152,PIClient.ini 文件,基本設(shè)置 APIBUFFERBUFFERING=1 PISERVERPIHOMENODE=MyPIServer TCP/IP PORT=5450 其他推薦設(shè)置 PAUSERATE=2RETRYRATE=600MAXFILESIZE=2000000MAXTRANSFEROBJS=500,僅在 UNIX 系統(tǒng)中使用,要使緩存服務(wù)生效必須設(shè)為1,153,PIPC Log Server 服

52、務(wù),The PIPC Log 服務(wù)是一個(gè) Windows 服務(wù) 它控制著: PIPC.log 文件的大小 PIPC.log文件的數(shù)量 PIPC Log Server 可通過(guò)pipc.ini 文件或 PI ICU來(lái)進(jìn)行配置.,154,PI Shutdown 事件 Vol. II, p. 450,當(dāng)PI重啟時(shí)會(huì)將shutdown事件送給每一個(gè)Shutdown 屬性設(shè)為1的測(cè)點(diǎn) 接口重啟時(shí)將會(huì)傳送接口啟動(dòng)文件里 /stopstat 參數(shù)設(shè)置的shutdown 事件 (如 “Intf Shut”),155,Directed Exercise,Open the pipc.log file: Browse

53、 to the following directory pipcdat Open the file named pipc.log,7.0 測(cè)點(diǎn)配置及優(yōu)化,157,測(cè)點(diǎn)創(chuàng)建,測(cè)點(diǎn)可以通過(guò)以下工具創(chuàng)建: PI Tag Configurator PI Point Builder PI Config 下面的工具可以創(chuàng)建專用測(cè)點(diǎn): PI Auto Point Sync (APS), Interface Configuration Utility (ICU), PI Batch Generator Configurator, PI Alarm Group Creator, PI Totalizer Edi

54、tor, PI ACE, PI PerfCreator, PI SNMPUtil,158,設(shè)置恰當(dāng)?shù)?Zero & Span,定義 Zero 和 Span 屬性是要注意因?yàn)? Excdevpercent compdevpercent 的值自動(dòng)根據(jù) span進(jìn)行調(diào)整 Float16 數(shù)值的精度和范圍跟Zero 和 Span屬性相關(guān) Zero和 Span 被 PI ProcessBook中的很多功能使用,159,Step 屬性,Step屬性影響畫面和數(shù)據(jù)壓縮 : exception 測(cè)試使用的是CompDev 屬性值而不是使用compression 算法,160,測(cè)點(diǎn)修改,刪除測(cè)點(diǎn) 歷史數(shù)據(jù)將會(huì)丟

55、失! 沒(méi)有快速的恢復(fù)方法 測(cè)點(diǎn)重命名 使用 Newtag 屬性 測(cè)點(diǎn)可以在保持歷史數(shù)據(jù)的同時(shí)進(jìn)行重命名 DataLink 報(bào)表需要根據(jù)新測(cè)點(diǎn)名進(jìn)行手動(dòng)修改 重命名對(duì) ProcessBook 畫面沒(méi)有影響 (存儲(chǔ)了PointID) Performance 計(jì)算表達(dá)式也需要進(jìn)行手動(dòng)修改.,161,更有效的存儲(chǔ)數(shù)據(jù),有多種因素影響數(shù)據(jù)的存儲(chǔ): Exception 測(cè)試 Compression 測(cè)試 掃描頻率 可以通過(guò)調(diào)整這些設(shè)置來(lái)優(yōu)化數(shù)據(jù)的存儲(chǔ) 需要考慮的因素: 數(shù)據(jù)的精度 性能 存儲(chǔ)空間 網(wǎng)絡(luò),162,DisplayDigits 屬性,范圍從 10 到 5 缺省值是 5 正數(shù)表示小數(shù)位, 負(fù)數(shù)表示

56、有意義的位.,163,FilterCode 屬性,Filtercode indicates the time constant of a first-order filter used to smooth incoming data. OSIsoft 推薦的缺省值是 0. 其他的設(shè)置為:,164,系統(tǒng)指定的屬性,PointID 系統(tǒng)指定的唯一的 ID RecNo 在PI Archive中的記錄號(hào) Creator 創(chuàng)建測(cè)點(diǎn)的用戶 CreationDate 創(chuàng)建測(cè)點(diǎn)的時(shí)間 Changer 修改測(cè)點(diǎn)的用戶 ChangeDate - 修改測(cè)點(diǎn)的時(shí)間,165,SourceTag 和 srcptid屬性,

57、Sourcetag 輸出點(diǎn)的源測(cè)點(diǎn),一些接口使用擴(kuò)展描述 (ExDesc) 來(lái)實(shí)現(xiàn)這個(gè)功能,這個(gè)屬性不保存在測(cè)點(diǎn)數(shù)據(jù)庫(kù)里,它僅僅是一個(gè) srcptid 屬性更直觀的表示方法. srcptid 保存源測(cè)點(diǎn)的 ID.,這個(gè)屬性不能直接修改而是修改 SourceTag 屬性.,166,其他屬性,SquareRoot 一些接口程序會(huì)用到這個(gè)屬性,具體使用情況見(jiàn)接口文檔. TotalCode 一些接口程序會(huì)用到這個(gè)屬性,具體使用情況見(jiàn)接口文檔.,167,字符測(cè)點(diǎn),可以用于實(shí)驗(yàn)室數(shù)據(jù)或其他手工輸入數(shù)據(jù) 存儲(chǔ)其他系統(tǒng)發(fā)來(lái)的信息并將這些信息保存在字符測(cè)點(diǎn)里,168,字符測(cè)點(diǎn),以下工具可以顯示字符測(cè)點(diǎn): PI

58、DataLink 1.7x 及以上版本 (最大 256 個(gè)字符) PI ProcessBook 3.0及以上版本 PI Xval ActiveX (Insertable in any ActiveX control container: PI ProcessBook, Excel, Word, VB, IE 4, IE5, .) Custom application (使用 Extended API) Piconfig session (PISnap 和 Piarc table),169,字符測(cè)點(diǎn),以下工具也有可能講字符信息寫到測(cè)點(diǎn)里: PI Datalink里的 “piputvalx” (使

59、用對(duì)象的.run方法) Custom application. (必須使用擴(kuò)展 API. 如 pipcexcel 下的PIPUTX32.xls 文件.) 一些新的 PI 接口 (ABBIMS Advant, PI OPC, Batch File) Piconfig session (PISnap和Piarc table),170,Lab Tags (手工輸入),PointSource = L Compressing = OFF (0) Step = ON (1) Shutdown = OFF (0) PointType can be any of the valid point types Location1, Location2, Location3, Location4, Location5, Ex

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論