《PI系统管理员培训》由会员分享,可在线阅读,更多相关《PI系统管理员培训(264页珍藏版)》请在金锄头文库上搜索。
1、All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2PITrainingCoursePIPI培训教程培训教程PITR-002-IPISystemmanagerIPI系统管理员EssentialSkill基本技能Version3.3版本3.3All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 22Presentations简介简介简介简介uuInst
2、ructorInstructor讲课人讲课人uuStudentsStudents出席人出席人“Tell about your PI System”“Tell about your PI System”讲述讲述讲述讲述PIPI系统系统系统系统“What is your role with PI?”“What is your role with PI?”在在在在PIPI系统中你们的任务是什么系统中你们的任务是什么系统中你们的任务是什么系统中你们的任务是什么?“What skills do you need to learn?”“What skills do you need to learn?”你
3、们需要掌握哪你们需要掌握哪你们需要掌握哪你们需要掌握哪些技能?些技能?些技能?些技能?All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 23 Course Overview教程概述教程概述教程概述教程概述uuLength:3days时间:时间:3 3天天uuCoursedividedinto4sections4sections教程分为教程分为4 4部分部分uuInteractivecourse:交互式的教程交互式的教程n nPartlecturePartlecture一
4、部分时间用于讲课一部分时间用于讲课n nPartexercisesandexamplesPartexercisesandexamples一部分时间用于练习和例子一部分时间用于练习和例子Note: Chapter and page references are to PI UDS 3.3 SR1注:章节和页码请参考注:章节和页码请参考PI UDS 3。3系统参考系统参考1 Reference Guide (RG), System Management Guide (SMG) and Server Applications (SA)参考手册,系统管理员手册和服务应用参考手册,系统管理员手册和服务应
5、用All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 24Objectives目标目标目标目标uuSystemconfigurationandtagcreation系统配置和标签的创建系统配置和标签的创建uuLearnhowtomanageandmaintainthePIsystem学习如何管理和维护学习如何管理和维护PIPI系统系统uuInstallandtroubleshoot 安装和常见问题安装和常见问题Youareinvitedtoaskquestionsthro
6、ughoutthecourse通过以上的学习你们可以提一些问题通过以上的学习你们可以提一些问题All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 25Course Content (1st Day)教程目录(第一天)教程目录(第一天)教程目录(第一天)教程目录(第一天)1.PISystemPISystemArchitectureArchitecturePIPI系统的结构系统的结构n nOverviewofaPISystem(RG,OverviewofaPISystem(R
7、G,cptcpt.1).1)PIPI系统概述系统概述n nInstallationandSystemSizingInstallationandSystemSizingPIPI系统的安装和大小系统的安装和大小n nPIStartupandShutdownPIStartupandShutdownPIPI的启动和停止的启动和停止2.PIClientToolsReviewPIClientToolsReviewPIPI客户端工具预览客户端工具预览n nPISystemDataFlow(RG,PISystemDataFlow(RG,cptcpt.2).2)PIPI系统数据流量系统数据流量n nDataCo
8、mpression(RG,DataCompression(RG,chptchpt.2).2)数据压缩数据压缩3.PITagAttributesPITagAttributes(RG,(RG,chptchpt.3).3)PIPI标签属性标签属性n nPIPointclassPIPointclassPIPI点类型点类型4.TagConfiguration标签配置标签配置n nPISMT(SMG,PISMT(SMG,chptchpt.2).2)PIPI系统管理工具系统管理工具All rights reserved, All rights reserved, OSI Software, IncOSI S
9、oftware, Inc. 200. 2002 26Course Content (1nd Day continued)教程目录(第一天继续)教程目录(第一天继续)教程目录(第一天继续)教程目录(第一天继续)5.MoreonTagConfiguration,Optimization配置,配置,优化点的更多信息优化点的更多信息n nPointBuilderPointBuilder点的创建点的创建n nDigitalStateSetsDigitalStateSets开关量状态设置开关量状态设置n nPI-PI-HealthCheckHealthCheckPIPI系统诊断工具系统诊断工具All ri
10、ghts reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 27Course Content(2nd Day)教程目录(第二天)教程目录(第二天)教程目录(第二天)教程目录(第二天) 7.PIConfigTool(PIPointConfiguration)(SMG,(SMG,chptchpt.3).3)PIConfigPIConfig工具(工具(PIPI点的配置)点的配置)n nPISystemtablesPISystemtablesPIPI系统的表系统的表n nHelpfulcommand
11、sHelpfulcommands帮助命令帮助命令n nList,create,editdeletetagsList,create,editdeletetags列出,创建,编辑和删除点列出,创建,编辑和删除点n nInput/outputstructuresInput/outputstructures导入导入/ /导出导出 结构结构All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 28Course Content (2nd Day continued)教程目录(第二天继续
12、)教程目录(第二天继续)教程目录(第二天继续)教程目录(第二天继续)8.Security(RG,chpt.3)安全安全n nUserandgroupsUserandgroups用户和组用户和组n nTagsecurityTagsecurity点的安全点的安全n nPITrustPITrustPIPI的信任的信任n nFirewallFirewallPIPI的防火墙的防火墙n nSystemsecuritySystemsecurity系统安全系统安全All rights reserved, All rights reserved, OSI Software, IncOSI Software, I
13、nc. 200. 2002 29Course Content (2nd Day continued)教程目录(第二天继续)教程目录(第二天继续)教程目录(第二天继续)教程目录(第二天继续)10.10.PISystemAdministrationPISystemAdministrationPIPI系统管理系统管理( (SMG,SMG,chptchpt.1).1)n nPIArchiveMaintenancePIArchiveMaintenancePIPI数据库的维护数据库的维护n nPISystemBackupsPISystemBackupsPIPI系统的备份系统的备份11.11.Trouble
14、shootingTroubleshooting疑难解答疑难解答n nPISystemServices(RG,PISystemServices(RG,chptchpt.1).1)PIPI系统服务系统服务n nPIServerapplicationsPIPIServerapplicationsPI服务应用服务应用n nServer-basedInterfacesServer-basedInterfaces服务器基本接口服务器基本接口n nInterfaceStatusutilityInterfaceStatusutility接口状态工具接口状态工具n nPISystemUtilitiesPISys
15、temUtilitiesPIPI系统工具系统工具n nPISystemManagerTasksPISystemManagerTasksPIPI系统任务管理系统任务管理12.12.UsingPIServerModulesUsingPIServerModulesPIPI服务模块的使用服务模块的使用n nPerformanceEquation(PE)andPEPerformanceEquation(PE)andPERecalcRecalc(SA,(SA,chptchpt.2and4).2and4)PEPE方程式和方程式和PEPE计算模块计算模块All rights reserved, All rig
16、hts reserved, OSI Software, IncOSI Software, Inc. 200. 2002 210Course Content(3th Day)教程目录(第三天)教程目录(第三天)教程目录(第三天)教程目录(第三天)uuPIPIProcessBookProcessBook 介绍介绍uuPIPIDataLinkDataLink 介绍介绍uuPIPIActiveViewActiveView 介绍介绍All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002
17、 211一、一、PI数据库的整体介绍数据库的整体介绍1.0PIServerReviewPI服务器简介All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 212什么是什么是PI系统系统PIPI系统是一套基于服务器和客户端结构(即系统是一套基于服务器和客户端结构(即CSCS结构),用于工厂信息的采集、存结构),用于工厂信息的采集、存储和发布浏览的软件系统,是实时历史数据库系统。储和发布浏览的软件系统,是实时历史数据库系统。同时基于同时基于PIPI的实时历史数据库进行更广阔的二
18、次应用提供了一个完整的开发平台。的实时历史数据库进行更广阔的二次应用提供了一个完整的开发平台。PI = Plant InformationAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 213PI的市场定位的市场定位Maintenance设备维护设备维护SCADALab Data实验室数据实验室数据Manual Data人工操作数据人工操作数据Scheduling/Planning计划计划/调度调度Business Systems管理系统管理系统Adv. Contro
19、l &Optimization先进控制先进控制&过程优化过程优化PI - Plant-Wide Time-Stamped DatabasePI是全厂的实时是全厂的实时/历史数据库历史数据库MMIs工控系统工控系统DCS/PLCsAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 214PI系统系统uuPIPI用于电厂数据的自动采集、存储和监视。作为大型实时数据库和用于电厂数据的自动采集、存储和监视。作为大型实时数据库和历史数据库,历史数据库,PIPI可在线存储每个工艺过程
20、点的多年数据。它提供了可在线存储每个工艺过程点的多年数据。它提供了清晰、精确的操作情况画面,用户既可浏览电厂当前的生产情况,清晰、精确的操作情况画面,用户既可浏览电厂当前的生产情况,也可回顾过去的生产情况。可以说,也可回顾过去的生产情况。可以说,PIPI对于电厂的生产运行来说就对于电厂的生产运行来说就如同飞机上的如同飞机上的“ “黑匣子黑匣子” ”一样。一样。 All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 215PI数据库在企业中的应用数据库在企业中的应用例如:企业
21、领导指挥生产使用PI系统前厂长厂长调度室调度室操作工操作工使用PI系统后厂长厂长PI操作工操作工操作工操作工生产装置生产装置生产装置生产装置生产装置生产装置生产装置生产装置生产装置生产装置生产装置生产装置All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 216PI 系统的设计的原则系统的设计的原则uu严格遵守微软标准严格遵守微软标准严格遵守微软标准严格遵守微软标准uu工程实施便宜、快捷工程实施便宜、快捷工程实施便宜、快捷工程实施便宜、快捷uu易学易用易学易用易学易用易学
22、易用uu内嵌微软内嵌微软内嵌微软内嵌微软VBVB,用户可以方便的开发自己的应用程序用户可以方便的开发自己的应用程序用户可以方便的开发自己的应用程序用户可以方便的开发自己的应用程序All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 217PI 系统结构系统结构DataSource(PLC/DCS/Other)数据源PlantInstrumentation工厂设备PIUDS(PIServer)PI服务器PI 客户端工具客户端工具-ProcessBook-DataLink-PI
23、Profile-ODBC-Etc.接口node数据采集节点(带缓存)Enterprise Management工程管理工程管理 -ERP-LIMS-Maintenance二次应用二次应用-性能分析-SQCIntranet/Internet内部网内部网/因特网发布因特网发布 -PIICE-PIActiveView-ReportsAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 218PI系统服务器的组成系统服务器的组成uuHistorian (Archive) Histo
24、rian (Archive) 历史数据档案历史数据档案历史数据档案历史数据档案uuPerformance Equations Performance Equations 执行计算执行计算执行计算执行计算uuReal-Time Database & Alarming Real-Time Database & Alarming 实时数据与报警实时数据与报警实时数据与报警实时数据与报警uuBatch Analysis Tools (PI-Batch Server)Batch Analysis Tools (PI-Batch Server)批处理分析工具批处理分析工具批处理分析工具批处理分析工具( (
25、PI-PI-批处理服务器批处理服务器批处理服务器批处理服务器) )uuODBC for Relational Database InterfaceODBC for Relational Database Interface和关系型数据的和关系型数据的和关系型数据的和关系型数据的ODBCODBC接口接口接口接口uu2 200+ 00+ Gateways to DCS, PLC, LIMS Gateways to DCS, PLC, LIMS 200200个以上和个以上和个以上和个以上和DCSDCS、PLCPLC、LIMSLIMS的接口的接口的接口的接口uuLink to SAP R/3 and
26、Other SystemsLink to SAP R/3 and Other Systems和和和和SAP R/3SAP R/3以及其他系统连接以及其他系统连接以及其他系统连接以及其他系统连接uuAPI/SDK API/SDK 提供提供提供提供API/SDKAPI/SDK等开发包等开发包等开发包等开发包PIAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 219PI系统可以与超过系统可以与超过200多套的系统连接多套的系统连接Landis & Gyr BaytekAll
27、 rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 220PI的接口的接口uu每台每台PIPI服务器都可同时与一个或多个现场控制系统连接,并可读服务器都可同时与一个或多个现场控制系统连接,并可读/ /写几乎任何实时设备或数据库。写几乎任何实时设备或数据库。PIPI可以被用来在多个不同控制厂商可以被用来在多个不同控制厂商的产品之间传送数据信息。这种灵活的,功能强大的结构为实时信的产品之间传送数据信息。这种灵活的,功能强大的结构为实时信息系统结构设计的优化提供了极大的自由度。息系统
28、结构设计的优化提供了极大的自由度。 All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 221PI系统客户端的组成系统客户端的组成uuPI-PI-ProcessBookProcessBook 图形、趋势软件图形、趋势软件图形、趋势软件图形、趋势软件uuPI-PI-DatalinkDatalink (Excel Interface) (Excel Interface) 报表软件报表软件报表软件报表软件uuPI-PI-BatchViewBatchView 批处理软件批处理软件
29、批处理软件批处理软件uuPI-SQC PI-SQC 质量管理软件质量管理软件质量管理软件质量管理软件uuPI-ODBC (SQL Queries) ODBCPI-ODBC (SQL Queries) ODBC接口软件接口软件接口软件接口软件uuPI Database ConfigurationPI Database ConfigurationUtilities Utilities “ “PIPI数据库组态工具数据库组态工具数据库组态工具数据库组态工具” ” All rights reserved, All rights reserved, OSI Software, IncOSI Softwa
30、re, Inc. 200. 2002 222PI客户端客户端uuPIPI客户端的应用程序可使用户很容易对工厂级和公司级的生产实施客户端的应用程序可使用户很容易对工厂级和公司级的生产实施管理,诸如改进工艺,优化运行,故障预防维护等。通过管理,诸如改进工艺,优化运行,故障预防维护等。通过PIPI可集成可集成生产计划、设备维护管理、专家系统、生产计划、设备维护管理、专家系统、LIMSLIMS和优化和优化/ /建模等应用程建模等应用程序序。 All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200
31、. 2002 223PI-ProcessBookAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 224ProcessBook支持用户用支持用户用VB开发自己的应用程开发自己的应用程序序All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 225PI-Datalink (报表软件报表软件)All rights reserved, All rights
32、 reserved, OSI Software, IncOSI Software, Inc. 200. 2002 226PISMT:PI Tags管理软件管理软件 All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 227PIActiveView软件软件网络发布网络发布浏览浏览PI的报表和显示的报表和显示4 “OSI公司提供的标准开发工具公司提供的标准开发工具”4 “用通用的浏览器软件用通用的浏览器软件,如如:IE,Netscape”4 支持内嵌支持内嵌ProcessBo
33、ok文件(文件(*.pdi)以及以及Word文件文件 “PI用户不必需要专业的用户不必需要专业的Web开发技术开发技术”All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 228All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 229整个企业应用整个企业应用uu由于电厂的实时由于电厂的实时由于电厂的实时由于电厂的实时/ / / /历史数据存放在统一
34、的数据仓库中,历史数据存放在统一的数据仓库中,历史数据存放在统一的数据仓库中,历史数据存放在统一的数据仓库中,通过客户通过客户通过客户通过客户/ /服务器结服务器结服务器结服务器结构或者构或者构或者构或者Intranet Intranet 浏览,公司里的每个人都可获得工厂的生产数据浏览,公司里的每个人都可获得工厂的生产数据浏览,公司里的每个人都可获得工厂的生产数据浏览,公司里的每个人都可获得工厂的生产数据uu信息系统可以让系统管理员在远程管理系统信息系统可以让系统管理员在远程管理系统信息系统可以让系统管理员在远程管理系统信息系统可以让系统管理员在远程管理系统PIPIPIPIAll rights
35、 reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 230PI数据库服务器数据库服务器All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 231PI服务器安装目录服务器安装目录uu安装完安装完PIPI系统后如下:系统后如下:uuPIPIn nADMADM-管理工具管理工具n nBINBIN-二进制或程序文件二进制或程序文件n nDATDAT-数据档案以及测点信息、用户信
36、息等数据档案以及测点信息、用户信息等n nLOGLOG-信息日志文件信息日志文件n nSETUPSETUP增添的安装工具包增添的安装工具包n nLibLibPIPI所使用的库文件所使用的库文件* * * *All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 232PI客户端安装目录客户端安装目录uuPIPC(通常安装在ProgramFilesPIPC)n nINTERFACESINTERFACES-接口程序接口程序n nDATDAT-PI-PI的配置和日志文件的配置和日志
37、文件l lPilogin.iniPilogin.ini-服务器连接服务器连接 配置文件配置文件l lPipc.logPipc.log-主要的客户端日志文件主要的客户端日志文件n nBINBIN-PIAPI-PIAPI程序文件和工具程序文件和工具n nPROCESSBOOK,DATALINK,BATCHVIEW,etc.PROCESSBOOK,DATALINK,BATCHVIEW,etc.* * * *All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 233PI Syst
38、em Startup and ShutdownuuStartPIservicesStartPIservices启动启动PIPI服务服务n n pipiadmadmpisrvstart.batpisrvstart.bat(startsPIandinterfaces)(startsPIandinterfaces)(不是不是PISTART.BATPISTART.BAT文件)文件)n n在控制面板中手动启动每个服务在控制面板中手动启动每个服务uuStopPIservicesStopPIservices停止停止PIPI服务服务n n pipiadmadmpisrvstop.batpisrvstop.ba
39、t(stopsPIandinterfaces)(stopsPIandinterfaces)n n在控制面板中手动停止每个服务在控制面板中手动停止每个服务All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 234PI系统的进程服务系统的进程服务1.1.PInetMGRPInetMGR PIPI网络管理器网络管理器2.2.PImsgssPImsgss PIPI信息子系统信息子系统3.3.PIupdmgrPIupdmgrPIPI更新管理更新管理4.4.PIbasessPIbas
40、essPIPI基本子系统基本子系统5.5.PISnapssPISnapss PISnapshotPISnapshot闪存快照子系统闪存快照子系统6.6.PIArchssPIArchss PIPI数据档案子系统数据档案子系统7.7.PIShutevPIShutevPISHUTDOWNPISHUTDOWN子系统子系统8.8.PISqlSSPISqlSSPISQLPISQL子系统子系统All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 235 9.9.PITotalPITota
41、lPIPI计算子系统计算子系统10.10.PIBatchPIBatchPIPI批处理子系统批处理子系统11.11.PIAlarmPIAlarm PIPI报警子系统报警子系统12.12.PipeschdPipeschdPIPI执行方程式子系统执行方程式子系统All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 236uuInterfaceProcessesInterfaceProcessesn nrandom:random: RandomRandom和和SinusoidSin
42、usoid模拟模拟n nRamp_soak:Ramp_soak:RampSoakRampSoak批处理模拟批处理模拟n npirecalcpirecalc: :PIPI重复计算子系统重复计算子系统n npiperfmon_basicpiperfmon_basic: :PIPerformanceMonitorPIPerformanceMonitorn npiping_basicpiping_basic: :PIPINGPIPING接口接口n npisnmp_basicpisnmp_basic: :PISNMPPISNMP接口接口n nPibagenPibagen: :PIBatchGenerat
43、orPIBatchGeneratorAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 237PI子系统子系统Foreign DataSourceClient NodeAPI InterfacenodePINet NodePIonPINetNodePINetworkManagerPI UDS CoreSubsystemsSnapshotArchiveRedirectorUpdate MgrBaseMessagePI SQLWindows NT/2000 ComputerU
44、tilitiesInterfacesRandom SimulatorRampSoak SimulatorPerformance MonitorSNMPPingServer ApplicationsEquationsBatchAlarmRecalculatorSQCTotalizerBatch GeneratorAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 238PI系统服务系统服务uu核心子系统核心子系统n nPI Network ManagerPI Network
45、 Manager:PI:PI网络管理器:提供驻留在网络管理器:提供驻留在PIPI主机节点主机节点上的上的PIUDSPIUDS子系统间的连接子系统间的连接n nPI Message SubsystemPI Message Subsystem:PI:PI信息子系统:为信息子系统:为PIUDSPIUDS在一个日志在一个日志文件中记录状态和出错信息文件中记录状态和出错信息n nPI Update SubsystemPI Update Subsystem:PI:PI更新子系统:发送值或者点属性的改更新子系统:发送值或者点属性的改变报告到一些接口或客户端应用程序变报告到一些接口或客户端应用程序n nPI
46、Base SubsystemPI Base Subsystem:PI:PI基本子系统:维护点,开关量状态,用基本子系统:维护点,开关量状态,用户,组数据库和户,组数据库和PIPI模块数据库模块数据库n nPI Snapshot SubsystemPI Snapshot Subsystem:PI:PI闪寸快照子系统:存储每个点多数闪寸快照子系统:存储每个点多数最新的值,能使它作为用户和应用程序的需要最新的值,能使它作为用户和应用程序的需要All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 20
47、0. 2002 239uu核心子系统核心子系统n nPI Archive SubsystemPI Archive Subsystem:PI:PI归档子系统:存储每个数据点测量的归档子系统:存储每个数据点测量的多数时间标签值多数时间标签值n nPI Shutdown SubsystemPI Shutdown Subsystem:PIShutdown:PIShutdown子系统:当子系统:当PIPI停下时,停下时,将写数值将写数值shutdownshutdown到到shutdownshutdown属性被配置为属性被配置为1 1的所有标签的所有标签n nPI SQL SubsystemPI SQL
48、Subsystem:PISQL:PISQL子系统:处理子系统:处理SQLSQL语句的软件模块,语句的软件模块,包括那些被包括那些被PIODBCPIODBC驱动提交的驱动提交的n nPI RedirectorPI Redirector: :被基本、归档和闪存快照子系统用做从外部系统被基本、归档和闪存快照子系统用做从外部系统获得数据获得数据All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 240PI System ServicesuuPIPI服务应用程序服务应用程序n nP
49、IPerformanceEquationsSchedulerPIPIPerformanceEquationsSchedulerPI性性能方程式调度能方程式调度n nPIPITotalizerTotalizerPIPI累加累加n nPIBatchSubsystemPIPIBatchSubsystemPI批处理子系统批处理子系统n nPIAlarmSubsystemPIPIAlarmSubsystemPI报警子系统报警子系统n nPIRT-SQCPIRT-SQCAll rights reserved, All rights reserved, OSI Software, IncOSI Softwa
50、re, Inc. 200. 2002 241PI System ServicesuuPIInterfaces(installedwithPIServer)PIInterfaces(installedwithPIServer)PIPI接口(与接口(与PIPI服务器安装)服务器安装)n nPIRampSoakSimulatorPIRampSoakSimulatorn nPIRandomSimulatorPIRandomSimulatorn nPIPIRecalculatorRecalculatorSubsystemSubsystemn nPIPerformanceMonitorPIPerforma
51、nceMonitor* *n nPIPingDataMeasurementProgramPIPingDataMeasurementProgram* *n nPISNMPInterfacePISNMPInterface* *n nPIBatchGeneratorPIBatchGeneratorAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 242PI UDS - Hardware PlatformsPIPI 2 (Classic PI)VMS/O-VMS-Vax/AXP
52、PI 3 (PI UDS)WindowsNT/2000-IntelUnix-IBM /DEC /HP /SUNClientsWindows 95/98/MEWindows NT/2000/XPPI PI Net node (VMS)PI PI API nodeAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 243Pre-InstallationPI PI 安装准备安装准备安装准备安装准备uuChooseaChooseareliablearchitecturerelia
53、blearchitecture选择一个可靠结构选择一个可靠结构n nUseadatacollectionnodeUseadatacollectionnode(APINode)(APINode)接口机接口机n nUsebrandnamehardwareUsebrandnamehardware品牌硬件品牌硬件n nConsideraredundantarchitectureConsideraredundantarchitecture考虑冗余考虑冗余uuChooseChooseoperatingsystemoperatingsystem(Software)(Software)选择操作系统选择操作系统
54、uuSizehardwareSizehardwareaccordingtoOSIaccordingtoOSIrecommendationsrecommendations根据根据OSIOSI的推荐选择硬件型号的推荐选择硬件型号Recommendations:Recommendations:推荐推荐n nInstallPIonanNTFSpartitionInstallPIonanNTFSpartition在在NTFSNTFS分区上安装分区上安装PIPIn nExcludePIdirectoriesfromvirusscanningsoftwareExcludePIdirectoriesfromv
55、irusscanningsoftware对对PIPI的目录进行的目录进行病毒扫描病毒扫描All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 244uuThefollowingdataisrequestedduringtheThefollowingdataisrequestedduringtheinstallation:installation:以下资料为安装时所遇到的信息以下资料为安装时所遇到的信息n nCompanyandusernameCompanyanduserna
56、me公司和用户名称公司和用户名称n nUniqueIDnumberofyourPIsystem(providedbyOSI)UniqueIDnumberofyourPIsystem(providedbyOSI)PIPI系统唯一的系统唯一的IDID号号n nSysteminstallationdirectory(default:c:pi)Systeminstallationdirectory(default:c:pi)系统安装目录系统安装目录n nArchivesize(default:32MB)Archivesize(default:32MB)数据档案大小数据档案大小n nInstallati
57、onofdefaultPItagsInstallationofdefaultPItags安装缺省的测试点安装缺省的测试点(default:yes)(default:yes)n nAutomaticstartupofPIservicesAutomaticstartupofPIservices自动启动自动启动PIPI服务服务(default:yes)(default:yes)n nInstallationofsupportsymbolsInstallationofsupportsymbols安装支持的字符安装支持的字符Demonstration:InstallationofaPIserverDem
58、onstration:InstallationofaPIserverPIPI安装的演示安装的演示Installation of a PI SystemPIPI系统的安装系统的安装系统的安装系统的安装All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 245Archive and Buffer Sizing数据档案和缓存的大小数据档案和缓存的大小数据档案和缓存的大小数据档案和缓存的大小uuDiskspaceDiskspace PIServerPIServersizing:s
59、izing:PIPI服务器硬盘空间大小服务器硬盘空间大小n nFloat16,Int16andDigital:Float16,Int16andDigital:3 3bytes/valuebytes/value3 3字节字节/ /值值n nFloat32andInt32:Float32andInt32:5 5bytes/valuebytes/value5 5字节字节/ /值值n nFloat64:Float64:9 9bytes/valuebytes/value9 9字节字节/ /值值uuDiskspaceAPINodeDiskspaceAPINodesizing:sizing:接口机硬盘空间大
60、小接口机硬盘空间大小n nAllvalues:Allvalues: 2727 bytes/valuebytes/value2727字节字节/ /值值All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 246Sizing Example尺寸大小事例尺寸大小事例尺寸大小事例尺寸大小事例uuExample:Example:1000tagPISystem1000tagPISystem 例子:例子:PIPI系统系统10001000个测点个测点n n20%digitalat1valu
61、eper30minutes20%digitalat1valueper30minutes 20%20%开关量平均开关量平均1 1值值/30/30MINMINn n80%analogat1valueper5minutes80%analogat1valueper5minutes 80%80%模拟量平均模拟量平均1 1值值/5/5MINMINn n PIServerArchivesizePIServerArchivesize:PI:PI服务器数据档案大小:服务器数据档案大小:n n1000*(0.2*3/30+0.8*5/5)*1440*365/1E9=1000*(0.2*3/30+0.8*5/5)*
62、1440*365/1E9=0.43GB/Year0.43GB/Yearn nForsystemmanagementpurposes,wewishtohaveanarchiveshiftForsystemmanagementpurposes,wewishtohaveanarchiveshiftevery3to5weeks.every3to5weeks.Wewillthencreate12archivesof36MBeachWewillthencreate12archivesof36MBeach为了系统管理目的,我们希望数据档案每为了系统管理目的,我们希望数据档案每3 3到到5 5周转换一次。然后
63、我们将创周转换一次。然后我们将创建建1212个大小为每个个大小为每个3636MBMB的数据档案。的数据档案。uuAPInodeBuffersizeAPInodeBuffersize:API:API接点机缓存大小接点机缓存大小n n1000*(0.2*27/30+0.8*27/5)*1440/1E6=1000*(0.2*27/30+0.8*27/5)*1440/1E6=6.5MB/Day6.5MB/Dayn nThebuffersizeshouldbeplannedfora3dayweekend.(Thebuffersizeshouldbeplannedfora3dayweekend.(3*6.
64、5MB=3*6.5MB=20MBBuffer20MBBuffer) )缓存大小为一周缓存大小为一周3 3天天All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 247Memory Requirements内存要求内存要求内存要求内存要求uuMinimalmemoryrequirementsMinimalmemoryrequirements(PIServerand(PIServerandAPINode)APINode)最小内存要求(最小内存要求(PIPI服务器和服务器和AP
65、IAPI接点机)接点机)n nMemory=(numberoftags*7)/1024+64MBMemory=(numberoftags*7)/1024+64MBuuExample:foraPISystemwithExample:foraPISystemwith1000tags1000tags: :n n(1000*7)/1024+64MB=(1000*7)/1024+64MB=67MB(minimum)67MB(minimum)uuForoptimalperformance,thefollowingisForoptimalperformance,thefollowingisrecommend
66、ed:recommended:最佳方案,以下为推荐:最佳方案,以下为推荐:n n1000tags:256MBRAM1000tags:256MBRAMn n10000tags:512MBto1GBRAM10000tags:512MBto1GBRAMn n20000tags:1GBto2GBRAM20000tags:1GBto2GBRAMAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 248Post Installation安装安装安装安装uuSizeandcreateP
67、IarchivesSizeandcreatePIarchives创建数据档案以及大小创建数据档案以及大小uuAdjustsystemsecurityAdjustsystemsecurity( (PITrustPITrust, ,PIFireWallPIFireWall, ,DBSecurityDBSecurity,Users,UsersandGroups)andGroups)调整系统安全设置调整系统安全设置uuValidatehardwaresizingValidatehardwaresizing(Memory,diskandCPU)(Memory,diskandCPU)确认硬件大小要确认硬件
68、大小要求求uuChangethePIADMINpasswordChangethePIADMINpassword! !改变改变PIDAMINPIDAMIN密码密码uuConfigureandtestbackupprocedureConfigureandtestbackupprocedure配置和测试备份过程配置和测试备份过程uuConfigureremoteaccessfortechsupportConfigureremoteaccessfortechsupport配置远程技术支持入口配置远程技术支持入口uuDisablevirusscanningonthepiDisablevirusscann
69、ingonthepidatdatdirectorydirectory使病毒扫描在该目录使病毒扫描在该目录下无效下无效uuDisableNTFSfilecompressiononthepidirectoryDisableNTFSfilecompressiononthepidirectory使该目录下用使该目录下用NTFSNTFS文件格式压缩成为可能文件格式压缩成为可能uuEnablePIPing,PISNMP,PIEnablePIPing,PISNMP,PIRecalcRecalcandPIandPIPerfmonPerfmoninterfacesinterfaces使这些接口通讯成为可能使这些
70、接口通讯成为可能All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 249Upgrading PIPIPI的升级的升级的升级的升级uuOnthePIUDSservershutdownPIandPIAPIOnthePIUDSservershutdownPIandPIAPIrelatedservices(ThePIAPIorrelatedservices(ThePIAPIorPINetPINetnodesnodesshouldnotbeshutdown).shouldnotb
71、eshutdown).停止停止PIPI和与和与PIAPIPIAPI有关的所有服务有关的所有服务(PIAPIPIAPI或或PINTPINT节点可以不停止)节点可以不停止)uuBackupPIdirectoryBackupPIdirectory备份目录备份目录 uuUpgradeaccordingtodocumentationUpgradeaccordingtodocumentation根据文档进行升根据文档进行升级级uuExecutepost-upgradestepsExecutepost-upgradesteps实施以下升级步骤实施以下升级步骤n nSetservicestoautoSetse
72、rvicestoauto设置服务为自动设置服务为自动n nUpdatethe*.newfilesfoundin.piUpdatethe*.newfilesfoundin.piadmadmwithyourwithyoursitespecificcommandssitespecificcommands用命令行更新该目录下的文件用命令行更新该目录下的文件n nuuStartPIStartPI启动启动PIPIAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 250PI Serv
73、er Installation PathPIPI服务器安装目录服务器安装目录服务器安装目录服务器安装目录uuPIPIn nADMADM-Administrationtools-Administrationtools管理工具管理工具n nBINBIN-“Binaries”orprogram-“Binaries”orprogramfilesfiles二进制或程序文件二进制或程序文件n nDATDAT-Datafiles(archives,pointDB,etc.)-Datafiles(archives,pointDB,etc.)数据档案数据档案n nLOGLOG-Messagelogfiles-M
74、essagelogfiles信息日志文件信息日志文件n nSETUPSETUPAdditionalinstallkitsAdditionalinstallkits增添的安装工具包增添的安装工具包* * * *All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 251PI Client Installation PathPIPI客户端安装目录客户端安装目录客户端安装目录客户端安装目录uuPIPC(usuallyProgramFilesPIPC)PIPC(usuallyPro
75、gramFilesPIPC)n nINTERFACESINTERFACES-Datafiles(archives,pointDB,etc.)-Datafiles(archives,pointDB,etc.)数据文件(数据档案,点数据库)数据文件(数据档案,点数据库)n nDATDAT-Configurationandlogfiles-Configurationandlogfiles配置和日志文件配置和日志文件l lPilogin.iniPilogin.ini-serverconnections-serverconnections服务器连接服务器连接 配置文件配置文件l lPipc.logPip
76、c.log-mainclientlogfile-mainclientlogfile主要的客户端日志文件主要的客户端日志文件n nBINBIN-PIAPIProgramfilesandtools-PIAPIProgramfilesandtoolsPIAPIPIAPI程序文件和工程序文件和工具具n nPROCESSBOOK,DATALINK,BATCHVIEW,etc.PROCESSBOOK,DATALINK,BATCHVIEW,etc.uur r* * * *All rights reserved, All rights reserved, OSI Software, IncOSI Softwa
77、re, Inc. 200. 2002 252PI System Startup and ShutdownuuStartPIservicesStartPIservices启动启动PIPI服务服务n npipiadmadmpisrvstart.batpisrvstart.bat(startsPIandinterfaces)(startsPIandinterfaces)n npipiadmadmpisrvsitestart.batpisrvsitestart.bat(startsinterfacesonly)(startsinterfacesonly)n nManuallystarteachserv
78、iceusingcontrolpanelservicesManuallystarteachserviceusingcontrolpanelservices在控制面板中手动启动每个服务在控制面板中手动启动每个服务uuStopPIservicesStopPIservices停止停止PIPI服务服务n npipiadmadmpisrvstop.batpisrvstop.bat(stopsPIandinterfaces)(stopsPIandinterfaces)n npipiadmadmpisrvsitestop.batpisrvsitestop.bat(stopsinterfacesonly)(s
79、topsinterfacesonly)n nManuallystopeachserviceusingcontrolpanelservicesManuallystopeachserviceusingcontrolpanelservices在控制面板中手动停止每个服务在控制面板中手动停止每个服务All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 253PI Shutdown Events Vol. II, p. 450 PI Shutdown事件事件uuPIaddsshutd
80、owneventstoallthetagsthathavethePIaddsshutdowneventstoallthetagsthathavetheShutdownShutdown flagsetto1Shutdownflagsetto1Shutdown属性设置为属性设置为1 1时,将会给所有的测点添加时,将会给所有的测点添加ShutdownShutdown事件事件uuTheprocessTheprocessPIShutEvPIShutEvrunsatPIstartupandwritesashutdownrunsatPIstartupandwritesashutdowneventeventP
81、IPI启动时启动时PIShutEvPIShutEv进程运行,也会写入进程运行,也会写入shutdownshutdown事件事件uuThefileThefilepipidatShutdown.datdatShutdown.datcontainstherulesthatindicatewhichcontainstherulesthatindicatewhichtagsgettheshutdowneventtagsgettheshutdownevent该文件包含测点出现该文件包含测点出现shutdownshutdown事件的所有规则事件的所有规则TheThepishutevpishutevprogr
82、amcanberunmanuallyprogramcanberunmanuallytoaddshutdownevents.toaddshutdownevents.pishutevpishutev 被用做手动添加被用做手动添加shutdownshutdown事件事件uuUsethe/Usethe/stopstatstopstatswitchonDataAcquisitionnodestowriteswitchonDataAcquisitionnodestowriteshutdowneventsshutdownevents在接口机配置在接口机配置/ /stopstatstopstat 参数将会写入
83、参数将会写入shutdownshutdown事件事件BackAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 22.0 PI Client Tools ReviewPIPI客户端工具简介客户端工具简介客户端工具简介客户端工具简介All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 255What are OSIs client tools?OSIOS
84、I的客户端工具是什么?的客户端工具是什么?的客户端工具是什么?的客户端工具是什么?uuPIClientToolsPIClientTools(PI(PIProcessBookProcessBook,PI,PIDataLinkDataLink,PIProfile,PI,PIProfile,PIManualLogger,PIControlMonitor,PIManualLogger,PIControlMonitor,PIBatchViewBatchView,PI,PISQC)SQC)PIPI客户端工具客户端工具n nBydefaulttheseuseport5450Bydefaulttheseuse
85、port5450缺省端口为缺省端口为54505450uuPIAPIPIAPI(ApplicationProgrammingInterface)(ApplicationProgrammingInterface)PIPI应用程序接口应用程序接口uuPISDKPISDK(SoftwareDevelopmentKitobjectoriented)(SoftwareDevelopmentKitobjectoriented)PIPI软件软件开发包工具开发包工具- -目标定向目标定向uuPIODBC/PIOLEDBPIODBC/PIOLEDB (ODBCDriver/OLEDBclient)(ODBCDri
86、ver/OLEDBclient)uuPIInterfacesPIInterfaces(95%areRead/WriteInterfaces.Example:(95%areRead/WriteInterfaces.Example:RDBMSInterface,RDBMSInterface,SemAPISemAPIInterface)Interface)PIPI的接口(的接口(95%95%为读为读/ /写接口。写接口。例如:例如:RDBMSINTERFACERDBMSINTERFACE,SEMAPIINTERFACESEMAPIINTERFACE)All rights reserved, All
87、rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 256PI ProcessBookuuPIPIProcessBookProcessBook:Asoftwarethatletsusersbuild:Asoftwarethatletsusersbuildandvisualizeprocessmimics,valuesandandvisualizeprocessmimics,valuesandtrends.trends.PIPIProcessBookProcessBook: :是一个可以让用户创建和构思与现场工序极其相似的
88、值图和趋势图的软件是一个可以让用户创建和构思与现场工序极其相似的值图和趋势图的软件All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 257PI DataLinkuuPI PI DataLinkDataLink:MicrosoftExcelLotus123Add-In:MicrosoftExcelLotus123Add-Inn nThisAdd-InletsyouextractvaluesfromthePISystemThisAdd-Inletsyouextractval
89、uesfromthePISystemandcopythemtoaspreadsheetforfurtheranalysisandcopythemtoaspreadsheetforfurtheranalysisPI PI DataLinkDataLink: :可加载入微软的可加载入微软的EXCELEXCEL表格表格 LOTUS123LOTUS123该工具可以让你从该工具可以让你从PIPI中取值并且复制它们到电子表格中以用于将来的分析。中取值并且复制它们到电子表格中以用于将来的分析。All rights reserved, All rights reserved, OSI Software, In
90、cOSI Software, Inc. 200. 2002 258PI API ConnectionPI APIPI API的连接的连接的连接的连接Changesherearestoredinpipcdatpilogin.ini在该配置文件下改变它All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 259PI API LoginPI API PI API 登陆登陆登陆登陆All rights reserved, All rights reserved, OSI Softw
91、are, IncOSI Software, Inc. 200. 2002 260PI API Tag SearchPI API PI API 标签搜索标签搜索标签搜索标签搜索All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 261PI API Tag InformationPI API PI API 标签信息标签信息标签信息标签信息All rights reserved, All rights reserved, OSI Software, IncOSI Softwar
92、e, Inc. 200. 2002 262PI SDK ConnectionsPI SDKPI SDK连接连接连接连接uuThenewerclientssuchasPIThenewerclientssuchasPIPointBuilderPointBuilderusedifferentdialogsusedifferentdialogs较新的客户端例如较新的客户端例如PIPOINTBUILDERPIPOINTBUILDER用不同的对话框用不同的对话框uuEventuallyallPIClientswillusethePISDKdialogsEventuallyallPIClientswillu
93、sethePISDKdialogs最终所有的客户端都要用最终所有的客户端都要用PISDKPISDK对话框对话框ChangesherearestoredintheRegistryChangesherearestoredintheRegistry在注册表改变位置和存储在注册表改变位置和存储All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 263PI SDK Tag SearchPISDKPISDK标签搜索标签搜索标签搜索标签搜索All rights reserved, Al
94、l rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 264PI SDK Tag Information PI SDK PI SDK 标签信息标签信息标签信息标签信息All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 265PI Time Stamp FormatPIPI时间标签格式时间标签格式时间标签格式时间标签格式Absolute绝对时间uThetimestampdoesnotdependon
95、thecurrenttime时间标签不依赖于当前时间Example:例如18-dec-0216:00:00GoRelative相对时间uThetimestampdependsonthecurrenttime时间标签依赖于当前时间uEverytimethevaluesareupdated,thetimestampsareupdated没一个时间被更新,时间标签也被更新Example:例如t+8hSetsthetimeformidnightplus8hours(today)+8hoursGoAll rights reserved, All rights reserved, OSI Software
96、, IncOSI Software, Inc. 200. 2002 266Absolute Format绝对时间格式绝对时间格式绝对时间格式绝对时间格式dd-mmm-yyHH:mm:ssddDaymmm Month(Jan,Feb,Mar,Apr,May)yyYearHHHoursin24hoursformatmmMinutesssSecondsExample:例如18-dec-0210:43:29BackAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 267Rela
97、tive Time Syntax相对时间的语法相对时间的语法相对时间的语法相对时间的语法BackAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 268System Data Flow Path系统数据流向系统数据流向系统数据流向系统数据流向 ( (p. 21)p. 21)INTERFACEINTERFACE接口接口接口接口uuTagscannedforneweventsTagscannedfornewevents扫描到新的事件扫描到新的事件uuExceptionTes
98、t(performedbyDCSorInterface)ExceptionTest(performedbyDCSorInterface)例外测试(在例外测试(在DCSDCS中或接口机上)中或接口机上)PI SERVER PIPI SERVER PI服务器服务器服务器服务器uuSnapshotValue(keepsthemostrecentvalue)SnapshotValue(keepsthemostrecentvalue)SNAPSHOTSNAPSHOT值(保持最近值(保持最近的一个值)的一个值)1.1.CompressionTest(swingingdooralgorithm)Compre
99、ssionTest(swingingdooralgorithm)压缩测试压缩测试 (旋转门算(旋转门算法)法)uuEventQueue(buffersincomingevents)EventQueue(buffersincomingevents)事件队列事件队列 (出现事件的缓存)(出现事件的缓存)uuScaling(forfloat16tagsonly).Scaling(forfloat16tagsonly).整型(只用于整型(只用于FLOAT16FLOAT16类型)类型)uuArchiveCache(performance)ArchiveCache(performance)归档归档 (最终
100、行为)(最终行为)2.2.ArchiveEventArchiveEvent归档事件归档事件All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 269Data Flow数据流向数据流向数据流向数据流向DataAcquisitionNode(PIAPINode)PIServerPIcompressionAlgorithmPIArchivesSnapshotReadnewvalues(onexceptionorbyscan)ExceptionReportRecommendati
101、on:Performdataacquisitionasfastaspossible.Useandsetexceptionandcompressionalgorithmappropriately.推荐:数据的获得是很快的,应该适当的设置例外和压缩的参数。All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 270Exception Reporting Test (RG, chpt. 2) 例外测试报告例外测试报告例外测试报告例外测试报告uuAvalueviolatesthee
102、xceptiontestifAvalueviolatestheexceptiontestif: : 以下将会出现例外以下将会出现例外n nItsvaluediffersfromthepreviousvaluebytheItsvaluediffersfromthepreviousvaluebytheexceptiondeviationspecification(exceptiondeviationspecification(ExcDevExcDev) ) ORORthetimethetimesincethelastexceptionisgreaterorequaltothesincethelas
103、texceptionisgreaterorequaltothemaximumexceptiontime(maximumexceptiontime(ExcMaxExcMax) ) 一个值与上一个值相比差值大一个值与上一个值相比差值大于了例外偏差值或者一个值上一次例外出现后的时间大于或等于最大例外时间。于了例外偏差值或者一个值上一次例外出现后的时间大于或等于最大例外时间。BUTBUT但是但是n nNovaluesarereporteduntiltheNovaluesarereporteduntiltheminimumexceptionminimumexceptiontime(time(ExcMin
104、ExcMin) )haselapsedsincethelastexception.haselapsedsincethelastexception.自从上一次例外后,经过了最小例外时间而没有值被报告自从上一次例外后,经过了最小例外时间而没有值被报告uuWhenavalueviolatesthistest,thatvalueandtheWhenavalueviolatesthistest,thatvalueandthepreviousvaluearereportedpreviousvaluearereported当一个值出现了例外测试,则这个值与当一个值出现了例外测试,则这个值与上一个值都将被报告
105、上一个值都将被报告All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 271Exception Report例外报告例外报告例外报告例外报告uuTagrangeform0to100,Tagrangeform0to100,scanscanevery10sec.every10sec.uuExcDevExcDev=1EngUnit,=1EngUnit,ExcMaxExcMax=600sec.=600sec.All rights reserved, All rights rese
106、rved, OSI Software, IncOSI Software, Inc. 200. 2002 272Exception ReportuuWhenavaluepassesthistest,thatvalueandtheWhenavaluepassesthistest,thatvalueandthepreviousvaluearereported.previousvaluearereported.当一个值通过了测试,则这个值和上当一个值通过了测试,则这个值和上一个值都将被报告一个值都将被报告 n nWhy?Why?为什么为什么 Snapshot value+/- Excdevpasses
107、 the exception testPrevious valueTrend if previous value is not sentTrend if previous value is sentTimeValueAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 273Compression Specifications压缩原理压缩原理压缩原理压缩原理uuCompressionDeviation(%orinEngUnits)CompressionDeviation(%
108、orinEngUnits)( (CompdevpercentCompdevpercentororCompDevCompDev) )压缩百分比压缩百分比uuCompressionMinimumTime(CompressionMinimumTime(CompMinCompMin) )压缩最小时间压缩最小时间uuCompressionMaximumTime(CompressionMaximumTime(CompMaxCompMax) )压缩最大时间压缩最大时间uuCompressing(Compressing(OnorOffOnorOff) )是否压缩是否压缩CompDevCompDevCompMi
109、nCompMaxCompMaxAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 274PI Compression TestPIPI压缩测试压缩测试压缩测试压缩测试Parameters:Parameters:CompDevCompDev=0.06=0.06 O OC C, ,CompMaxCompMax=28800sec,=28800sec,CompminCompmin=0sec=0sec0.120.12We Store the Previous EventAll ri
110、ghts reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 275Compression Compression ExampleExample(from (from Supplement)Supplement)压压压压缩事例的补充缩事例的补充缩事例的补充缩事例的补充Compression DeviationAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 276Rec
111、ommended Data Compression Specifications推荐的数据压缩详述推荐的数据压缩详述推荐的数据压缩详述推荐的数据压缩详述uuSettheSettheCompressionDeviationCompressionDeviationtothetotheminimumchangethatyouwouldconsiderminimumchangethatyouwouldconsidersignificantorismeasurablebytheinstrumentsignificantorismeasurablebytheinstrument根据设备可测量的精度要求设置
112、压缩偏差根据设备可测量的精度要求设置压缩偏差uuSettheSettheExceptionDeviationExceptionDpressiondeviation.设置例外偏差为压缩偏差的设置例外偏差为压缩偏差的1/21/2n nIfworriedabout“stale”Ifworriedabout“stale”ProcessBookProcessBookdisplaysdisplaysconsiderturningoffexception(considerturningoffexception(ExdevExdevto0)toseeto0)toseenewsnapshotsatapredic
113、tablerate.newsnapshotsatapredictablerate.如果担心如果担心PBPB画面的准确,画面的准确,可以考虑把例外测试关掉,可以看到可预知比率的可以考虑把例外测试关掉,可以看到可预知比率的SNAPSHOTSSNAPSHOTS值值n nIfthedatasourcealreadyreportsbyexception,Ifthedatasourcealreadyreportsbyexception,turnofftheexceptiontest(setturnofftheexceptiontest(setexcMaxexcMaxto0)to0)如果数据如果数据源已经做
114、了例外报告,请关掉例外测试源已经做了例外报告,请关掉例外测试All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 277Archive Cache归档地点归档地点归档地点归档地点uuTheTheArchiveCacheArchiveCacheisastructureinisastructureinmemorythatholdsapproximatelymemorythatholdsapproximately4K4K(userconfigurable)ofdatafor(us
115、erconfigurable)ofdataforeachPItag.eachPItag.归档地点是内存中的一块区域,每一个测归档地点是内存中的一块区域,每一个测点的数据大约可保持点的数据大约可保持4 4K KuuValuesareusuallyimmediatelyValuesareusuallyimmediatelywrittentodisk,buteverywrittentodisk,butevery1515minutesminutes(userconfigurable)PI(userconfigurable)PIflushestodiskanyvaluesthathaveflushest
116、odiskanyvaluesthathavenotyetbeenwrittentodisk.notyetbeenwrittentodisk.值通常都立即值通常都立即的写入硬盘,但每个的写入硬盘,但每个1515分钟一些值将不被写入硬盘分钟一些值将不被写入硬盘uuThecachecontainsthemostThecachecontainsthemostrecentlyrequestedvaluesrecentlyrequestedvaluesbyusersbyusersorcalculations.orcalculations.地点包含了被用户或计算应用请求地点包含了被用户或计算应用请求的最近的
117、值的最近的值All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 278PI ArchivesPIPI数据档案数据档案数据档案数据档案uuSeriesoflargebinaryfiles(usuallyinPIDAT)Seriesoflargebinaryfiles(usuallyinPIDAT)巨巨大连续的二进制文件大连续的二进制文件n n500MBgoodforCD-ROMbackup500MBgoodforCD-ROMbackup500MB-500MB-为备份到光盘上
118、为备份到光盘上n nUpto1GBperfile(PI3.3)Upto1GBperfile(PI3.3)没个文件能达到没个文件能达到1 1GBGBn nNolimitonnumberofarchivefiles(nomorethanNolimitonnumberofarchivefiles(nomorethan1022canberegisteredatthesametime).1022canberegisteredatthesametime).数据档案的数数据档案的数量没有限制(同一时间被注册的个数不多于量没有限制(同一时间被注册的个数不多于10221022个)个)uuTheThePrimar
119、yarchivePrimaryarchiveiswrittentowithreal-timeiswrittentowithreal-timedata.data.首文档被用来实时写入数据首文档被用来实时写入数据uuOncefilled,anotherarchivetakestheprimaryOncefilled,anotherarchivetakestheprimaryplaceplace一旦填满,则另一个文档将自动转换为首文档一旦填满,则另一个文档将自动转换为首文档Primary ArchiveOnline ArchivesPrimary ArchiveAll rights reserved
120、, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 279PI Client Data RequestsPIPI客户端数据要求客户端数据要求客户端数据要求客户端数据要求PI SnapshotSubsystemPI Client ApplicationPI NetworkManagerRequestResponsePI ArchiveSubsystemPI BaseSubsystemAll rights reserved, All rights reserved, OSI Software, IncOSI So
121、ftware, Inc. 200. 2002 280PI System Management ToolsPIPI系统管理工具系统管理工具系统管理工具系统管理工具uuPI Tag PI Tag ConfiguratorConfigurator-excelAdd-inforTag-excelAdd-inforTagbuildingandmaintenancebuildingandmaintenancePIPI标签配置工具标签配置工具- -通过通过EXCELEXCEL创建和维创建和维护标签护标签uuPI Point BuilderPI Point Builder-toolsforTagbuildin
122、g-toolsforTagbuildingandDigitalStatetablemaintenanceandDigitalStatetablemaintenancePIPI点的创建工具点的创建工具- -用于标签的创建和开关量状态表维护的工具用于标签的创建和开关量状态表维护的工具uuPI PI HealthCheckHealthCheck-Provideseasyaccessto-Provideseasyaccesstomostlogfilesandsysteminformationaltools.mostlogfilesandsysteminformationaltools.PIPI系统检测
123、工具系统检测工具- -为查看日志文件和系统信息提供很便捷通道的工具为查看日志文件和系统信息提供很便捷通道的工具uuPI Interface Configuration UtilityPI Interface Configuration UtilityManagesinterfaces,theirservices,andManagesinterfaces,theirservices,andconfigurationfiles.configurationfiles.PIPI接口配置工具接口配置工具- -管理接口,服务和配置文件管理接口,服务和配置文件All rights reserved, All
124、 rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 281PI Tag ConfiguratorPIPI标签配置工具标签配置工具标签配置工具标签配置工具All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 282PI PointBuilderPIPI点创建工具点创建工具点创建工具点创建工具All rights reserved, All rights reserved, OSI Software,
125、IncOSI Software, Inc. 200. 2002 283PI Health CheckPIPI系统检测工具系统检测工具系统检测工具系统检测工具uuThePIThePIHealthCheckHealthCheckapplicationgivestheuserapointandclickapplicationgivestheuserapointandclickoverviewofoneormorePISystemsfromasingleapplication.overviewofoneormorePISystemsfromasingleapplication.PIPI系统检测工具可以
126、通过一个单一的界面使用户得到一个或多个系统检测工具可以通过一个单一的界面使用户得到一个或多个PIPI系统的信息系统的信息All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 23.0 PI Tag Attributes(RG, chpt. 3)PIPI标签的属性标签的属性标签的属性标签的属性All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 285PI
127、 Tag AttributesPI PI 标签属性标签属性标签属性标签属性uuEachPITaghasasetofattributesfor:EachPITaghasasetofattributesfor:每个每个PIPI的测点有一些属性需要设置:的测点有一些属性需要设置:n nDescribingthetagtoaDescribingthetagtoaUser/ClientApplicationUser/ClientApplication描述测点到用户描述测点到用户/ /客户应用客户应用l l“How do I display the information?”“How do I displ
128、ay the information?” 我将显现怎样的信息?我将显现怎样的信息?我将显现怎样的信息?我将显现怎样的信息?n nDescribingthetagtotheDescribingthetagtotheControlSystemInterfaceControlSystemInterface描述测点到控制系统接口描述测点到控制系统接口l l“How do I get the information?”“How do I get the information?”我将得到怎样的我将得到怎样的我将得到怎样的我将得到怎样的信息?信息?信息?信息?n nDescribingthetagtoth
129、eDescribingthetagtothePIServerPIServer描述测点到描述测点到PIPI服务器服务器l l“How do I store the information?”“How do I store the information?”我将储存怎样我将储存怎样我将储存怎样我将储存怎样的信息?的信息?的信息?的信息?All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 286PI Tag Attributes DisplayPIPI标签属性标签属性标签属性标
130、签属性- -陈列陈列陈列陈列uuTag nameTag name: :uniquenameofthePItaguniquenameofthePItagStandards 测点名称:测点名称:PIPI标签的唯一名称标签的唯一名称uuDescriptorDescriptor: :PItagdescription(26characters)PItagdescription(26characters)描述:描述:PIPI标签的描述(标签的描述(2626个字符)个字符)uuEngunitsEngunits: :EngineeringunitsEngineeringunits工程单位:标签的工程单位工程单
131、位:标签的工程单位uuZeroZero, ,SpanSpanandandTypical valueTypical value: :minimum,rangeminimum,rangeandtypicalvaluesandtypicalvalues(Examples)(Examples) 零点,量程和典型值:最小,范围零点,量程和典型值:最小,范围和典型值和典型值uuStep:(On/Off):DisplaysinformationinastairDisplaysinformationinastaircasemanner.casemanner.(Examples)(Examples)STEPST
132、EP:描述的点的波形是否为方波描述的点的波形是否为方波GoAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 287 Tag Naming Convention标签命名习惯标签命名习惯标签命名习惯标签命名习惯uuItisrecommendedtousetheISAstandardasItisrecommendedtousetheISAstandardasanamingconventionanamingconvention通常推荐用通常推荐用ISAISA标准给测点命名标准给
133、测点命名n nUsethesamenameinPIandinthecontrolsystemUsethesamenameinPIandinthecontrolsystem(DCS,PLCorother)(DCS,PLCorother)在在PIPI中用与在控制系统中相同的名称中用与在控制系统中相同的名称n nCodetheplantdepartmentinthenameofthePICodetheplantdepartmentinthenameofthePItagbyaddingaprefixtothenametagbyaddingaprefixtothename给给PIPI标签的名称加上区标签
134、的名称加上区分各个部门的代码前缀分各个部门的代码前缀uuAddasuffixtothePItagnamethatwillAddasuffixtothePItagnamethatwillindicatethetypeofinformation:indicatethetypeofinformation: 给给PIPI测点的名称添加表明测点的名称添加表明信息类型的后缀信息类型的后缀n n.PV:.PV:processvalueprocessvalue过程值过程值n n.SP:.SP:processinstructionprocessinstruction过程说明过程说明n n.MD:.MD:cont
135、rollermodecontrollermode控制方式控制方式n n.OP:.OP:controlleroutputcontrolleroutput控制器输出控制器输出Example:UN2-TIC4522.pvExample:UN2-TIC4522.pvAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 288Tag Name标签名称标签名称标签名称标签名称uuPITagsaresubjecttothefollowingPITagsaresubjecttothefol
136、lowingconstraints:constraints:命名测点名称受到以下限制:命名测点名称受到以下限制:n nThefirstcharactermustbealetteroranumberThefirstcharactermustbealetteroranumber第一个字符必须是字母或数字第一个字符必须是字母或数字n nNocontrolcharactersareallowed(suchasNocontrolcharactersareallowed(suchaslinefeedsortabs)linefeedsortabs)不控制字符被允许(例如下画线和空格)不控制字符被允许(例如下
137、画线和空格)n nThefollowingcharactersarenotallowed:Thefollowingcharactersarenotallowed:以下字符不被以下字符不被允许允许l l*?;*?; “l lAlso,avoid“_”becauseitisusedinSQLqueriesAlso,avoid“_”becauseitisusedinSQLqueriesasthewildcardcharacterasthewildcardcharacter也要避免用也要避免用“-”“-”,因为它被作,因为它被作为通配符用于为通配符用于SQLSQL语句语句uuTagnamelimite
138、dto80characters(databaseTagnamelimitedto80characters(databasehasnolimit,APIcallslimitedto80characters)hasnolimit,APIcallslimitedto80characters)标签名称限制为标签名称限制为8080个字符(数据库没有限制,个字符(数据库没有限制,APIAPI也被限制为也被限制为8080个字符)个字符)BackAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200.
139、2002 289Zero, Span and Typical Value零点,量程和典型值零点,量程和典型值零点,量程和典型值零点,量程和典型值Zero=50Span=100Zero=0Span=100Zero=-50Span=100BackAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 290Step AttributeSTEPSTEP属性属性属性属性STEP=1STEP=0BackAll rights reserved, All rights reserved,
140、OSI Software, IncOSI Software, Inc. 200. 2002 291PI Tag Attributes (Data Storage) (RG, (RG, chptchpt. 3). 3)PIPI标签属性(数据存储)标签属性(数据存储)标签属性(数据存储)标签属性(数据存储)uuPointIDPointID: :UniqueIdentifierUniqueIdentifier点点IDID:唯一标识唯一标识n nStaysuniqueeveniftagisrenamed.Staysuniqueeveniftagisrenamed.即使测点被从命名也将保留唯即使测点被从
141、命名也将保留唯一标识一标识uuPoint Class: Point Class: CategoryofPItagCategoryofPItagLinkLink 点种类:点种类:PIPI测点的种类测点的种类uuPointPoint Type: Type: TypeofvariableTypeofvariable tostoretostoreLinkLink点类型:储存的点类型:储存的变量类型变量类型uuCompression Specifications: Compression Specifications: definestheaccuracytodefinestheaccuracytost
142、orethedatastorethedata压缩规格:定义储存数据的精度压缩规格:定义储存数据的精度uuCompressingCompressing: :( (OnOn/Off)/Off)是否压缩是否压缩uuArchivingArchiving: :( (OnOn/Off)/Off)是否归档是否归档uuShutdownShutdown: :( (OnOn/Off):WhenPIserveris/Off):WhenPIserverisshutdown,ashutdowneventiswrittentoallshutdown,ashutdowneventiswrittentoalltagsthat
143、havetheshutdownflagsetto1.tagsthathavetheshutdownflagsetto1.LinkLink在在SHUTDOWNSHUTDOWN属性设置为属性设置为1 1,当,当PIPI服务器停下时,服务器停下时,SHRUDOWNSHRUDOWN事件将被写到所有的测点事件将被写到所有的测点All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 292Point Class (Database View)点的种类(数据库预览)点的种类(数据库预览)点
144、的种类(数据库预览)点的种类(数据库预览)Warning! It is not possible to changethe point class of a tag.警告!不可能改变点的种类警告!不可能改变点的种类Base +18Base +15Base +22Base +26All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 293Point Type点的类型点的类型点的类型点的类型uuInt16:Int16: Integervalue,16bitsIntegerval
145、ue,16bits(0to32767,acc:1/32767)(0to32767,acc:1/32767)整数,整数,1616位位uuInt32:Int32:Integervalue,32bitsIntegervalue,32bits(-2147450880to2147483647)(-2147450880to2147483647)整数,整数,3232位位uuFloat16:Float16:ScaledFloatingPointnumber,16bitsScaledFloatingPointnumber,16bits(acc:1/32767)(acc:1/32767)整型浮点数,整型浮点数,1
146、616位位uuFloat32:Float32:FloatingPointnumber,32bitsFloatingPointnumber,32bits(singleprecision)(singleprecision)浮点数,浮点数,3232位(单精度)位(单精度)uuFloat64:Float64:FloatingPointnumber,64bitsFloatingPointnumber,64bits(doubleprecision)(doubleprecision)浮点数,浮点数,6464位(双精度位(双精度)uuDigital:Digital:DiscretevalueDiscretev
147、alue(On/Off)(discussedindetaillater)(On/Off)(discussedindetaillater)离散值离散值uuString:String:Textvalueupto1000charactersTextvalueupto1000characters字符型字符型uuBlob:Blob:Binarylargeobjectupto1000bytesBinarylargeobjectupto1000bytes二进制二进制uuTimestampTimestamp: :AnyTime/DateintheRange1-jan-AnyTime/DateintheRang
148、e1-jan-1970to1-Jan-20381970to1-Jan-2038 时间标签:一定范围内的时间时间标签:一定范围内的时间/ /数据数据All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 294FLOAT161616位浮点数位浮点数位浮点数位浮点数uuPIcanstoreafloatingpointvalueina16bitsintegerPIcanstoreafloatingpointvalueina16bitsinteger(scaling).Thishas
149、aneffectofreducingbyhalfthehard(scaling).Thishasaneffectofreducingbyhalftheharddiskspacerequiredtostorethesamevaluediskspacerequiredtostorethesamevalue(16bitsratherthan32bits).Theprecisionis1in(16bitsratherthan32bits).Theprecisionis1in32767*span(0.00003*span)32767*span(0.00003*span)PIPI能存储能存储1616位整型
150、浮点数位整型浮点数 ,存储相同的数存储相同的数值,值,1616位浮点数比位浮点数比3232位浮点数能减少一半的硬盘空间。精度为位浮点数能减少一半的硬盘空间。精度为32767*32767*量程分之量程分之1 1(0.00003*0.00003*量程)量程)Important:Important:YoushouldhaveaYoushouldhaveasmallspansmallspantoreduceroundofferror.toreduceroundofferror.ValuesoutsidethespanCantbearchivedValuesoutsidethespanCantbearc
151、hived重要:你应当用小的量程以减少误差。超出量程的数值将不能归档重要:你应当用小的量程以减少误差。超出量程的数值将不能归档Example 1: zero=0 and span=500, value= Example 1: zero=0 and span=500, value= 250.9250.9archived valuearchived value = (250.9-zero)/span*32767 = = (250.9-zero)/span*32767 = 1644216442displayed valuedisplayed value = 16442*span/32767 + ze
152、ro = = 16442*span/32767 + zero = 250.89250.89Example 2: Example 2: : : zero=0 and span = 40000,zero=0 and span = 40000, value= value= 56.44456.444archived valuearchived value = (56.444-zero)/span*32767 = = (56.444-zero)/span*32767 = 4646displayed valuedisplayed value= 46*span/32767 + zero = = 46*spa
153、n/32767 + zero = 56.15456.154All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 295Float32 - Float643232位浮点数位浮点数位浮点数位浮点数-64-64位浮点位浮点位浮点位浮点uuExpressedas(IEEEstandard)Expressedas(IEEEstandard)表达式为(表达式为(IEEEIEEE标准)标准)s*m*es*m*ewherewheres sassign,assign,mmasmantissa
154、andasmantissaande easasexponentexponentss作为标志符号,作为标志符号,mm作为底数和作为底数和e e作为次幂作为次幂uuDigitsnumberused:Digitsnumberused:数字为:数字为:Float32Float32Float64Float64signsign1 11 1mantissamantissa23235252exponentexponent8 81111All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2
155、96Float32 - Float64 3232位浮点数位浮点数位浮点数位浮点数-64-64位浮点位浮点位浮点位浮点uummisalwaysexpressedas1.xxxxxxx,so:isalwaysexpressedas1.xxxxxxx,so:mm总是表达为总是表达为1.1.XXXXXXX,XXXXXXX,因此:因此:accuracyis1/2accuracyis1/223-123-11010-7-7forFloat32forFloat32accuracyis1/2accuracyis1/252-152-11010-16-16forFloat64forFloat64uuFloat32h
156、ave8significantdigitsFloat32have8significantdigits3232位浮点数是位浮点数是8 8位有效数字位有效数字uuFloat64have17significantdigitsFloat64have17significantdigits6464位浮点数是位浮点数是1717位有效数位有效数字字uuExample:Example:n nFloat32asFloat32as83456876834568766.766.76n nFloat64asFloat64as2.12345678901234562.1234567890123456789789insigni
157、ficantinsignificantBackAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 24.0 Tag Configuration标签配置标签配置标签配置标签配置All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 24.1 PI Tag Configurator ( (SMG, chpt. 2) )ExcelAdd-Inforcreati
158、ng,modifyingandExcelAdd-Inforcreating,modifyinganddeletingtagsdeletingtags电子表格中创建,修改和删除测点电子表格中创建,修改和删除测点All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 299PI Tag ConfiguratorAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 200
159、2 2100Settings设置设置设置设置uuConnectonstartupConnectonstartup启动时自动连接服务器启动时自动连接服务器uuAllowtagdeletion,Allowtagdeletion,creationcreation允许标签删除,创建允许标签删除,创建uuPIDIFFsettings(ForPIPIDIFFsettings(ForPI2only)2only)PIDIFFPIDIFF设置(仅用于设置(仅用于PI2PI2系统)系统)uuUsealternatedelimiterUsealternatedelimiter(defaultis|)(default
160、is|)用交替通配符(缺用交替通配符(缺省为省为 I)I)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2101Export Tags导出标签导出标签导出标签导出标签All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2102Import Tags导入标签导入标签导入标签导入标签All rights reserved, All rights r
161、eserved, OSI Software, IncOSI Software, Inc. 200. 2002 2103Recommendations推荐推荐推荐推荐uuExportonlyattributesthathavebeenchangedExportonlyattributesthathavebeenchanged仅仅仅导出被改变的属性仅导出被改变的属性n n removeunchangedcolumnsremoveunchangedcolumns移除不变的列移除不变的列uuDonotspecifybothDonotspecifybothexcdevexcdev( (compdevco
162、mpdev)and)andexcdevpercentexcdevpercent( (compdevpercentcompdevpercent)atthesame)atthesametimetime不要在同一时间指定例外偏差(压缩偏差)和例外百分比(压缩百分比)不要在同一时间指定例外偏差(压缩偏差)和例外百分比(压缩百分比)uuEvenifEvenifexcdevpercentexcdevpercent( (compdevpercentcompdevpercent)is)isempty,ittakesprecedenceandtakestheempty,ittakesprecedenceandt
163、akesthedefaultvaluedefaultvalue即使例外百分比(压缩百分比)是空的,它也会优先得到缺即使例外百分比(压缩百分比)是空的,它也会优先得到缺省值省值uuUseUsetag tag andand newtagnewtagtorenametagstorenametags 用用tagtag和和newtagnewtag给测给测点重新命名点重新命名All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2104Exporting to a PIConfig f
164、ile导出一个导出一个导出一个导出一个PIConfigPIConfig 文件文件文件文件All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 1练习练习练习练习1 1Create,EditandChangespecifictagattributesforselectedtagsusingPITagConfigurator创建,编辑和修改用创建,编辑和修改用PIPI点工具所挑选出的标签的指定的属性点工具所挑选出的标签的指定的属性All rights res
165、erved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2106PI SDK Connection (1/2)(1/2)PI SDK PI SDK 连接连接连接连接All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2107PI SDK Connection (2/2)(2/2)PI SDK PI SDK 连接连接连接连接All rights reserved, All right
166、s reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2108PI SDK Advanced tag searchPI SDKPI SDK标签搜索的高级应用标签搜索的高级应用标签搜索的高级应用标签搜索的高级应用uuSearchesusinganSQLrequestinthefollowingtables:用用SQLSQL语句在以下的表中请求搜索:语句在以下的表中请求搜索:n nPIpointPIpointn nPicompPicomp, ,PiinterpPiinterpn nPImaxPImax, ,PIminPImin, ,PI
167、avgPIavg, ,PistdPistd, ,PIrangePIrange, ,PitotalPitotaln nPIbatchPIbatch, ,PialiasPialiasuuExampleSQLstatement:例如例如SQLSQL声明:声明:PIpoint.Location1=1PIpoint.Location1=1Findalltagswithlocation1attributeequalto1Findalltagswithlocation1attributeequalto1找到找到location1location1属性等于属性等于1 1的所有测点的所有测点All rights
168、 reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2109PI SDK Advanced tag search PI SDKPI SDK标签搜索的高级应用标签搜索的高级应用标签搜索的高级应用标签搜索的高级应用uuExample2:例2:PIpoint.PointTypePIpoint.PointType=D=DANDANDPIinterp.ValuePIinterp.Value=1=1ANDANDPIpoint.TagPIpoint.Tag=PIinterp.TagPIinterp.Tag
169、ANDANDPIinterp.TimePIinterp.Time=DATE(*-1d)=DATE(*-1d)ANDANDPIinterp.TimePIinterp.Time=DATE(*)=DATE(*)FinddigitaltagsforwhicharchivedstatebetweenFinddigitaltagsforwhicharchivedstatebetween*-1dand*isequalto1*-1dand*isequalto1找到一天之中归档状态值等于找到一天之中归档状态值等于1 1的开关量测点的开关量测点All rights reserved, All rights res
170、erved, OSI Software, IncOSI Software, Inc. 200. 2002 2110PI Tag Attributes Interface PIPI标签属性标签属性标签属性标签属性- -接口接口接口接口uuInstrumentTagInstrumentTag: :nameofthetag/locationinthesourcenameofthetag/locationinthesourcesystem.system. 设备测点名称:源系统的测点设备测点名称:源系统的测点/ /位置的名称位置的名称uuExtended Descriptor: Extended Des
171、criptor: placefordetailedqueryplacefordetailedqueryinstructionsinstructions扩展描述:记录测点更加详细介绍的地方扩展描述:记录测点更加详细介绍的地方uuException Specifications: Exception Specifications: defineswhatisasignificantdefineswhatisasignificantchangeinvalue.changeinvalue.例外规格:定义数值上特定的变化是多少例外规格:定义数值上特定的变化是多少uuPoint source:Point
172、source:allowsgroupingofPItagsbydataallowsgroupingofPItagsbydatainterface(DCS,PLC,orothersources)interface(DCS,PLC,orothersources)点源:允许从数据塬过来的测点的点源:允许从数据塬过来的测点的归组归组uuLocation Codes 1, 2, 3, 4, and 5:Location Codes 1, 2, 3, 4, and 5:definehowtolocatedefinehowtolocatethedatainthesourcesystem.thedataint
173、hesourcesystem.位置代码位置代码1,2,3,4,5:1,2,3,4,5:定义从源系统如何找定义从源系统如何找出数据出数据uuScanScan: :includesthePItaginthelistoftagstoscanincludesthePItaginthelistoftagstoscan( (OnOn/Off)/Off)扫描:包括在测点清单中需扫描的测点扫描:包括在测点清单中需扫描的测点GoAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2111F
174、inding the Data发现数据发现数据发现数据发现数据PI InterfacePLC NameAddressRegisterBitPLC NetworkDCS Tag NameProcessValueControlModeTCP/IPSQL StatementODBCAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2112Point Source Used by OSI(defaults)(defaults)OSIOSI使用的点源使用的点源使用的点源使用的点源
175、(缺省)(缺省)(缺省)(缺省)uuPIAlarmPIAlarmuuPIPerformanceEquationPIPerformanceEquationC CuuPIPITotalizerTotalizerT TuuPIRTSQCPIRTSQCQ QuuPIPIPerfMonPerfMon# #uuPIPingPIPingJ JuuPISNMPPISNMP$ $uuRampsoakRampsoak9 9uuRandomRandomR RAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 20
176、0. 2002 23.2More on Tag Configuration, Optimization更多的标签配置,优化更多的标签配置,优化更多的标签配置,优化更多的标签配置,优化All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2114PI Tag Attributes - Tag SecurityPI标签属性标签属性-标签安全标签安全AttributesthatcontrolPIclienttoolaccessAttributesthatcontrolPIclie
177、nttoolaccess控制控制PIPI客户端客户端工具访问的属性工具访问的属性uuPtOwnerPtOwner, ,PtGroupPtGroup, ,PtAccessPtAccess: :ControlswhocanControlswhocanmodifyorseepointattributes.modifyorseepointattributes.控制什么人能修改或看点属性控制什么人能修改或看点属性uuDataOwnerDataOwner, ,DataGroupDataGroup, ,DataAccessDataAccess: :ControlswhoControlswhocanreada
178、ndwritedata.canreadandwritedata.控制什么人能读写数据控制什么人能读写数据ThesesettingsarecoveredindetailduringtheThesesettingsarecoveredindetailduringthesecuritydiscussion.securitydiscussion.这些设置将在讨论安全性时详述这些设置将在讨论安全性时详述All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2115System Con
179、trolled Attributes系统系统系统系统 控制属性控制属性控制属性控制属性uuPointIDPointID: :SystemAssigneduniqueIDSystemAssigneduniqueID系统指定的系统指定的唯一唯一IDIDuuRecNoRecNo: :RecordnumberinPIArchiveRecordnumberinPIArchivePIPI数据档案数据档案中的记录号中的记录号uuCreator:Creator:UserthatcreatedthetagUserthatcreatedthetag创建标签的用户创建标签的用户uuCreationDateCreat
180、ionDate: :DatetagwascreatedDatetagwascreated标签被创建的标签被创建的日期日期uuChanger:Changer:UserthatchangedthetagUserthatchangedthetag改变标签的用改变标签的用户户uuChangeDateChangeDate: :DatetagwaschangedDatetagwaschanged标签被改变的标签被改变的日期日期All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 211
181、6Tag Creation标签创建标签创建标签创建标签创建Tagscanbecreatedinoneof4OSItools:标标签能通过签能通过OSIOSI的的4 4种工具之种工具之1 1被创建:被创建:uuPI Tag PI Tag ConfiguratorConfigurator: :AnExcelAnExcelAddinAddingoodgoodforbulkcreationandeditinginaworksheet.forbulkcreationandeditinginaworksheet.嵌入嵌入EXCELEXCEL表格工具,在电子表格中创建和编辑表格工具,在电子表格中创建和编辑u
182、uPI Point Builder:PI Point Builder:AClientApplicationforAClientApplicationforsinglepointcreation/edits.singlepointcreation/edits.为单一点的创建为单一点的创建/ /编辑的一个客户编辑的一个客户应用程序应用程序uuPI PI ConfigConfig: :acommandlinetoolgoodfortextacommandlinetoolgoodfortextfilebasedtagcreation.filebasedtagcreation. 一个命令行工具,为创建基
183、本的文本文件一个命令行工具,为创建基本的文本文件标签标签 uuPI Auto Point Sync (APS):PI Auto Point Sync (APS):AnautomaticAnautomaticpointcreator/modifieravailableforsomepointcreator/modifieravailableforsomeinterfaces.interfaces.使用于一些接口的一个自动创建使用于一些接口的一个自动创建/ /修改点的工具修改点的工具All rights reserved, All rights reserved, OSI Software, In
184、cOSI Software, Inc. 200. 2002 2117Once Created a tag一个标签的一次创建的属性一个标签的一次创建的属性一个标签的一次创建的属性一个标签的一次创建的属性uuCannotchangeitsPointClassCannotchangeitsPointClass不能改变它的点类别不能改变它的点类别(Classic,(Classic,TotalizerTotalizer,Alarm,etc.),Alarm,etc.)uuCannotchangeitsPointTypeCannotchangeitsPointType* * 不能改变它的点类型不能改变它的点
185、类型(Float16,Int16,Digital,etc.)(Float16,Int16,Digital,etc.)* This is a possible procedure, but not a practical one 这是一个可能的方法,但不是一个实用的方法这是一个可能的方法,但不是一个实用的方法All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2118Renaming/Deleting Tags重命名重命名重命名重命名/ /删除标签删除标签删除标签删除标签u
186、uDeletingatagDeletingatag删除一个标签删除一个标签n nArchiveddataarelost!Archiveddataarelost!归档数据丢失归档数据丢失n nThereisnoquickThereisnoquick(practical)(practical)undeleteundelete没有很快恢复删除没有很快恢复删除uuRenamingatagRenamingatag重命名一个标签重命名一个标签n nAtagcanberenamedAtagcanberenamedwhilepreservinghistorywhilepreservinghistory一个标签
187、能被重命一个标签能被重命名同时保留历史记录名同时保留历史记录l lRenaminghasnoeffectonRenaminghasnoeffectonProcessBookProcessBook( (PointIDPointIDisisstored)stored)重命名不会影响重命名不会影响PBPB(PointIDPointID被存储)被存储)l lDataLinkDataLinkReportsReportswillnotwillnotseenamechanges.seenamechanges.DLDL报表不会看到名报表不会看到名字的改变。字的改变。l lAnyPerformanceEquat
188、ionexpressionsusedinotherPIAnyPerformanceEquationexpressionsusedinotherPItags(e.g.filterexpressions)mustbeeditedmanually.tags(e.g.filterexpressions)mustbeeditedmanually.任何任何性能方程表达式被用做其他的性能方程表达式被用做其他的PIPI标签(例如:过滤表达式)必须被手动编标签(例如:过滤表达式)必须被手动编辑辑All rights reserved, All rights reserved, OSI Software, Inc
189、OSI Software, Inc. 200. 2002 2119Recommended Data Compression Specifications被推荐的数据压缩说明被推荐的数据压缩说明被推荐的数据压缩说明被推荐的数据压缩说明uuSettheSettheCompressionDeviationCompressionDeviationtothetotheminimumchangethatyouwouldconsiderminimumchangethatyouwouldconsidersignificantorismeasurablebytheinstrumentsignificantori
190、smeasurablebytheinstrument你可以根据仪器的有效或可测数据设置压缩偏差的最小改变你可以根据仪器的有效或可测数据设置压缩偏差的最小改变uuSettheSettheExceptionDeviationExceptionDpressiondeviation.根据压缩偏差设置例外偏差根据压缩偏差设置例外偏差n nIfworriedabout“stale”Ifworriedabout“stale”ProcessBookProcessBookdisplaysdisplaysconsiderturningoffexception(considerturningoffexception
191、(ExcdevExcdevto0)toseeto0)toseenewsnapshotsatapredictablerate.newsnapshotsatapredictablerate.如果担心如果担心PBPB画面的画面的“ “stale”stale”可以考虑关闭例外,在一个可预测的速率观察新的闪存值可以考虑关闭例外,在一个可预测的速率观察新的闪存值n nIfthedatasourcealreadyreportsbyexception,Ifthedatasourcealreadyreportsbyexception,turnofftheexceptiontest(setturnofftheex
192、ceptiontest(setexcMaxexcMaxto0)to0)如果数据如果数据源已经有例外报告,关掉例外测试。源已经有例外报告,关掉例外测试。All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2120Turning off Exception?关掉例外关掉例外关掉例外关掉例外uuBehaviorofBehaviorofExcDevExcDev=0=0把把EXCDEVEXCDEV设置为零设置为零n nAllchangesintheDCS(ordatasource)
193、aresenttoAllchangesintheDCS(ordatasource)aresenttothePIserver.thePIserver.DCSDCS(数据源)所有的改变发送到数据源)所有的改变发送到PIPI服务器服务器n nThiswillincreasethetrafficbetweentheAPInodeThiswillincreasethetrafficbetweentheAPInodeandtheserver.andtheserver.NotrecommendedfordatathatisNotrecommendedfordatathatisbuffered.buffere
194、d.这会增加这会增加APIAPI节点和节点和PIPI服务器之间的通信量,数据缓存不推荐服务器之间的通信量,数据缓存不推荐All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2121Turning off Compression?关掉压缩关掉压缩关掉压缩关掉压缩uuBehaviorofCompressionBehaviorofCompression压缩行为压缩行为n nCompressingsettozeroCompressingsettozero:allexception
195、sare:allexceptionsarearchived(nocompression)archived(nocompression)所有例外都将归档(没有压缩)所有例外都将归档(没有压缩)n n*Better*Compressingsetto1,*Better*Compressingsetto1,compdevcompdevsetto0setto0: :successiveidenticalvaluesarenotarchived.successiveidenticalvaluesarenotarchived.连续相同的连续相同的值将不被归档值将不被归档OSI recommends REAL
196、ISTIC compression that does not affect the accuracy of the data and allows EFFICIENT storage OSI推荐现实的压缩,不会影响数据的精确性,允许有效率的存储All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2122Set Reasonable Zero & Span设置合理的零点和量程设置合理的零点和量程设置合理的零点和量程设置合理的零点和量程uuExcdevpercentExcd
197、evpercentandandcompdevpercentcompdevpercentareadjustedareadjustedaccordingtospan.accordingtospan.例外百分比和压缩百分比根据量程调整例外百分比和压缩百分比根据量程调整uuDeterminesaccuracyofthedata(Float16)Determinesaccuracyofthedata(Float16)确定数据精度确定数据精度n naccuracyis1over(2accuracyis1over(2numberofbits-1numberofbits-11)*span1)*spanuuFl
198、oat16typetagswillbearchivedasOverRangeorFloat16typetagswillbearchivedasOverRangeorUnderRangevaluesUnderRangevalues1616位浮点数类型被归档作为超范围或低于范围的值位浮点数类型被归档作为超范围或低于范围的值uuMulti-statesymbolsMulti-statesymbolsininProcessBookProcessBookareboundbylimitsareboundbylimitsofzeroandspan.ofzeroandspan.PBPB中的多状态符号被零点和量
199、程所限制中的多状态符号被零点和量程所限制uuZeroandSpanareusedinZeroandSpanareusedinProcessBookProcessBookforforverticalverticalscalescale(Database)(Database)零点和量程被用做零点和量程被用做PBPB中的垂直刻度(数据库)中的垂直刻度(数据库)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2123Display Digits Attribute显示数字属性
200、显示数字属性显示数字属性显示数字属性uuRangesfrom10to5Rangesfrom10to5 范围从范围从-10-10到到5 5uuDefaultvalueis5Defaultvalueis5缺省值是缺省值是-5-5uuPositivenumbersindicatenumberofdecimalplaces,Positivenumbersindicatenumberofdecimalplaces,negativenumbersindicatenumberofsignificantdigits.negativenumbersindicatenumberofsignificantdigit
201、s.整数代表小数位数,负数代表有效数位数整数代表小数位数,负数代表有效数位数 DisplaydigitsDisplaydigitsValueofValueof12.34512.345ValueofValueof123045.6123045.63 312.34512.345123045.600123045.6001 112.312.3123045.6123045.60 012.12.123045.123045.-3-312.312.3123000.123000.-5-512.34512.345123040.123040.-7-712.3450012.34500123045.6123045.6Al
202、l rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2124PI PointBuilderPI PI 点建立工具点建立工具点建立工具点建立工具uuPIPointBuilderisatoolforcreating,modifying,PIPointBuilderisatoolforcreating,modifying,deletingtagsanddigitalsetsdeletingtagsanddigitalsetsPIPI点建立工具是一个为创建,修改,铲点建立工具是一个为
203、创建,修改,铲除标签和开关量设置的工具除标签和开关量设置的工具All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2125Digital Tags开关量标签开关量标签开关量标签开关量标签uuStoresValueasinteger,displaysastext.存储整存储整数值,文本显示值数值,文本显示值uuCanreceiveeithertextorintegerfrominterface能从接口接受文本值或整数值能从接口接受文本值或整数值uuUsesattribute
204、DigitalSettostoresetname用属性用属性DigitalSetDigitalSet存储设置的名称存储设置的名称Set: SwitchSet: Switch0 0OffOff1 1OnOnSet: Set: ControllerModesControllerModes0 0ManualManual1 1AutomaticAutomatic2 2CascadeCascadeAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2126Digital Setuu
205、ADigitalTagmusthaveanassociatedDigitalSetADigitalTagmusthaveanassociatedDigitalSet 一个开关量标签必须与一个开关量状态相联系一个开关量标签必须与一个开关量状态相联系uuDigitalsetsarekeptinacommontableforDigitalsetsarekeptinacommontableformultipletagstoaccessmultipletagstoaccess为了多数标签的访问,开关量设置被保存在统为了多数标签的访问,开关量设置被保存在统一的表中一的表中n nNameofdigitals
206、et:Nameofdigitalset:SetControllerSetController 开关量设置名称开关量设置名称 :SetControllerSetControllern nFirstdigitalstate:Firstdigitalstate: AutoAuto第一个开关量状态:自动第一个开关量状态:自动n nSeconddigitalstate:Seconddigitalstate:ManualManual第二个开关量状态:手动第二个开关量状态:手动BackAll rights reserved, All rights reserved, OSI Software, IncOSI
207、 Software, Inc. 200. 2002 2127Lab Tags (Manual Inputs)实验室标签(人工输入)实验室标签(人工输入)实验室标签(人工输入)实验室标签(人工输入)uuPointSourcePointSource=L.LstandsforLaboratorytags.=L.LstandsforLaboratorytags.L L代表实验室标签代表实验室标签uuCompressing=OFF(0).Compressing=OFF(0).uuStep=ONStep=ONuuShutdown=OFFShutdown=OFFuuPointTypePointTypecan
208、beanyofthevalidpointtypescanbeanyofthevalidpointtypes点点类型能是任何有效的点类型类型能是任何有效的点类型uuLocation1,Location2,Location3,Location4,Location1,Location2,Location3,Location4,Location5,Location5,ExcDevExcDev, ,ExcMinExcMin, ,ExcMaxExcMax,and,andExcDevPercentExcDevPercentcanallbeignoredcanallbeignored以上都可以被忽略以上都可以
209、被忽略All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2128PI PE Expression SyntaxPI PEPI PE表达式语法表达式语法表达式语法表达式语法uuNumbersNumbers编号编号Ex:0,0.125,34.56Ex:0,0.125,34.56uuTagnamesTagnamesininsinglequotessinglequotes标签名称用单引号标签名称用单引号n nsinusoid,cdm158sinusoid,cdm158uuTim
210、estampsinTimestampsinsinglequotessinglequotes时间标签用单引号时间标签用单引号n n*,14-dec-02,t-8h*,14-dec-02,t-8huuStringsinStringsindoublequotesdoublequotes字符串用双引号字符串用双引号n nThisisastring,14-dec-02Thisisastring,14-dec-02All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2129Tag C
211、alculation Expressions标签计算表达式标签计算表达式标签计算表达式标签计算表达式uuMathematicalOperators:MathematicalOperators:数学运算符数学运算符+ additionaddition加法加法- - SubtractionSubtraction减法减法* *multiplicationmultiplication乘法乘法/ /divisiondivision除法除法 raisetoapowerraisetoapower自乘自乘Example:Example:例子例子(sinusoid)2)(sinusoid)2)(sinusoid
212、)/2+(flow.pv-100)(sinusoid)/2+(flow.pv-100)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2130Tag Calculation ExpressionsuuMathematicalFunctions:MathematicalFunctions:数学函数数学函数abs()absolutevalueabs()absolutevalue绝对值绝对值 atnatn()arctangent()arctangent反正切反正切cosco
213、s()cosine()cosine余弦余弦 exp()eexponentexp()eexponent指数指数intint()integerpart()integerpart整数部分整数部分sgnsgn()sign()sign正负号正负号sin()sinesin()sine正弦正弦log()naturallogarithmlog()naturallogarithm自然对数自然对数sqrsqr()squareroot()squareroot平方根平方根tan()tan()tangentetangente Example:Example:例子例子sqr(flow1.pv)sqr(flow1.pv)(
214、flow2.pv)2+cos(flow3.pv)(flow2.pv)2+cos(flow3.pv)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2131Filtering Syntax过滤语法过滤语法过滤语法过滤语法uuRelationalOperatorsRelationalOperators关系算子关系算子 greaterthangreaterthan大于大于= equaltoequalto等于等于notequalnotequal不等于不等于= = greate
215、rthanorequaltogreaterthanorequalto大于等于大于等于Example:Example:例子例子sinusoid50sinusoid50BA:Active.1=ActiveBA:Active.1=ActiveAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2132Filtering SyntaxuuLogicalOperatorsLogicalOperators逻辑算子逻辑算子AndAndReturnsTRUEifbothitsargume
216、ntsaretrueReturnsTRUEifbothitsargumentsaretrue如果如果两个自变量都为真,则返回真两个自变量都为真,则返回真OrOrReturnsTRUEifatleastoneofitsargumentsReturnsTRUEifatleastoneofitsargumentsistrueistrue如果自变量中至少有一个为真,则返回真如果自变量中至少有一个为真,则返回真NotNotReturnsTRUEifitsargumentisFALSE,andReturnsTRUEifitsargumentisFALSE,andFALSEifitsargumentisTR
217、UEFALSEifitsargumentisTRUE如果自变量为否则返回真,如如果自变量为否则返回真,如果自变量为真则返回否果自变量为真则返回否Example:例子(sinusoid50andflow.pv90)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2133Performance Equation Functions性能方程式函数性能方程式函数性能方程式函数性能方程式函数uu119 119 Functions availableFunctions avail
218、able(tableonp37-41of(tableonp37-41ofSAManual)SAManual)119119个有效的函数个有效的函数uuSteam Table FunctionsSteam Table Functions(tableonp139)(tableonp139)SteamSteam表函数表函数uuFunctionscanbenestedandjoinedinFunctionscanbenestedandjoinedinexpressions.expressions.函数能在表达式中嵌套和加入函数能在表达式中嵌套和加入All rights reserved, All rig
219、hts reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2134Performance Equations Function Syntax性能方程式函数语法性能方程式函数语法性能方程式函数语法性能方程式函数语法uuTimeLTTimeLTororTimeLETimeLE: :ReturnsthenumberofsecondsReturnsthenumberofsecondsthatatagwaslessthanorequaltoaspecifiedvaluethatatagwaslessthanorequaltoaspecifie
220、dvalue返回一返回一个标签小于或等于一个指定值时持续的秒数个标签小于或等于一个指定值时持续的秒数n nTimeLT(tagTimeLT(tag,starttime,endtime,value),starttime,endtime,value)ex:ex:TimeLT(TimeLT( sinusoidsinusoid , , y y , , t t ,70),70)uuTimeGTTimeGTororTimeGETimeGE: :ReturnsthenumberofsecondsReturnsthenumberofsecondsthatatagwasgreaterthanorequaltoa
221、specifiedvaluethatatagwasgreaterthanorequaltoaspecifiedvalue返回一个标签大于或等于一个指定值时持续的秒数返回一个标签大于或等于一个指定值时持续的秒数 n nTimeGT(tag,startTimeGT(tag,starttime,endtime,value)time,endtime,value)ex:ex:TimeGT(TimeGT( sinusoidsinusoid , , y y , , t t ,10)/86400,10)/86400All rights reserved, All rights reserved, OSI So
222、ftware, IncOSI Software, Inc. 200. 2002 2135PI PE Expression SyntaxPI PEPI PE表达式语法表达式语法表达式语法表达式语法uuThereisnoThereisnotheoricaltheoricallimitforthelengthofaPElimitforthelengthofaPEexpression,butinpractice:expression,butinpractice:表达式的长度没有限制,但通常习惯:表达式的长度没有限制,但通常习惯:n nPISMTislimitedto4096charactersPISM
223、Tislimitedto4096charactersPISMTPISMT有有40964096个字符的限制个字符的限制n nPiconfigPiconfigislimitedto1024charactersunlessyouusetheislimitedto1024charactersunlessyouusethelinelenlinelenNNNNfunctionwhereNNNNisthenewlimitNNNNfunctionwhereNNNNisthenewlimitPiconfigPiconfig有有10241024个字符的限制,个字符的限制,除非你用除非你用linelenlinele
224、nNNNNNNNN函数,函数, NNNNNNNN是新的限制是新的限制uuTheIF,THEN,ELSEstructureissupportedTheIF,THEN,ELSEstructureissupportedIFIF,THENTHEN,ELSEELSE结构被支持结构被支持IF expr0 THEN expr1 ELSE expr2 IF expr0 THEN expr1 ELSE expr2 IF Tag1 50 THEN Tag2/34 ELSE Tag3*45IF Tag1 50 THEN Tag2/34 ELSE Tag3*45Important:Inanycase,theIF,th
225、eTHENandImportant:Inanycase,theIF,theTHENandtheELSEmustbeincludedintheexpression.theELSEmustbeincludedintheexpression.重要的:无论如何,重要的:无论如何,IFIF,THENTHEN和和ELSEELSE必须被包含在表达式中必须被包含在表达式中All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2136PI PE Syntax ExamplePI PEPI P
226、E语法事例语法事例语法事例语法事例uuCalculationUsingaScanClassCalculationUsingaScanClass用一个扫描类别计算用一个扫描类别计算n ntimegt(sinusoidtimegt(sinusoid,*-8h,*,70),*-8h,*,70)n nififpctgood(sinusoidpctgood(sinusoid,y,t)85then,y,t)85thentagtot(sinusoidtagtot(sinusoid,y,t)*24elseBadTotal,y,t)*24elseBadTotaluuCalculationUsinganEvent
227、TriggerCalculationUsinganEventTrigger用一个事件触发计算用一个事件触发计算n nevent=sinusoid,event=sinusoid,timeavg(sinusoidtimeavg(sinusoid,*-1h,*),*-1h,*)UseUsePIPETESTPIPETESTutility(utility(pipiadmpipetestadmpipetest)orExpression)orExpressionCalculationinCalculationinDataLinkDataLinktovalidateequationsyntaxtovalida
228、teequationsyntaxbeforeputtingthemonlinebeforeputtingthemonline用用PIPETESTPIPETEST工具或在工具或在DATALINKDATALINK中用表达式计算,在线存放以前要确认方程语法中用表达式计算,在线存放以前要确认方程语法All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 24.0 PIConfig Tool(SMG, chpt. 3)PIConfigPIConfig工具工具工具工具PIConfigPI
229、ConfigisapowerfulutilityformaintainingisapowerfulutilityformaintainingandconfiguringthePISystemdatabasesandconfiguringthePISystemdatabases PIConfigPIConfig是一个维护和配置是一个维护和配置PIPI系统数据库的强大工具系统数据库的强大工具All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2138PIConfiguuCom
230、mandShelltoolformaintainingDatabaseCommandShelltoolformaintainingDatabasetablestables维护数据库表的命令外壳程序工具维护数据库表的命令外壳程序工具n nPointDatabasePointDatabase点数据库点数据库n nDataArchivesDataArchives数据档案数据档案n nSecuritySecurity安全安全n nUserAccessUserAccess用户访问用户访问uuPIConfigPIConfigTablesprovideviewsintoPITablesprovideview
231、sintoPISubsystems.Subsystems.PIConfigPIConfig 表提供查看表提供查看PIPI子系统的功能子系统的功能All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2139PIConfig System Tables PIConfigPIConfig系统表系统表系统表系统表TableNameTableName表名称表名称PrimaryKeyPrimaryKey主键主键DatabaseDatabase数据库数据库pipointpipointT
232、AGTAGPointsPointspidspidsSETSETDigitalStatesDigitalStatespiuserpiuserUSERUSERUsersUserspigrouppigroupGROUPGROUPUsergroupsUsergroupspisnappisnapTAGTAGSnapshotSnapshotpiarcpiarcTAGTAGArchiveArchivepigen,pifirewallpigen,pifirewallHOSTMASKHOSTMASKFirewallFirewallpigen,piproxypigen,piproxyHOSTHOSTProxy(P
233、I3.2)Proxy(PI3.2)pitrustpitrustTrustTrustTrustdatabaseTrustdatabase(PI3.3+)(PI3.3+)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2140Helpful PIConfig Commands PIConfigPIConfig命令帮助命令帮助命令帮助命令帮助uu?tbltblListsavailablePISystemtablesListsavailablePISystemtables列出
234、可用的列出可用的PIPI系统表系统表uu?atratrListstableattributes(usetabletoselectatablefirst)Liststableattributes(usetabletoselectatablefirst)列出表属性(首先用列出表属性(首先用tabletable挑选一个表)挑选一个表)uucommcomm! !ChangescommentcharacterChangescommentcharacter改变注释字符改变注释字符uuhelphelp ListsallListsallPIConfigPIConfigcommandscommands列出所有列
235、出所有PIConfigPIConfig命令命令uudeli;deli;ChangesChangesPIConfigPIConfigdelimiterdelimiter改变改变PIConfigPIConfig 定义符定义符uucomccomc&ChangestheCommandcharacterChangestheCommandcharacter改变命令字符改变命令字符uuquotquot$ChangestheQuotationcharacterChangestheQuotationcharacter改变引用字符改变引用字符uustatstat ShowscurrentstatusShowscu
236、rrentstatus显示当前状态显示当前状态uuechoechoTogglesechoofcommandstoscreenTogglesechoofcommandstoscreen命令到屏幕的触发回声命令到屏幕的触发回声uuoutputoutput RedirectsoutputtothefilespecifiedRedirectsoutputtothefilespecified更改指定的输出文件更改指定的输出文件uuinputinputUsesthespecifiedfileasinputUsesthespecifiedfileasinput用指定的文件作为输入用指定的文件作为输入All
237、rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2141Adjust your Command Prompt调整你的命令提示符调整你的命令提示符调整你的命令提示符调整你的命令提示符1.1.OpenaCommandPromptOpenaCommandPrompt打开一打开一个命令提示符个命令提示符2.2.ClickontheiconintheupperClickontheiconintheupperleftcornerleftcorner点击左上脚的图标点击左上脚的图标3.3.
238、SelectpropertiesandgototheSelectpropertiesandgototheLayoutLayouttabtab挑选属性,布置版面挑选属性,布置版面4.4.ChangethevalueheightbufferChangethevalueheightbufferto2000to2000改变数值高度缓冲到改变数值高度缓冲到20002000All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2142Using PIConfig Command Fil
239、es用用用用PIConfigPIConfig命令文件命令文件命令文件命令文件uuItispossibletouseItispossibletousePIConfigPIConfiginabatchmannerratherinabatchmannerratherthaninteractivelythaninteractively在批处理中可能用在批处理中可能用PIConfigPIConfig 比用交互式好比用交互式好uuUsetheUsetheinputinputcommandorthecommandorthesymboltoredirectinputsymboltoredirectinputo
240、faofaPIConfigPIConfigsessionsession用用inputinput命令或小于字符已使一个命令或小于字符已使一个PIConfigPIConfig 会话重定向会话重定向n nExample:Example:c:piadmpiconfigc:piadmpiconfig symboltoredirectsymboltoredirectoutputofaoutputofaPIConfigPIConfigsessionsession用用inputinput命令或大于字符已使一个命令或大于字符已使一个PIConfigPIConfig 会话会话重定向重定向n nExample:Ex
241、ample:c:piadmpiconfigc:piadmpiconfigmysession.outmysession.out 例如:例如:All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2143PIConfig - Input and Output Format PIConfigPIConfig 输入和输出格式输入和输出格式输入和输出格式输入和输出格式uuInputformatInputformat istructureistructure(or(oristristr
242、) )输入格式输入格式n nExample:Example:istristrtag,descriptor,zero,spantag,descriptor,zero,spanuuOutputformatOutputformat ostructureostructure(or(orostrostr) )输出输出格式格式 n nExample:Example:ostrostrtag,descriptor,zero,spantag,descriptor,zero,spanAll rights reserved, All rights reserved, OSI Software, IncOSI Sof
243、tware, Inc. 200. 2002 2144PIConfig Modes PIConfigPIConfig 模式模式模式模式uuList:List: ListinreadonlytheinformationListinreadonlytheinformation列出只列出只读信息读信息uuCreate:Create: AddinformationAddinformation添加信息添加信息uuEdit:Edit:ModifyinformationModifyinformation修改信息修改信息uuDelete:Delete: DeleteDelete删除删除uuCreate,t:Cr
244、eate,t: Createifdoesnotexit,editifexistsCreateifdoesnotexit,editifexists如果不存在,创建,如果存在编辑如果不存在,创建,如果存在编辑uuEdit,t:Edit,t: SameasCreate,tSameasCreate,t与与Create,tCreate,t相同相同Note1:Create,tandEdit,tareequivalentNote1:Create,tandEdit,tareequivalentCreate,tandCreate,tandEdit,tEdit,t是同等地位是同等地位Note2:Edit,cand
245、Create,cwillrunincheckmodeNote2:Edit,candCreate,cwillrunincheckmodetovalidatecommandfileanddatafile.tovalidatecommandfileanddatafile.Edit,cEdit,candCreate,candCreate,c将要运行在核对模式已确认命令文件和数据文件将要运行在核对模式已确认命令文件和数据文件All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 214
246、5Using PIConfig (5 Steps for Listing Tags)用用用用PIConfigPIConfig (列出标签的列出标签的列出标签的列出标签的5 5个步骤)个步骤)个步骤)个步骤)1.1.Selectatable:Selectatable:(ex:(ex:tabltabl pipoint,classicpipoint,classic) ) 挑选一个表挑选一个表2.Selectmode:2.Selectmode:(ex:modelist)(ex:modelist)挑选模式挑选模式3.Selectingtags:3.Selectingtags:(ex:(ex:selese
247、letag=tag=si si*)*)挑选标签挑选标签4.Formatoutputstructure:4.Formatoutputstructure:(ex:(ex:ostrostrtag,zero,span)tag,zero,span)输出结构格式输出结构格式5.Executecommand:5.Executecommand: (ex:(ex:endsectionendsection)执行命令执行命令All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise
248、 2练习练习练习练习2 2ListTagsinthePISystem在在PIPI系统中列出标签系统中列出标签All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2147Using PI Config (5 Steps for Creating Tags)用用用用PIConfigPIConfig (创建标签的创建标签的创建标签的创建标签的5 5个步骤)个步骤)个步骤)个步骤)1.1.Selectatable:Selectatable:(ex:(ex:tabltabl pip
249、oint,classicpipoint,classic) )挑选挑选一个表一个表2.Selectmode:2.Selectmode:(ex:modecreate)(ex:modecreate)挑选模式挑选模式3.Formatinputstructure:3.Formatinputstructure:(ex:(ex:istristrtag,zero,span)tag,zero,span)输入输入结构格式结构格式4.Enterdatalines:4.Enterdatalines:(ex:martin.pv,0,1000)(ex:martin.pv,0,1000)输入数据输入数据行行5.Execut
250、ecommand:5.Executecommand: (ex:(ex:endsectionendsection)执行命令执行命令All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 3练习练习练习练习3 3CreateNewTagsFromaCommaDelimitedFile从一个逗号定界文件创建新的标签从一个逗号定界文件创建新的标签All rights reserved, All rights reserved, OSI Software, IncO
251、SI Software, Inc. 200. 2002 2149Using PIConfig (4 Steps for Deleting Tags)用用用用PIConfigPIConfig (删除标签的删除标签的删除标签的删除标签的4 4个步骤)个步骤)个步骤)个步骤)1.1.Selectatable:Selectatable:(ex:(ex:tabltabl pipoint,classicpipoint,classic) )挑选一个表挑选一个表2.Selectmode:2.Selectmode:(ex:modedelete)(ex:modedelete)挑选模式挑选模式3.Selecting
252、tags:3.Selectingtags:(ex:(ex:seleseletag=sinusoid)tag=sinusoid)OROR(ex:(ex: istristrtagtaginputinputmytags.datmytags.dat) )挑挑选标签选标签4.Executecommand:4.Executecommand: (ex:(ex:endsectionendsection)执行命令执行命令All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise
253、 4练习练习练习练习4 4DeleteTags删除标签删除标签All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2151Using PIConfig (4 Steps for Editing a Tag)用用用用PIConfigPIConfig (编辑标签的编辑标签的编辑标签的编辑标签的4 4个步骤)个步骤)个步骤)个步骤)1.1.Selectatable:Selectatable: (ex:(ex:tabltabl pipoint,classicpipoint,cla
254、ssic) )挑挑选一个表选一个表2.Selectmode:2.Selectmode:(ex:modeedit)(ex:modeedit)挑选模式挑选模式3.Modifyattributes:3.Modifyattributes:(ex:(ex:seleseletag=tag=martin.pvmartin.pv) )(ex:modifyzero=100)(ex:modifyzero=100)OROR(ex:(ex:istristrtag,zero)tag,zero) (ex:(ex:martin.pvmartin.pv,-100),-100)修改属性修改属性4.Executecommand:
255、4.Executecommand:(ex:(ex:endsectionendsection)执行命令执行命令All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2152Using PIConfig (4 Steps for Renaming Tags)用用用用PIConfigPIConfig (重命名标签的重命名标签的重命名标签的重命名标签的4 4个步骤)个步骤)个步骤)个步骤)1.1.Selectatable:Selectatable: (ex:(ex:tabltabl
256、 pipointpipoint,classic),classic)挑选一个表挑选一个表2.Selectmode:2.Selectmode:(ex:modeedit,t)(ex:modeedit,t)挑选模式挑选模式3.Attributestochange:3.Attributestochange: (ex:(ex:istristrtag,tag,newtagnewtag) ) (ex:(ex:martin.pvmartin.pv, ,laurent.PVlaurent.PV) ) 改变属性改变属性4.Executecommand:4.Executecommand:(ex:(ex:endsect
257、ionendsection)执行命令执行命令All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 5练习练习练习练习5 5UseaFiletoModifySpecificTagsandRenameSomeTags用一个文件修改特定标签和重命名一些标签用一个文件修改特定标签和重命名一些标签All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 20
258、02 2154Arithmetic Modification算术调整算术调整算术调整算术调整uuAttribute+=valueAttribute+=valueuuAttribute-=valueAttribute-=valueuuAttribute*=valueAttribute*=valueuuAttribute/=valueAttribute/=valueExample:Example:tabltabl pipointpipointseleseletag=*tag=*modifymodifyexcdevexcdev*=2,*=2,compdevcompdev*=2*=2endsendsA
259、ll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2155Excdev and Compdev例外偏差和压缩偏差例外偏差和压缩偏差例外偏差和压缩偏差例外偏差和压缩偏差uuForreleasesolderthanversion3.3,Forreleasesolderthanversion3.3,ExcdevExcdevandandCompdevCompdevarestoredasInt16inthePIPointsarestoredasInt16inthePIPointsd
260、atabasedatabase版本版本3.33.3以前发布的版本,例外偏差和压缩偏差在以前发布的版本,例外偏差和压缩偏差在PIPI点数据库中作为整型点数据库中作为整型1616位位存储存储uuExcdevPercentExcdevPercentandandCompdevPercentCompdevPercentareconvertedtoareconvertedtoengunitsdeviationsengunitsdeviations例外百分比和压缩百分比被转换为工程单位偏差例外百分比和压缩百分比被转换为工程单位偏差Example:Example:Zero=0Zero=0andandSpan=
261、35000Span=35000ExcdevExcdev=2.0engunits=2.0engunitsExcdevExcdev storedstored=2*32767/35000=1.87(thisroundedupto=2*32767/35000=1.87(thisroundedupto2)2)ExcdevExcdev displayeddisplayed=2*35000/32767=2*35000/32767=2.142.14 All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200
262、. 2002 2Exercise 6练习练习练习练习6 6EditSpecificTagAttributesforSelectedTags(optional)为所挑选的标签编辑特定的标签属性(选学)为所挑选的标签编辑特定的标签属性(选学)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2157PIConfig Structure Types PIConfigPIConfig结构类型结构类型结构类型结构类型uuDelimitedDelimited(ex:tag,desc
263、riptor)(ex:tag,descriptor)定界定界n nstypestype delimdelimn ndelimdelim;(Thischangesthedelimiterto;);(Thischangesthedelimiterto;)n nistristrtag;descriptor;tag;descriptor;uuFixedFixed(ex:tagdescriptor)(ex:tagdescriptor)固定固定n nstypestypefixedfixedn nistristrtag,1,1,12(attrib,row#,column#,#chars)tag,1,1,12
264、(attrib,row#,column#,#chars)n nistristrdescriptor,1,20,26descriptor,1,20,26All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2158Example of a Fixed Format File一个固定格式文件的示例一个固定格式文件的示例一个固定格式文件的示例一个固定格式文件的示例*000000001111111111222222222233333333334444444444*000000001
265、111111111222222222233333333334444444444*234567890123456789012345678901234567890123456789*234567890123456789012345678901234567890123456789TRAAF0.PV Test tag 0, DCS dataTRAAF0.PV Test tag 0, DCS data0 20 100 20 10GPMGPMTRAAF1.PV Test tag 1, DCS dataTRAAF1.PV Test tag 1, DCS data20 20 3020 20 30GPMGPMA
266、ll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 7练习练习练习练习7 7CreateNewTagsfromaFixedFormatFile(optional)从固定格式文件创建新的标签(选学)从固定格式文件创建新的标签(选学)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2160Using the Command to L
267、oad Predefined Structure files 用用用用 Command Command 命令加载预先确定的结构文件命令加载预先确定的结构文件命令加载预先确定的结构文件命令加载预先确定的结构文件uuTraditionalway:Traditionalway: 传统方法:传统方法:n nistristrtag,descriptor,zero,spantag,descriptor,zero,spanuuNewway:Newway:新方法新方法n nistristrMy_Structure.strMy_Structure.struuContentofContentofMy_Struct
268、ure.strMy_Structure.str: :我的结构目录我的结构目录n ntag,descriptor,zero,spantag,descriptor,zero,spanAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 8练习练习练习练习8 8InputaSeriesofCommands(Optional)输入一系列命令(选学)输入一系列命令(选学)All rights reserved, All rights reserved, OSI S
269、oftware, IncOSI Software, Inc. 200. 2002 2162Using the Ellipsis Construct ()用省略号构造用省略号构造用省略号构造用省略号构造uuUsetheEllipsisconstructtoretrieveorenterUsetheEllipsisconstructtoretrieveorenteranundefinednumberofdataelementsfromanundefinednumberofdataelementsfromthePISystem.thePISystem.用省略号构造恢复或者从用省略号构造恢复或者从PI
270、PI系统中加入一个不明确的数系统中加入一个不明确的数据元素编号据元素编号Example:Example:例如:例如:ostrostrset,state,set,state,set01,0,1set01,0,1setctr,man,auto,cascade,remotesetctr,man,auto,cascade,remoteAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2163Creating a Digital Tag创建一个开关量标签创建一个开关量标签创建一个
271、开关量标签创建一个开关量标签uuAvaliddigitalstatesetmustexistAvaliddigitalstatesetmustexist一个有效的开关量状态设一个有效的开关量状态设置必须存在置必须存在uuWhencreatingadigitaltag,adigitalsetmustbeWhencreatingadigitaltag,adigitalsetmustbespecifiedspecified当创建一个开关量标签时,一个开关量设置必须被指定当创建一个开关量标签时,一个开关量设置必须被指定Note:TheattributenamesinthePIDStableandNot
272、e:TheattributenamesinthePIDStableandthePIPOINTtablearenotthesamethePIPOINTtablearenotthesame注意:在注意:在PIDSPIDS表和表和PIPOINTPIPOINT表中的属性名是不同的表中的属性名是不同的Set definition:Set definition: istristr set,state,. set,state,.setctr,man,auto,cascade,remotesetctr,man,auto,cascade,remoteTag definition:Tag definition:
273、istruistru tag,pointtype,digitalsettag,pointtype,digitalsetmyDigTag,digital,setctrmyDigTag,digital,setctrPIDS(SET)=PIPOINT(DIGITALSET)PIDS(SET)=PIPOINT(DIGITALSET)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 9练习练习练习练习9 9AddaNewDigitalStateSetandCh
274、angetheCapitalizationofaState加入一个新的开关量状态设置和改变一个状态的资本加入一个新的开关量状态设置和改变一个状态的资本化化All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 10练习练习练习练习1010AddaDigitalTag添加一个开关量标签添加一个开关量标签All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 2
275、00. 2002 2166Access to PI data Via PIConfig通过通过通过通过PIConfigPIConfig访问访问访问访问PIPI数据数据数据数据Why?为什么?为什么?uuUsingUsingPIConfigPIConfigonthePIServerhelpstoonthePIServerhelpstoidentifywhereaproblemcomesfrom.identifywhereaproblemcomesfrom.在在PIPI服务器上服务器上用用PIConfigPIConfig帮助识别问题出在哪帮助识别问题出在哪uuPIConfigPIConfigall
276、owsyouto:allowsyouto:PIConfigPIConfig允许你:允许你:n nReadtimeandvaluesReadtimeandvalues读是和值读是和值n nChangevaluesChangevalues改变值改变值n nDeletevaluesDeletevalues删除值删除值All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2167Table PISNAPPISNAPPISNAP表表表表uuThistablecontainsthecu
277、rrentvalueofeveryPItagThistablecontainsthecurrentvalueofeveryPItag(snapshot).(snapshot).这个表包含每个这个表包含每个PIPI标签的当前值标签的当前值n nTag:Tag:TagnameTagname标签名称标签名称n nValue:Value:ValueValue数值数值n nTime:Time:TimestampTimestampdd-mmm-yydd-mmm-yy HH:mm:ss.ssssHH:mm:ss.ssss 时间标签时间标签n nPointIDPointID: :Uniquepointnumb
278、erUniquepointnumber唯一的数据标记序号唯一的数据标记序号n nType:Type:Pointtype(Float32,Digital,)Pointtype(Float32,Digital,)类型类型n nStatus:Status:StatusofthevalueStatusofthevalue状态状态n nTimeNumTimeNum: :Numberofsecondsince01-jan-1970Numberofsecondsince01-jan-1970自从自从01-jan-01-jan-19701970以来的秒的数目以来的秒的数目Itispossibletosendv
279、aluestothearchivebyeditingthesnapshottable(modeedit).Ifthetimestampofthevalueisbeforethetimestampofthesnapshotvalue,thevaluewillbewrittendirectlytothePIarchive(withoutcompression).编辑snapshot表已使发送值到数据档案成为可能。如果值的时间标签是snapshot值时间标签以前的时间,则值将直接被写到PI数据档案(不用压缩)All rights reserved, All rights reserved, OSI
280、Software, IncOSI Software, Inc. 200. 2002 2Exercise 11练习练习练习练习1111ListSnapshotValuesofSelectedTags列出选择标签的列出选择标签的SnapshotSnapshot值值All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2169Table PIARCPIARCPIARC表表表表uuThistablecontainscompresseddataforallthePItags.This
281、tablecontainscompresseddataforallthePItags.这个表包这个表包含所有含所有PIPI标签的压缩数据标签的压缩数据n nTag:Tag:PITagnamePITagnamePIPI标签名称标签名称n nValue:Value:ValueValue值值n nTime:Time:TimestampTimestampdd-mmm-yydd-mmm-yy HH:mm:ss.ssssHH:mm:ss.ssss 时间标签时间标签n nPointIDPointID: :UniquepointIDUniquepointID唯一的点唯一的点IDID号号n nType:Type
282、:PointType(Float32,Digital,)PointType(Float32,Digital,)点类型点类型n nStatus:Status:StatusofthevalueStatusofthevalue值的状态值的状态n nTimeNumTimeNum: :Timestampinsecondssince01-jan-1970Timestampinsecondssince01-jan-1970自从自从01-jan-197001-jan-1970以来的以来的以秒为单位的时间标签以秒为单位的时间标签uuRequiredfieldsforqueries:Requiredfieldsf
283、orqueries:为查询需要的区域为查询需要的区域n nMode:Mode:modemodepiconfigpiconfiglist(evenorcomp),modelist(evenorcomp),modepiconfigpiconfigcreate/edit/create/edit/delete(delete(noreplacenoreplace,append,replace,append,replace,replacexreplacex,remove,remove,appendxappendx) )模式模式n nCount:Count:NumberofvaluestoreturnNum
284、berofvaluestoreturn计算:返回值的数目计算:返回值的数目n nStarttimeStarttimeandandEndtimeEndtime: :StarttimeandendtimeStarttimeandendtimeforthequeryforthequery为查询的开始时间和结束时间为查询的开始时间和结束时间All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2170Even vs Comp modeEven Even vsvs Comp Comp
285、 方式方式方式方式uucomp:valuesstoredinthePIarchivecomp:valuesstoredinthePIarchive存储在存储在PIPI数据档案中的值数据档案中的值uueven:valuesevenlyspacedintime.Thesevaluesareinterpolatedeven:valuesevenlyspacedintime.Thesevaluesareinterpolatedfromthearchivedvalues.fromthearchivedvalues.值及时的填平空间。这些值被从数据档案值中插入。值及时的填平空间。这些值被从数据档案值中插入
286、。All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 12练习练习练习练习1212ListArchiveValuesofaSpecificTag列出一个特定标签的数据档案值列出一个特定标签的数据档案值All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 25.0 Security (RG, chpt. 3)安全安全All right
287、s reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2173PI Server SecurityPIPI服务器安全服务器安全服务器安全服务器安全uuPI Firewall PI Firewall PIPI防火墙防火墙防火墙防火墙n nAllowsordisallowsconnectiontoPIAllowsordisallowsconnectiontoPI允许或拒绝连接允许或拒绝连接PIPIuuPI Users and Groups PI Users and Groups PIPI用户和组
288、用户和组用户和组用户和组n nAppliesaccesspermissionsbasedonuserloginAppliesaccesspermissionsbasedonuserlogin在用在用户登陆的基础上,应用访问权限户登陆的基础上,应用访问权限uuPI Trust (formerly PI Proxy)PI Trust (formerly PI Proxy)PIPI信任(以前的信任(以前的信任(以前的信任(以前的PIPI代理)代理)代理)代理)n nAppliespermissionsfornon-interactiveapplicationsAppliespermissionsfo
289、rnon-interactiveapplications为非交互式应用程序应用许可为非交互式应用程序应用许可All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2174PIUser TablePIPI用户表用户表用户表用户表uuThistablecontainsarecordforeachuserinthePISystemThistablecontainsarecordforeachuserinthePISystem这这个表包含在个表包含在PIPI系统中的每个用户的一个记
290、录系统中的每个用户的一个记录n nuser:user:uniquePIusernameuniquePIusername唯一的唯一的PIPI用户名称用户名称n ndescription:description:freetexttodescribetheuserfreetexttodescribetheuser用来描述用户的随意文字用来描述用户的随意文字n ngroups:groups:groupsthattheuserisassociatedwithgroupsthattheuserisassociatedwith 组是相关联用户的集合组是相关联用户的集合n nNote1:Bydefault,a
291、newusergetassignedhisusernameasaNote1:Bydefault,anewusergetassignedhisusernameasapassword.password.注意注意1 1:缺省的,一个新的用户可以指定他的用户密码:缺省的,一个新的用户可以指定他的用户密码n nNote2:Tosetanewuserspasswordatcreationtime,useNote2:Tosetanewuserspasswordatcreationtime,use“/password”“/password”whencreatingtheuser.Use“/”inorderto
292、setnowhencreatingtheuser.Use“/”inordertosetnopassword.password.注意注意2 2:在创建的时候设置一个用户的密码,用:在创建的时候设置一个用户的密码,用“/password”“/password”,当创建用当创建用户的时候用户的时候用“/”“/” 则会设置无密码则会设置无密码w wExample:Example: tabletablepiuserpiuser istristruseruser Martin/Martin/osiosi endsendsAll rights reserved, All rights reserved, O
293、SI Software, IncOSI Software, Inc. 200. 2002 2175PIGroup TablePIPI组表组表组表组表uuThistablecontainsarecordforeachgroupintheThistablecontainsarecordforeachgroupinthePISystem.PISystem.这个表包含在这个表包含在PIPI系统中每个组的记录系统中每个组的记录n ngroup:group:uniquePIgroupnameuniquePIgroupname唯一的唯一的PIPI组的名称组的名称n ndescription:descript
294、ion:freetexttodescribethegroupfreetexttodescribethegroup用来描述组的随意文字用来描述组的随意文字n nusers:users:usersassociatedtothisgroupusersassociatedtothisgroup与该组有联系的用户与该组有联系的用户n nNote1Note1: :AssigninggroupstousersisdoneviatheAssigninggroupstousersisdoneviathePIUserPIUsertable.table.注意注意1 1:通过:通过PIPI用户表指定用户所在的组用户表
295、指定用户所在的组All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2176PI Tag SecurityPIPI标签安全标签安全标签安全标签安全uuPointDataAccessPointDataAccess点数据访问点数据访问n nWhenapointiscreated,theArchiveandSnapshotdataforthepointareWhenapointiscreated,theArchiveandSnapshotdataforthepointareas
296、signedaassignedapoint data ownerpoint data ownerandaandadata groupdata group.Thedataarealso.Thedataarealsoassignedvariouscombinationsofreadandwriteaccessforthedataowner,assignedvariouscombinationsofreadandwriteaccessforthedataowner,group,andworld.group,andworld. 当点被创建的时候,归档和闪存数据为该点指定一个点数据所有当点被创建的时候,
297、归档和闪存数据为该点指定一个点数据所有者和一个数据组。数据也为数据所有者,组和任何人指定几种读和写访问的组合者和一个数据组。数据也为数据所有者,组和任何人指定几种读和写访问的组合uuPointAttributeAccessPointAttributeAccess点属性访问点属性访问n nWhenapointiscreated,theattributesofthepoint(Whenapointiscreated,theattributesofthepoint(zero, span, zero, span, compressioncompression,etc.)maybeassignedtoa
298、differentowneranddifferent,etc.)maybeassignedtoadifferentowneranddifferentgroupthanthepointdata.groupthanthepointdata.当点被创建的的时候,点的属性能比点数据更可以指定当点被创建的的时候,点的属性能比点数据更可以指定一个不同的所有者和不同的组一个不同的所有者和不同的组All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2177Tags Security标签安
299、全标签安全标签安全标签安全uuTagconfigurationaccess:Owner,GroupandWorldTagconfigurationaccess:Owner,GroupandWorld( (PtOwnerPtOwnerandandPtGroupPtGroup) )配置标签访问:所有者,组和任何人配置标签访问:所有者,组和任何人AccessfortagownersAccessfortagowners( (PtAccessPtAccess) ) example:example: o:rwo:rwg:rw:rg:rw:ruuAccesstotagdata:Owner,GroupandW
300、orldAccesstotagdata:Owner,GroupandWorld( (DataOwnerDataOwnerandandDataGroupDataGroup) )访问标签数据:所有者,组和任何人访问标签数据:所有者,组和任何人AccesstotagdataAccesstotagdata( (DataAccessDataAccess) ) example:example: o:rwo:rwg:rw:rg:rw:rNoteNote:Ausercanbeamemberofseveralgroups.APItagcanonlybe:Ausercanbeamemberofseveralgro
301、ups.APItagcanonlybeassociatedtoasinglegroup.associatedtoasinglegroup.注意:一个用户可以是几个组的成员。一个注意:一个用户可以是几个组的成员。一个PIPI标签只能标签只能与一个组有关联与一个组有关联PIgrantsthelessrestrictiveaccessrights.PIgrantsthelessrestrictiveaccessrights.PIPI承认更少的限制访问权承认更少的限制访问权All rights reserved, All rights reserved, OSI Software, IncOSI So
302、ftware, Inc. 200. 2002 2Exercise 13练习练习练习练习1313PI3SecurityPI3安全All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2179PISetPass UtilityPIPI密码设置工具密码设置工具密码设置工具密码设置工具uThePISetpassutilityenablesyoutochangethepasswordofaPIUser.给密码设置工具能使你改变一个用户的密码uTheutilitycanbefoundi
303、nthepiadmdirectory.该工具能在piadm目录下找到uTheutilitycanonlyberunonthePIServerconsole.该工具能在PI服务器控制台上运行Note1Note1:Auserspassword(otherthan:Auserspassword(otherthanpiadminpiadmin)canberesetbyusing)canberesetbyusinganexclamationpointasoldpassword.anexclamationpointasoldpassword.注意:一个用户的密码能够用一个作为老密注意:一个用户的密码能够用
304、一个作为老密码的感叹号重置码的感叹号重置Note2Note2:Usethe:UsethePIDiagPIDiagudfudfcommandtoresettocommandtoresettopiadminpiadminpasswordtopasswordtoblank.(Usage:blank.(Usage:pidiagpidiagudfudf c:pidatc:pidat.PIBasessPIBasessmustbestopped)mustbestopped)注意注意2 2:用:用PIDiagPIDiagudfudf 命令能把命令能把PIPI管理员的密码设置为空白管理员的密码设置为空白Note
305、3Note3:PIUsersarenotcasesensitivebutcasepreserving.Passwords:PIUsersarenotcasesensitivebutcasepreserving.Passwordsarecasesensitive.arecasesensitive.注意注意3 3:PIPI用户不区分大小写但大小写都可以保留。密码区分大小写用户不区分大小写但大小写都可以保留。密码区分大小写All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 21
306、80uu-10400:-10400: NoReadAccessSecureObjectNoReadAccessSecureObject没有对目标的读访问权限没有对目标的读访问权限uu-10401:NoWriteAccessSecureObject-10401:NoWriteAccessSecureObject没有对目标的写访问权限没有对目标的写访问权限UseUsepidiagpidiagetoobtainerrormessageontheetoobtainerrormessageonthePIServer.PIServer.用用pidiagpidiagee在在PIPI服务器上得到错误信息服务器
307、上得到错误信息Ex:Ex:c:piadmpidiagc:piadmpidiage-10401e-10401Security Related Error Messages 安全关联的错误信息安全关联的错误信息安全关联的错误信息安全关联的错误信息All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2181PI FirewallPIPI防火墙防火墙防火墙防火墙uuThe PI UDS has its own user identification and The PI UDS
308、has its own user identification and password security: PI Firewall provides the first password security: PI Firewall provides the first level of access control, based on the network level of access control, based on the network address of the client. address of the client. PI UDSPI UDS有自己的用户鉴定和密码安全:
309、有自己的用户鉴定和密码安全:PIPI放火放火墙是访问控制的第一个级别,是建立在客户端网络地址的基础上的墙是访问控制的第一个级别,是建立在客户端网络地址的基础上的All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2182PI Firewall continuedPIPI防火墙防火墙防火墙防火墙- -继续继续继续继续uuThe Firewall Database is a table with two fields:The Firewall Database is a ta
310、ble with two fields:防防火墙数据库是一个两个区域的表火墙数据库是一个两个区域的表n nHostMaskHostMask: for example: : for example: 主机地址主机地址l l192.168.149.55192.168.149.55l l192.168.177.*192.168.177.*n nValue:Value:值值l lAllow Allow 允许允许l lDisallow Disallow 拒绝拒绝ORAll rights reserved, All rights reserved, OSI Software, IncOSI Softwar
311、e, Inc. 200. 2002 2Exercise 14练习练习练习练习1414PIFirewallSecurityPIPI防火墙安全防火墙安全All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2184PI 3 User AuthenticationPI TRUSTPI 3PI 3用户鉴定用户鉴定用户鉴定用户鉴定PIPI信任信任信任信任PINetMGRPIFireWallPI TRUSTAuthenticationUserAuthentication(byusera
312、ndpassword)Access toPI Databases (according to connection credentials)Group authenticationTrust records may be configured for three types of login:信任记录可以被信任记录可以被3种登陆类型配置种登陆类型配置1.PI API Application 2.PI SDK on Windows 95, 98, Me3.PI SDK on Windows NT, 2000Non-Interactive loginInteractive loginAll rig
313、hts reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2185PI Trust: How it Works (1/2)(1/2)PIPI信任:如何工作信任:如何工作信任:如何工作信任:如何工作uuPIServerderivesasetofconnectionPIServerderivesasetofconnectioncredentialsfromtheconnectingprocess.credentialsfromtheconnectingprocess.PIPI服务器服务器从连接的
314、过程中取得一套连接信任证从连接的过程中取得一套连接信任证 uuIfthecredentialsmatchalltheattributesinaIfthecredentialsmatchalltheattributesinatrust,theprocessgetstheprivilegesofthetrust,theprocessgetstheprivilegesofthePIUserPIUser. .如果该信任证在一个信任中匹配所有的属性,则该过程就会得到用户如果该信任证在一个信任中匹配所有的属性,则该过程就会得到用户特权特权uuThistrustgivesTtheprivilegesofth
315、eprivilegesofpiadminpiadmin: :这个信任给这个信任给 管理员特权管理员特权n ntable table pitrustpitrustn nmode createmode createn nistruistru trust,IPhost,PIusertrust,IPhost,PIusern nmyTrust1,myTrust1,, ,piadminpiadminn nendsectionendsectionAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200.
316、 2002 2186PI Trust: How it Works (2/2)(2/2)uuThistrustgivesThistrustgives206.79.198.12206.79.198.12theprivilegesoftheprivilegesofpiadminpiadmin: :这个信任给这个信任给206.79.198.12206.79.198.12管理员特权管理员特权table table pitrustpitrustmode createmode create istruistru trust, trust, IPAddrIPAddr, , NetMaskNetMask, ,
317、PIuserPIusermyTrust2, 206.79.198.12, 255.255.255.255, myTrust2, 206.79.198.12, 255.255.255.255, piadminpiadmin endsectionendsectionuuThistrustallowsallcomputersinaclassCThistrustallowsallcomputersinaclassCsubnettoconnect:subnettoconnect:这个信任允许所有的计算机进行连接这个信任允许所有的计算机进行连接table table pitrustpitrustmode
318、createmode create istruistru trust, trust, IPAddrIPAddr, , NetMaskNetMask, , PIuserPIusermyTrust3, 206.79.198.0, 255.255.255.0, myTrust3, 206.79.198.0, 255.255.255.0, piadminpiadmin endsectionendsectionAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2187PI 3 U
319、ser AuthenticationPI TRUSTPI 3PI 3用户鉴定用户鉴定用户鉴定用户鉴定PIPI信任信任信任信任uuCredentialsavailableforPIAPILogin信任证可信任证可用于用于PIAPIPIAPI登陆登陆n nAppNameAppName(4-Characters+E)(4-Characters+E)n nIPAddrIPAddrandandNetMaskNetMaskn nIPHostIPHostuuIfamatchisfound,theconnectionisgrantedIfamatchisfound,theconnectionisgranted
320、thesameaccessasthePIUseridentifiedinthethesameaccessasthePIUseridentifiedinthetrustrecord.trustrecord.如果一个匹配被找到,则该连接可作为信任记录中的被鉴定的如果一个匹配被找到,则该连接可作为信任记录中的被鉴定的PIPI用户允许相同的访问用户允许相同的访问uuIfaPIAPIBasedApplicationhasasubsequentIfaPIAPIBasedApplicationhasasubsequentuser/passwordlogin,itwilloverrideanytrustuse
321、r/passwordlogin,itwilloverrideanytrustauthorization.authorization.如果如果PIAPIPIAPI基本应用程序有以后有一个用户基本应用程序有以后有一个用户/ /密码登陆,则它将密码登陆,则它将越过一些信任的授权越过一些信任的授权All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2188PI 3 User AuthenticationPI TRUST-Table PI 3PI 3用户鉴定用户鉴定用户鉴定用户鉴定
322、PIPI信任信任信任信任- -表表表表uuCredentialsavailablewithaCredentialsavailablewithaPISDKPISDKloginlogin信任证可用于信任证可用于PISDKPISDK登陆登陆n nApplicationprocessname(NameoftheEXE)Applicationprocessname(NameoftheEXE) 应用程序进程名称应用程序进程名称n nIPAddressandIPAddressandNetMaskNetMask IPIP地址和子网掩码地址和子网掩码n nHostnameHostname主机名称主机名称n nL
323、ocalDomainorWindows2000DomainmembershipLocalDomainorWindows2000Domainmembership位于的域或位于的域或W2000W2000域成员域成员n nOSUserOSUsername,asloggedintothedomainname,asloggedintothedomain操作系统用户名,登陆到域操作系统用户名,登陆到域uuIfamatchisfound,theconnectionisgrantedthesameIfamatchisfound,theconnectionisgrantedthesameaccessastheP
324、IUseridentifiedinthetrustrecord.accessasthePIUseridentifiedinthetrustrecord.如果一个如果一个匹配被找到,则该连接可作为信任记录中的被鉴定的匹配被找到,则该连接可作为信任记录中的被鉴定的PIPI用户允许相同的访问用户允许相同的访问A PI SDK based connection that has a username and A PI SDK based connection that has a username and password will be disregarded, and will connect w
325、ith the password will be disregarded, and will connect with the Trust user.Trust user. 一个一个PI SDKPI SDK基本连接的用户名和密码将被忽视,将连接一个信任用户基本连接的用户名和密码将被忽视,将连接一个信任用户All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2189PI 3 User AuthenticationPI TRUST Table1 If IPAddr is us
326、ed, Netmask must also be configured. 如果IP地址被用,则子网掩码必须被配置Field inTrust Record Req. or Opt.PI APIPI SDK (on NT or 2000)Trust nameReq.AppNameOpt.yesyesDomainOpt.noyesIPAddr1Opt.yesyesNetmaskOpt.yesyesHostnameOpt.yesyesOSUserOpt.noyesPIUserReq.All rights reserved, All rights reserved, OSI Software, IncO
327、SI Software, Inc. 200. 2002 2190PI 3 User AuthenticationPI TRUST-TableuuThefollowingpriorityisappliedwhenmultipleentriesThefollowingpriorityisappliedwhenmultipleentriesareused:areused:当有多种目录被用,以下为应用的优先权:当有多种目录被用,以下为应用的优先权:1.1.Application name Application name 2.2.Specific OS userSpecific OS user3.3.
328、Any Domain Machine ($)Any Domain Machine ($)4.4.Any Domain user ($)Any Domain user ($)5.5.IP address IP address 6.6.IPHostIPHost 7.7.Subnet Subnet 8.Domain matchlThedetailsaboutthehandlingoftheprioritiescanbefoundinSMG,chpt1.关于优先的详细处理可以在SMG,chpt1中被找到All rights reserved, All rights reserved, OSI Soft
329、ware, IncOSI Software, Inc. 200. 2002 2191PI 3 User AuthenticationPI TRUST-Tablen nAMachineIPAMachineIPAdressAdressistrustedbasedonthecombinationofistrustedbasedonthecombinationofIPAddrIPAddrandandNetMaskNetMaskinthetrusttableinthetrusttable一台机器的一台机器的IPIP地址被信任是建立地址被信任是建立在信任表中的在信任表中的IPIP地址和子网掩码结合的基础上
330、的地址和子网掩码结合的基础上的n n0inthe0intheNetMaskNetMaskmeansanynumbersmeansanynumbers子网掩码中子网掩码中0 0的意思是任何数字的意思是任何数字n n255meansperfectmatchofthatfield255meansperfectmatchofthatfield255255以为着那个区域的完美匹配以为着那个区域的完美匹配RowTrust IPAddr Trust Netmask Machine IPAddrResult of ANDMatch10.0.0.00.0.0.0192.168.168.1210.0.0.0Yes
331、2192.168.168.0255.255.255.0192.168.168.121192.168.168.0Yes3192.168.168.0255.255.255.0192.168.175.004192.168.175.0No4192.168.168.22255.255.255.255192.168.168.22192.168.168.22Yes5192.168.168.22255.255.255.255192.168.168.20192.168.168.20NoAll rights reserved, All rights reserved, OSI Software, IncOSI S
332、oftware, Inc. 200. 2002 2192PI 3 User AuthenticationPI TRUST-Tablen nIftheIfthenetmasknetmaskis192,thentheaddressmustbeinoneoftheis192,thentheaddressmustbeinoneofthefollowingrange(Stepof64):followingrange(Stepof64):如果子网掩码是如果子网掩码是192192,则该地址必须是以下,则该地址必须是以下范围中的一个范围中的一个w w192.168.168.0to192.168.168.631
333、92.168.168.0to192.168.168.63w w192.168.168.64to192.168.168.127192.168.168.64to192.168.168.127w w192.168.168.128to192.168.168.191192.168.168.128to192.168.168.191w w192.168.168.192to192.168.168.255192.168.168.192to192.168.168.255RowTrust IPAddr Trust Netmask Machine IPAddrResult of ANDMatchA192.168.16
334、8.128255.255.255.192192.168.168.178192.168.168.128YesB192.168.168.128255.255.255.192192.168.168.121192.168.168.64NoStep 1 - AndStep 2 - CompareStep 3 - MatchAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2193PI Proxy TablePIPI代理表代理表代理表代理表uuBeforeversion3.3the
335、ProxyDatabasewasBeforeversion3.3theProxyDatabasewasusedfornon-interactiveloginsusedfornon-interactivelogins在版本在版本3.33.3以前,代理数据库以前,代理数据库被用做非交互式登陆被用做非交互式登陆table table pigen,piproxypigen,piproxymode createmode create istructureistructure host,proxyaccounthost,,,piadmin206.79.198.12,piadmin206.79.198.12
336、,piadmin endsectionendsectionAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 15练习练习练习练习1515PIProxy/PITrustConfigurationPIPI代理代理/ /PIPI信任配置信任配置All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2195Accessing PI Dat
337、abases Remotely with PIConfig用用用用PIConfigPIConfig远程访问远程访问远程访问远程访问PIPI数据库数据库数据库数据库uuTheTheLOGINLOGINcommandallowstologintoanyPIServerforcommandallowstologintoanyPIServerforremotedatabaseadministration.(SMG,remotedatabaseadministration.(SMG,ChptChpt1)1)LOGINLOGIN命令允许命令允许为了远程的数据库管理登陆一些为了远程的数据库管理登陆一些PIP
338、I服务器服务器n nExample:Example:l lloginloginTCPIP_HostName,user,pass,TCPIP_PortTCPIP_HostName,user,pass,TCPIP_Portl lloginANDY,piadmin,5450loginANDY,piadmin,5450n nLimit:Limit:限制:限制:l lGeneralTables(TimeoutandFirewall)cannotbeaccessedGeneralTables(TimeoutandFirewall)cannotbeaccessedremotely.remotely. 一般的
339、表(超时和防火墙)不能被远程访问一般的表(超时和防火墙)不能被远程访问uuThereisnologoffcommand.TheonlywaytologoffistoThereisnologoffcommand.Theonlywaytologoffistologonlocally.logonlocally.没有退出系统命令。退出系统的唯一方法是登陆到本地没有退出系统命令。退出系统的唯一方法是登陆到本地n nExample:Example:l lloginlocalhost,piadmin,5450loginlocalhost,piadmin,5450uuToverifywhereyouarelo
340、ggedon,usetheToverifywhereyouareloggedon,usethestatstat mand. 为了查对你登陆的位置,用为了查对你登陆的位置,用statstat命令命令All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2196Edit DBSecurity Table(For Remote Access)编辑数据库安全表编辑数据库安全表编辑数据库安全表编辑数据库安全表(为远程访问)(为远程访问)(为远程访问)(为远程访问)uuAccessto
341、theBaseSubsystemAccesstotheBaseSubsystem: :访问基本子系统访问基本子系统n nTomaintaintheattributesofthePointDatabaseTomaintaintheattributesofthePointDatabase为了维护点数据库属性为了维护点数据库属性n nTomaintaintheDigitalStateTableTomaintaintheDigitalStateTable为了维护开关量状态表为了维护开关量状态表n nTomaintainconfigurationdatabasesforuserandgroupsecur
342、ityTomaintainconfigurationdatabasesforuserandgroupsecurity维护维护配置数据库为用户和组安全配置数据库为用户和组安全n nTohostthePIModuleDatabaseTohostthePIModuleDatabase为了主为了主PIPI模块数据库模块数据库uuAccessControlledbytheAccessControlledbythedbsecurity,pibasessdbsecurity,pibasesstable.table.访问被数据库安访问被数据库安全,全,PIBASESSPIBASESS表控制表控制 n ndbn
343、amedbname: :PIdatabasename(onlyfortablesthatcanberemotelyPIdatabasename(onlyfortablesthatcanberemotelyaccessed)accessed)数据库名称:数据库名称:PIPI数据库名称(仅仅为能被远程访问的表)数据库名称(仅仅为能被远程访问的表)n naccess:access:securitystring(securitystring(o:rwo:rwg:r:w:r)g:r:w:r)访问:安全字符串访问:安全字符串n nowner:owner: piuserpiuserownerofthetab
344、leownerofthetable所有者:表的所有者:表的PIPI用户所有人用户所有人n ngroup:group: pigrouppigroupenabledtomodifytagsenabledtomodifytags组:使修改标签成为可能的组:使修改标签成为可能的PIPI组组All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2197DBSecurity Remote Access数据库安全数据库安全数据库安全数据库安全- -远程访问远程访问远程访问远程访问uuEn
345、abletheEnablethepiadminpiadmingroupgrouptoremotelycreatetagsanddigitalstates:toremotelycreatetagsanddigitalstates:使管理员组远程创建标签和开关量状态成为可能使管理员组远程创建标签和开关量状态成为可能tabltabl dbsecurity,pibasessdbsecurity,pibasessistristr dbname,access,group,ownerdbname,access,group,ownerpipoint,o:rwpipoint,o:rw g:rwg:rw w:r,
346、piadmin,piadminw:r,piadmin,piadminpids,o:rwpids,o:rw g:rwg:rw w:r,piadmin,piadminw:r,piadmin,piadminpiuser,o:rwpiuser,o:rwg:rg:rw:r,piadmin,piadminw:r,piadmin,piadminpimodules,o:rwpimodules,o:rwg:rg:rw:r,piadmin,piadminw:r,piadmin,piadminpiheadings,o:rwpiheadings,o:rwg:rg:rw:r,piadmin,piadminw:r,pia
347、dmin,piadminpitransferrecords,o:rwpitransferrecords,o:rwg:rg:rw:r,piadmin,piadminw:r,piadmin,piadminpibatch,o:rwpibatch,o:rwg:rg:rw:r,piadmin,piadminw:r,piadmin,piadminendsendsDontforgettoaddyouradministrativeDontforgettoaddyouradministrativeuserstotheuserstothepiadminpiadmingroupgroup. .不要忘了添加管理用户到
348、不要忘了添加管理用户到PIPI管理员组管理员组PI UDS 3.3+All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 16练习练习练习练习1616DatabaseSecurity数据库安全数据库安全All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2199PIConfig- ExercisesPIConfigPIConfig-
349、 -练习练习练习练习uuExercise13Exercise13练习练习1313Use192.187.177.*asUse192.187.177.*asSubNetSubNetuuExercise14Exercise14练习练习1414UseyourUseyourneighboursneighboursIPaddressorservernameIPaddressorservername( (STUDENTxxSTUDENTxx) )用你伶近的用你伶近的IPIP地址或者服务器名地址或者服务器名n nExample:Student01,piadminExample:Student01,piadmi
350、nAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 26.0 PI System Administration(SMG, chpt. 1)PIPI系统管理系统管理系统管理系统管理All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2201PI Archive MaintenancePIPI数据档案维护数据档案维护数据档案维护数据档案维护uuPIAr
351、toolPIArtoolPIArtoolPIArtool工具工具n n-v-v VersionofthetoolVersionofthetool工具版本工具版本n n-al-al ListsallregisteredarchivesListsallregisteredarchives列出所有已注册的数据档案列出所有已注册的数据档案n n- -fsfsForcesanarchiveshiftForcesanarchiveshift强迫数据档案转换强迫数据档案转换n n-ac-acCreatesanarchiveforaspecifiedperiodCreatesanarchiveforaspec
352、ifiedperiod创建一个创建一个指定时期的数据档案指定时期的数据档案n n- -arar RegistersanarchiveRegistersanarchive注册一个数据档案注册一个数据档案n n-au -au UnregistersUnregistersanarchiveanarchive注销一个数据档案注销一个数据档案n n-as-asListsarchivestatsListsarchivestats列出数据档案状态列出数据档案状态n n- -bsbs StartsbackupofspecifiedarchiveStartsbackupofspecifiedarchive开始备
353、份指定的数开始备份指定的数据档案据档案n n-be-beBackupendBackupend备份结束备份结束n n- -ssssSnapshotstatsSnapshotstats闪存快照状态闪存快照状态n n-ads and -ads and -aesaes ArchiveshiftdisableandarchiveshiftenableArchiveshiftdisableandarchiveshiftenable数据数据档案转换失败和数据档案转换可能档案转换失败和数据档案转换可能n n-ooo-oooTagswithoutofordereventsTagswithoutoforderev
354、ents列出发生故障事件的标列出发生故障事件的标签签All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2202PI Archive ShiftPIPI数据档案转换数据档案转换数据档案转换数据档案转换ArchivePosition0Initial最初的After1stshift第一次转换后After2ndshift第二次转换后ArchivePosition1ArchivePosition2ArchivePosition3All rights reserved, All r
355、ights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2203Archive Shifting Rule数据档案转换规则数据档案转换规则数据档案转换规则数据档案转换规则uuTheprimaryarchiveonlyshiftswhenfullTheprimaryarchiveonlyshiftswhenfull(99%).(99%).当首文档满的时候需要转换当首文档满的时候需要转换uuThefollowingruleisusedtodeterminewhichThefollowingruleisusedtodetermine
356、whichisthenextprimaryarchive:isthenextprimaryarchive:以下规则被用做定义哪一个文以下规则被用做定义哪一个文档作为下一个首文档档作为下一个首文档ThePISystemusestheemptyarchivewiththeThePISystemusestheemptyarchivewiththehighestnumber.Ifallthearchivesarefull,thehighestnumber.Ifallthearchivesarefull,theoldestarchiveisreused.oldestarchiveisreused.PIP
357、I系统用空文档作为下个首文档。如果系统用空文档作为下个首文档。如果所有数据档案已满,则最老的数据档案将被重新用做首文档。所有数据档案已满,则最老的数据档案将被重新用做首文档。All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2204Archive Shift Example数据档案转换事例数据档案转换事例数据档案转换事例数据档案转换事例uuThedayofinstallation,aftertwoextraarchivesareThedayofinstallation,
358、aftertwoextraarchivesarecreatedcreated安装当天,两个特别的文档被创建以后安装当天,两个特别的文档被创建以后uuAfterthefirstshiftAfterthefirstshift第一个文档转换以后第一个文档转换以后uuAfterthefifthshiftAfterthefifthshift第第5 5个文档转换以后个文档转换以后All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2205PI 3 Archive StructureP
359、I 3PI 3数据档案构造数据档案构造数据档案构造数据档案构造Recordheader(24bytes)记录报头(24字节)Primaryrecord(1000bytes)主记录(1000个字节)OverflowrecordsNumber of Values per Record 每次记录值的数量每次记录值的数量Float16,Int16andDigital(3bytes):330浮点型16位,整数型16位和开关量(3字节):330Float32andInt32(5bytes):200浮点型32位和整数型32位(5字节):200Float64(9bytes):110浮点型64位(9字节):11
360、0All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2206Archive FileCreating, Initializing, Filling, Shifting an Archive创建,初始化,填满,转移一个数据档案创建,初始化,填满,转移一个数据档案创建,初始化,填满,转移一个数据档案创建,初始化,填满,转移一个数据档案uuCreatethearchivefile(noprimaryrecordsyet)Createthearchivefile(noprima
361、ryrecordsyet)创建数据档案文件(无主记录)创建数据档案文件(无主记录)uuPrimariesarecreatedandarefirsttofillPrimariesarecreatedandarefirsttofill首文档被创首文档被创建和首先被填满建和首先被填满uuAsprimariesfill,weaddoverflowsAsprimariesfill,weaddoverflows首文档填满,我们将首文档填满,我们将加入溢出加入溢出uuWhenoverflowsfillthearchive,itshiftsWhenoverflowsfillthearchive,itshift
362、s当溢出填满当溢出填满该数据文档,它将转换该数据文档,它将转换1K Primary Records1K Overflow RecordsAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2207Archive Shift Prediction数据档案转换预报数据档案转换预报数据档案转换预报数据档案转换预报uuCalculatesarchivefullnessCalculatesarchivefullness计算数据档案利用率计算数据档案利用率%used=%used=(U
363、sedPrimary(UsedPrimaryRecsRecs+UsedOverflow+UsedOverflowRecsRecs) )/Total/TotalRecsRecs uuObtainsObtainsarchiveshiftpredictionarchiveshiftpredictiondirectlydirectly直接得到数据档案转换预报直接得到数据档案转换预报useusepiartoolpiartool-as-as,andobservethePISystemestimation,andobservethePISystemestimation用用piartoolpiartoolas
364、as,观察观察PIPI系统估算系统估算“Archive Shift Prediction (hr) : #”“Archive Shift Prediction (hr) : #”useusepiartoolpiartool-al-al,andobservethePISystemestimation,andobservethePISystemestimation用用piartoolpiartoolalal,观察观察PIPI系统估算系统估算Archive shift prediction:Archive shift prediction: Shift Time: Not enough Shift
365、Time: Not enough informatioinformatio Target Archive: C:PIdatpiarch.003 Target Archive: C:PIdatpiarch.003Archive0: C:PIdatpiarch.003Archive0: C:PIdatpiarch.003 PIarcfileheadPIarcfilehead $ $WorkfileWorkfile: : piarfile.cxxpiarfile.cxx $ $Revision: 42 $ $Revision: 42 $:$: Version: 4 Path: C:PIdatpiar
366、ch.003 Version: 4 Path: C:PIdatpiarch.003 State: 4 Type: 0 Write Flag: 1 Shift Flag: 1 State: 4 Type: 0 Write Flag: 1 Shift Flag: 1 Record Size: 1024 Count: 32768 Record Size: 1024 Count: 32768 Offsets: Primary: 638/8192 Overflow: 32760/32768 Offsets: Primary: 638/8192 Overflow: 32760/32768 Start Ti
367、me: 20-Jan-00 15:01:15 Start Time: 20-Jan-00 15:01:15 End Time: Current Time End Time: Current TimeAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2208Fixed Archive Creation数据档案创建数据档案创建数据档案创建数据档案创建uuWithWithpiarcreatepiarcreate 用用piarcreatepiarcreaten npiarcre
368、atepiarcreatepathsize(Mb)pathsize(Mb)piarcreatepiarcreate 路径路径 大小(大小(Mb)Mb)n nYoumustregisterafterwardYoumustregisterafterward创建完后必须注册创建完后必须注册PiarcreatePiarcreate C:pidatpiarch.034 300 C:pidatpiarch.034 300PiartoolPiartool arar c:pidatpiarch.034 c:pidatpiarch.034uuWithWithpiartoolpiartool 用用piartool
369、piartooln nPiartoolPiartoolacacn nFollowtheonscreeninstructionsFollowtheonscreeninstructions根据屏幕上的说明根据屏幕上的说明n nYouwillbeabletosetthestartandenddatesYouwillbeabletosetthestartandenddates你要设置你要设置开始和结束日期开始和结束日期n nSizewillbethesameasthecurrentprimaryarchiveSizewillbethesameasthecurrentprimaryarchive大大小与
370、当前首文档大小相同小与当前首文档大小相同All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2209Dynamic Archive Creation动态数据档案创建动态数据档案创建动态数据档案创建动态数据档案创建uuWithWithpiartoolpiartool 用用piartoolpiartooln nPiartoolPiartoolacdacd n nFollowtheonscreeninstructionsFollowtheonscreeninstructions
371、根据屏幕上的说明根据屏幕上的说明n nYouwillbeabletosetthestartandenddatesYouwillbeabletosetthestartandenddates你要设置你要设置开始和结束日期开始和结束日期uuWithWithpiarcreatepiarcreate 用用piarcreatepiarcreaten nPiarcreatePiarcreate-dpath-dpathmaxpointsmaxpoints maxsize(Mbmaxsize(Mb) )PiarcreatePiarcreatedd路径路径 最大点数最大点数 最大尺寸最大尺寸PiarcreateP
372、iarcreate d C:pidatpiarch.034 30000 400 d C:pidatpiarch.034 30000 400All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 17练习练习练习练习1717PISystemManagementExercisesPIPI系统管理练习系统管理练习All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc
373、. 200. 2002 2211PI System Backup (Daily, SMG (Daily, SMG ChptChpt 1) 1)PIPI系统备份系统备份系统备份系统备份uuDailyBackup:DailyBackup:ItisimportanttobackupyourPIdataItisimportanttobackupyourPIdatadirectoryeveryday.(pidirectoryeveryday.(pidatdat) )日备份:每天备份的日备份:每天备份的PIPI数据档案目录是很重要的数据档案目录是很重要的n nBackuptheprimaryandmost
374、recentlyshiftedarchiveandBackuptheprimaryandmostrecentlyshiftedarchiveandPIdatabasefilestogether.PIdatabasefilestogether.和和PIPI数据库文件一起备份首文档和最近转换的文档数据库文件一起备份首文档和最近转换的文档n nShutdowntheShutdownthePIBaseSSPIBaseSSandandPIBatchSSPIBatchSSsubsystemsbeforethesubsystemsbeforethebackuptoavoiddatabasecorruptio
375、n(wesupplybackuptoavoiddatabasecorruption(wesupplypibackup.batpibackup.battotodothis).dothis).为了避免数据库损坏,在你备份之前停下为了避免数据库损坏,在你备份之前停下PIBaseSSPIBaseSS 和和 PIBatchSSPIBatchSS n nBackupthedailymessagelogfile.Backupthedailymessagelogfile. 备份每天的日志文件备份每天的日志文件n nBackupallthe*.batfilesusedtostart,stop,andmanage
376、PIandBackupallthe*.batfilesusedtostart,stop,andmanagePIandPIinterfaces(includingPIinterfaces(includingpipeschd.batpipeschd.bat). ).备份所有用于开始,停止和管理备份所有用于开始,停止和管理PIPI的的*.*.batbat文件,还有文件,还有PIPI接口文件(包括接口文件(包括 pipeschd.batpipeschd.bat) )n nTrytoschedulethislateatnightbecausethedatawillnotbeTrytoscheduleth
377、islateatnightbecausethedatawillnotbeavailableforafewminutestotheusers.availableforafewminutestotheusers.尽量在夜间制定备份,因为用户在尽量在夜间制定备份,因为用户在那段时间利用的数据很少那段时间利用的数据很少n nUseUsePIBackup.batPIBackup.batcommandfiletoschedulethistaskinthecommandfiletoschedulethistaskinthePIServer.PIServer.在在PIPI服务器上用服务器上用PIBackup.
378、batPIBackup.bat 命令文件调整备份任务表命令文件调整备份任务表n nCreateCreate.pi.piadmpisitebackup.batadmpisitebackup.battomovebackeduptomovebackedupfilestostoragemedia.filestostoragemedia.为了移动备份文件到存储介质,创建为了移动备份文件到存储介质,创建.pi.piadmpisitebackup.batadmpisitebackup.bat All rights reserved, All rights reserved, OSI Software, In
379、cOSI Software, Inc. 200. 2002 2212PI System Backup (Permanent)uuPermanentBackup:PermanentBackup:PermanentlybackupyourmostrecentlyshiftedPermanentlybackupyourmostrecentlyshiftedarchivein2copies.archivein2copies.永久备份:做两个你最近转移数据档案的永久备份永久备份:做两个你最近转移数据档案的永久备份n nWaitaWaitafewfewweeksforedits(suchasLabresu
380、lts)weeksforedits(suchasLabresults) 为编辑等候几周(例如实验结为编辑等候几周(例如实验结果)果)l lCoordinatethiswithCoordinatethiswithEditDaysEditDayssettinginsettinginPITimeoutPITimeouttableandtableandwithPIwithPIRecalculatorRecalculator 在在PITimeoutPITimeout 表中和表中和PIPIRecalculatorRecalculator用用EditDaysEditDays 设置调节设置调节n nKeepo
381、necopyonsiteandoneoffsiteKeeponecopyonsiteandoneoffsite保持一个备份目录和一个备用目录保持一个备份目录和一个备用目录n nBackupthearchiveandPIdatabasefilestogetherBackupthearchiveandPIdatabasefilestogether一起备份数据档案和一起备份数据档案和PIPI数据数据库文件库文件n nShutdowntheShutdownthePIBaseSSPIBaseSSandandPIBatchSSPIBatchSSsubsystemsbeforethesubsystemsbe
382、forethebackuptoavoiddatabasecorruptionbackuptoavoiddatabasecorruption为了避免数据库损坏,在你备份之前停下为了避免数据库损坏,在你备份之前停下PIBaseSSPIBaseSS 和和 PIBatchSSPIBatchSS n nTrytoschedulethislateatnightbecausethedatawontbeTrytoschedulethislateatnightbecausethedatawontbeavailableforafewminutestotheusersavailableforafewminutest
383、otheusers尽量在夜间制定备份,因为用户在那段尽量在夜间制定备份,因为用户在那段时间利用的数据很少时间利用的数据很少All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2213Exercise - Daily Backups练习练习练习练习- -日备份日备份日备份日备份uuEdittheEditthepibackup.batpibackup.batfilefile编辑编辑pibackup.batpibackup.bat 文件文件n nChangetheschedul
384、edtimeto10h45intheinstallsectionChangethescheduledtimeto10h45intheinstallsection在在安装部分改变计划时间为安装部分改变计划时间为1010h45h45uuInstallthePIBackupprocedureonyoursystemwiththeInstallthePIBackupprocedureonyoursystemwiththefollowingcommandfollowingcommand用以下的命令在你的系统上安装用以下的命令在你的系统上安装PIPI备份程序备份程序C:piC:piadmpibackupa
385、dmpibackup c:pi c:pi c:pidat_backc:pidat_back 2 -install 2 -install uuMakesurethattheSchedulerserviceisrunningMakesurethattheSchedulerserviceisrunning 确定日程安排确定日程安排程序服务正在运行程序服务正在运行uuTestyourbackupprocedureTestyourbackupprocedure测试你的备份程序测试你的备份程序n nTypeatthecommandpromptc:ATtoviewtheinstallationTypeatt
386、hecommandpromptc:ATtoviewtheinstallation用命令控制台查看安装用命令控制台查看安装n nVerifythatthec:PIDAT_BACKcontainsthecorrectVerifythatthec:PIDAT_BACKcontainsthecorrectinformationinformation证实证实c:PIDAT_BACKc:PIDAT_BACK目录包含正确的信息目录包含正确的信息All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200.
387、2002 2214How to Restore an Archive如何恢复档案如何恢复档案如何恢复档案如何恢复档案uuTorestoreanarchivethatwasbackeduptoTorestoreanarchivethatwasbackeduptoremoveableremoveablemedia.media.恢复一个被备份到移动介质上的数据档案恢复一个被备份到移动介质上的数据档案n nCopythefilefromthebackupmediatoalocalharddrive.Copythefilefromthebackupmediatoalocalharddrive.从备从备份
388、介质复制文件到本地硬盘份介质复制文件到本地硬盘l lMakesureyoudonotoverwriteanexistingarchivewhenMakesureyoudonotoverwriteanexistingarchivewhenyoucopythefile.youcopythefile.当你复制文件时,确认你没有覆盖存在的数据档案当你复制文件时,确认你没有覆盖存在的数据档案n nRegisterthearchiveinitsnewlocationwithRegisterthearchiveinitsnewlocationwithpiartoolpiartoolarar.piartool
389、piartool - -arar c:pidatRestoredArc.datc:pidatRestoredArc.dat 用用用用“ “piartool-arpiartool-ar” ”在新的位置注册数据档案在新的位置注册数据档案在新的位置注册数据档案在新的位置注册数据档案n nRemember,iftherearenoemptyarchivesthentheoldestRemember,iftherearenoemptyarchivesthentheoldestarchivewillbethetargetofthenextarchiveshift.Ifyouarchivewillbethe
390、targetofthenextarchiveshift.Ifyourestoreanarchive,considermakingitnon-restoreanarchive,considermakingitnon-shiftableshiftablewiththewiththe“ “piartoolpiartool-ads”(archivedisableshift)option.-ads”(archivedisableshift)option.记住,如果没有空的文档,记住,如果没有空的文档,则最老的文档将作为下一次文档转换的目标。如果你恢复一个文档,考虑使它不具有转换则最老的文档将作为下一次文
391、档转换的目标。如果你恢复一个文档,考虑使它不具有转换功能功能piartoolpiartool -ads -ads c:pidatRestoredArc.datc:pidatRestoredArc.datAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2215Reinstalling PI For an upgrade or after a Disk Failure为更新或硬盘损坏后重新安装为更新或硬盘损坏后重新安装为更新或硬盘损坏后重新安装为更新或硬盘损坏后重新安装P
392、IPI1.1.InstalltheOS(OperatingSystem)ontheServer.ForaInstalltheOS(OperatingSystem)ontheServer.Forare-installationofPIonthesameOS,shutdownandre-installationofPIonthesameOS,shutdownanduninstallPI.uninstallPI.在服务器上安装操作系统。为了在相同的操作系统上重新安装在服务器上安装操作系统。为了在相同的操作系统上重新安装PIPI,停止并反停止并反安装安装PIPINote:partsofapreviou
393、sinstallationwillbeintheWindowsregistryNote:partsofapreviousinstallationwillbeintheWindowsregistryandinthewinntsystem32directory.andinthewinntsystem32directory.注意:以前安装的部分信息存在于注册表注意:以前安装的部分信息存在于注册表和和winntsystem32winntsystem32 目录下目录下2.2.InstallPIInstallPI安装安装PIPI3.3.StartandstopPIwithStartandstopPIwit
394、hPIPIadmpisrvstart.batadmpisrvstart.batandandPIPIadmpisrvstop.batadmpisrvstop.battoaccomplishthe“runonce”toaccomplishthe“runonce”functionsneededafteraninstallation.functionsneededafteraninstallation.安装完后,用安装完后,用 PIPIadmpisrvstart.batadmpisrvstart.bat 和和 PIPIadmpisrvstop.batadmpisrvstop.bat 开始和停止开始和停
395、止PIPI,已完成已完成“ “运行一次运行一次” ”的功能检查的功能检查PImustbestoppedbeforetocontinue.PImustbestoppedbeforetocontinue.在继续以前,在继续以前,PIPI必须被停下必须被停下 All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2216Reinstalling PI For an upgrade or after a Disk Failure4. Files restoration文件恢复文件恢
396、复BackupPIExcept pisubsys.cfgdatlogarcPIdatPIlogArchive directory(PIdat by default)Note: Overwrite existing files注意:覆盖存在的文件注意:覆盖存在的文件All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2217Reinstalling PI For an upgrade or after a Disk Failure5.5.Copyandadaptthebat
397、chfilesthathadbeencustomizedtoCopyandadaptthebatchfilesthathadbeencustomizedtostartandstopPI(suchasstartandstopPI(suchaspisrvsitestart.batpisrvsitestart.batetc.).etc.).复制和修改已经复制和修改已经被制定过的开始和停止被制定过的开始和停止PIPI的批处理文件的批处理文件6.6.restoreyouroriginalversionofrestoreyouroriginalversionofpibinpibinpipeschd.bat
398、pipeschd.battotopreservetheperformanceequationscanclasses.preservetheperformanceequationscanclasses.为了保存性能方程为了保存性能方程式的扫描类型,恢复式的扫描类型,恢复pibinpibinpipeschd.batpipeschd.bat的最初版本的最初版本 7.7.Restoretheprimaryarchive:Restoretheprimaryarchive:恢复首文档恢复首文档 pidiag ar Thisutilitypromptsyouforthepathtotheprimaryarc
399、hiveThisutilitypromptsyouforthepathtotheprimaryarchivefile.Usefile.UsepidiagpidiagahdahdorcallOSITechSupporttoknoworcallOSITechSupporttoknowwhicharchivewasprimarywhicharchivewasprimary该工具能指导你指定首文档文件的路径。用该工具能指导你指定首文档文件的路径。用pidiag-ahdpidiag-ahd或者呼叫或者呼叫OSIOSI技术支持已知道哪一个文档为首文档技术支持已知道哪一个文档为首文档8.8.Renameth
400、eRenamethepipidatpiarcmem.datdatpiarcmem.dat toto pipidatpiarcmem.dat.olddatpiarcmem.dat.old. .重命名重命名pipidatpiarcmem.datdatpiarcmem.dat 为为 pipidatpiarcmem.dat.olddatpiarcmem.dat.old. .All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2218Reinstalling PI For an u
401、pgrade or after a Disk Failure9.9.Re-createthesnapshotfilewith:Re-createthesnapshotfilewith:c:pibin c:pibin pibasesspibasess snapfixsnapfix 用用c:pibin c:pibin pibasesspibasess snapfixsnapfix重新创建重新创建snapshotsnapshot文件文件10.10.RestartPIwithRestartPIwithpipiadmpisrvstart.batadmpisrvstart.bat).).用用pipiadm
402、pisrvstart.batadmpisrvstart.bat) )重新启动重新启动PIPI11.11.RegisteralloftheotherrestoredarchiveswithRegisteralloftheotherrestoredarchiveswiththefollowingcommand:thefollowingcommand:用以下的命令注册重新恢复的文档用以下的命令注册重新恢复的文档c:piadmc:piadm piartoolpiartool - -arar path_and_archive_file_namepath_and_archive_file_name12.1
403、2.UseUsepiartoolpiartool-alandtheclienttools(PI-alandtheclienttools(PIProcessBookProcessBookandPIandPIDataLinkDataLink)toverifythatall)toverifythatallthedatahasbeenrecovered.thedatahasbeenrecovered. 用用piartoolpiartoolalal和和PIPI的客户端工的客户端工具证实所有的数据已经被恢复具证实所有的数据已经被恢复All rights reserved, All rights reser
404、ved, OSI Software, IncOSI Software, Inc. 200. 2002 27.0 Troubleshooting问题解答问题解答问题解答问题解答All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2220PI Subsystems (RG, chpt. 2) PIPI子系统子系统子系统子系统Foreign DataSourceClient NodeAPI InterfacenodePINet NodePIonPINetNodePINetwor
405、kManagerPI UDS CoreSubsystemsSnapshotArchiveRedirectorUpdate MgrBaseMessagePI SQLWindows NT/2000 ComputerUtilitiesInterfacesRandom SimulatorRampSoak SimulatorPerformance MonitorSNMPPingServer ApplicationsEquationsBatchAlarmRecalculatorSQCTotalizerBatch GeneratorAll rights reserved, All rights reserv
406、ed, OSI Software, IncOSI Software, Inc. 200. 2002 2221PI System Services (RG (RG chptchpt. 1, p. 6). 1, p. 6)PIPI系统服务系统服务系统服务系统服务uuCoreSubsystemsCoreSubsystems核心子系统核心子系统n nPI Network ManagerPI Network Manager:providestheconnectionamongPI:providestheconnectionamongPIUDSSubsystemsresidingonthePIhomeno
407、deUDSSubsystemsresidingonthePIhomenodePIPI网络管理器:网络管理器:提供驻留在提供驻留在PIPI主机节点上的主机节点上的PIUDSPIUDS子系统间的连接子系统间的连接n nPI Message SubsystemPI Message Subsystem:recordsstatusanderror:recordsstatusanderrormessagesforthePIUDSinalogfilemessagesforthePIUDSinalogfilePIPI信息子系统:为信息子系统:为PIUDSPIUDS在一在一个日志文件中记录状态和出错信息个日志文
408、件中记录状态和出错信息n nPI Update SubsystemPI Update Subsystem:sendsnotificationsofchangesin:sendsnotificationsofchangesinvaluesorpointattributestoanyinterfaceorclientvaluesorpointattributestoanyinterfaceorclientapplicationthathas“signedup.”applicationthathas“signedup.”PIPI更新子系统:发送值或者点属性的更新子系统:发送值或者点属性的改变报告到一
409、些接口或客户端应用程序改变报告到一些接口或客户端应用程序n nPI Base SubsystemPI Base Subsystem:maintainsthePoint,DigitalStates,:maintainsthePoint,DigitalStates,User,GroupdatabasesandalsohoststhePIModuleUser,GroupdatabasesandalsohoststhePIModuleDatabaseDatabasePIPI基本子系统:维护点,开关量状态,用户,组数据库和基本子系统:维护点,开关量状态,用户,组数据库和PIPI模块数据库模块数据库n n
410、PI Snapshot SubsystemPI Snapshot Subsystem:storesthemostrecentvalue:storesthemostrecentvalueforeachpointandmakesitavailabletousersandforeachpointandmakesitavailabletousersandapplicationsasneededapplicationsasneededPIPI闪寸快照子系统:存储每个点多数最新的值,闪寸快照子系统:存储每个点多数最新的值,能使它作为用户和应用程序的需要能使它作为用户和应用程序的需要All rights r
411、eserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2222PI System Services (RG (RG chptchpt. 1, p. 6). 1, p. 6)uuCoreSubsystems(cont.)CoreSubsystems(cont.)核心子系统(继续)核心子系统(继续)n nPI Archive SubsystemPI Archive Subsystem:storesmultiple:storesmultipletimestampedtimestamped measure
412、mentsofeachdatapointarestoredmeasurementsofeachdatapointarestoredPIPI归档子系统:存归档子系统:存储每个数据点测量的多数时间标签值储每个数据点测量的多数时间标签值n nPI Shutdown SubsystemPI Shutdown Subsystem:writesthevalueShutdownto:writesthevalueShutdowntoalltagsconfiguredwiththeshutdownattribute=1whenalltagsconfiguredwiththeshutdownattribute=1
413、whenthePiServershutsdownthePiServershutsdownPIShutdownPIShutdown子系统:当子系统:当PIPI停下时,将写数值停下时,将写数值shutdownshutdown到到shutdownshutdown属性被配置为属性被配置为1 1的所有标签的所有标签n nPI SQL SubsystemPI SQL Subsystem:softwaremodulethatprocesses:softwaremodulethatprocessesSQLstatements,includingthosesubmittedbythePIODBCSQLstate
414、ments,includingthosesubmittedbythePIODBCDriverDriverPISQLPISQL子系统:处理子系统:处理SQLSQL语句的软件模块,包括那些被语句的软件模块,包括那些被PIODBCPIODBC驱动提交驱动提交的的n nPI RedirectorPI Redirector:usedbytheBase,Archive,andSnapshot:usedbytheBase,Archive,andSnapshotSubsystemstoobtaindatafromexternalsystemsSubsystemstoobtaindatafromexternal
415、systems 被基本,归被基本,归档和闪存快照子系统用做从外部系统获得数据档和闪存快照子系统用做从外部系统获得数据All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2223PI System ServicesuuPIServerApplicationsPIServerApplicationsPIPI服务应用程序服务应用程序n nPIPerformanceEquationsSchedulerPIPerformanceEquationsSchedulerPIPI性性能方程
416、式调度能方程式调度n nPIPITotalizerTotalizer PIPI累加累加n nPIBatchSubsystemPIBatchSubsystemPIPI批处理子系统批处理子系统n nPIAlarmSubsystemPIAlarmSubsystemPIPI报警子系统报警子系统n nPIRT-SQCPIRT-SQCSee “PI Server Applications User Guide”看看“PI服务应用程序用户手册服务应用程序用户手册”All rights reserved, All rights reserved, OSI Software, IncOSI Software,
417、Inc. 200. 2002 2224PI System ServicesuuPIInterfaces(installedwithPIPIInterfaces(installedwithPIServer)Server)PIPI接口(与接口(与PIPI服务器安装)服务器安装)n nPIRampSoakSimulatorPIRampSoakSimulatorn nPIRandomSimulatorPIRandomSimulatorn nPIPIRecalculatorRecalculatorSubsystemSubsystemn nPIPerformanceMonitorPIPerformance
418、Monitor* *n nPIPingDataMeasurementProgramPIPingDataMeasurementProgram* *n nPISNMPInterfacePISNMPInterface* *n nPIBatchGeneratorPIBatchGenerator Version is a limited version. 32 pointsVersion is a limited version. 32 points 版本是限制版本版本是限制版本 32 32点点All rights reserved, All rights reserved, OSI Software,
419、 IncOSI Software, Inc. 200. 2002 2PI Server ApplicationsPIPI服务应用服务应用服务应用服务应用All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2226PI Performance Equations Subsystem (SA, chpt. 2)PIPI性能方程式子系统性能方程式子系统性能方程式子系统性能方程式子系统uuDoesrealtimecalculations(triggeredbyeventDoesr
420、ealtimecalculations(triggeredbyeventorscheduledbased)orscheduledbased)作为实时时间计算(被事件或调度触发)作为实时时间计算(被事件或调度触发)uuCanusemanydifferenttagsintheequationsCanusemanydifferenttagsintheequations在在方程式中能用一些不同的标签方程式中能用一些不同的标签uuUsesaPItagtostoretheresultssothatUsesaPItagtostoretheresultssothateveryoneseesthesamenum
421、berseveryoneseesthesamenumbers用一个标签存储相同的用一个标签存储相同的结果以至于每个人都可以看见相同的数据结果以至于每个人都可以看见相同的数据uuContainsarichlibraryoffunctionsContainsarichlibraryoffunctions包含一个丰富的函数库包含一个丰富的函数库uuAccesstosteamtablesforenergybalancesAccesstosteamtablesforenergybalances为能量为能量平衡访问平衡访问steamsteam表表All rights reserved, All right
422、s reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2227PI Totalizer Subsystem (SA, chpt. 6)PI累加子系统累加子系统uuThePIThePItotalizertotalizersubsystemcalculatesthefollowingsubsystemcalculatesthefollowingtypesofsummarydataforonetag:typesofsummarydataforonetag:total,average,total,average,minimum,maximu
423、m,range,standarddeviationandminimum,maximum,range,standarddeviationandmedian.Also,itcancalculateoperatingtimeandcountmedian.Also,itcancalculateoperatingtimeandcountevents.events.PIPI累加子系统为一个标签计算以下的汇总数据类型:累加子系统为一个标签计算以下的汇总数据类型: total,average,total,average,minimum,maximum,range,standarddeviationandmed
424、ian.minimum,maximum,range,standarddeviationandmedian.它也能计算操作时间和它也能计算操作时间和事件记数事件记数uuUsesaPItagtostoretheresultssothatUsesaPItagtostoretheresultssothateveryoneseesthesamenumberseveryoneseesthesamenumbers用一个标签存储相同的结果以用一个标签存储相同的结果以至于每个人都可以看见相同的数据至于每个人都可以看见相同的数据uuThePIThePItotalizertotalizersubsystemobta
425、insitsdatafromthePIsubsystemobtainsitsdatafromthePISnapshottableratherthanthearchiveliketheSnapshottableratherthanthearchiveliketheperformanceequationssubsystem.Thisresultsinmoreperformanceequationssubsystem.Thisresultsinmoreprecisecalculations.precisecalculations.该该PIPI累加子系统从累加子系统从PIPI闪存子系统中得到数据,而不
426、象闪存子系统中得到数据,而不象性能方程式子系统从数据档案中得到数据。这样可以得到更精确的计算结果性能方程式子系统从数据档案中得到数据。这样可以得到更精确的计算结果All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2228PI Totalizer vs PI Performance EquationsPIPI累加与累加与累加与累加与PIPI性能方程式相比性能方程式相比性能方程式相比性能方程式相比uuCalculationsshouldbedoneinCalculation
427、sshouldbedoneinTotalizerTotalizerinsteadinsteadofPerformanceEquationswhenpossible.ofPerformanceEquationswhenpossible.可能的话,应当用可能的话,应当用PIPI累加做计算而代替用性能方程式做计算累加做计算而代替用性能方程式做计算All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2229PI SQL Subsystem (RG, chpt. 4)PI SQLP
428、I SQL子系统子系统子系统子系统uuLetsthePIsystembeseenasanODBCorLetsthePIsystembeseenasanODBCorOLEDBdatasource.OLEDBdatasource.让让PIPI系统作为一个系统作为一个ODBCODBC或或OLEDBOLEDB数据源被看到数据源被看到uuRequiresPIODBCclientoraPIOLEDBclientRequiresPIODBCclientoraPIOLEDBclient 要求要求PIPIODBCODBC客户端或客户端或PIOLEDBPIOLEDB客户端客户端uuReadaccessisperm
429、ittedforalltables.Readaccessispermittedforalltables.InsertispermittedforPIARCHIVEtables.InsertispermittedforPIARCHIVEtables.Creation,modificationanddeletionispermittedCreation,modificationanddeletionispermittedforforPIUserPIUser, ,PIGroupPIGroup,PIDSand,PIDSandPipointPipointtablesiftablesifyouareusi
430、ngaPIOLEDBclient.youareusingaPIOLEDBclient.所有的表读访问被允许。为所有的表读访问被允许。为PIPI数据档案表登入被允许。如果你用一个数据档案表登入被允许。如果你用一个PIOLEDBPIOLEDB客户端创建,为客户端创建,为PIPI用户,用户,PIPI组,组,PIDSPIDS和和PIPI点表的创建,修改和删除被允许点表的创建,修改和删除被允许SQLExample:SELECTtag,value,timeFROMSQLExample:SELECTtag,value,timeFROMpicomppicompWHEREtag=WHEREtag=flow.pv
431、flow.pv; ;All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2230PI Batch Subsystem (SA chpt. 5)PIPI批处理子系统批处理子系统批处理子系统批处理子系统uuKeepsahistoryofBatch(Eventbased)activityKeepsahistoryofBatch(Eventbased)activity保持一保持一个批量历史的活跃性个批量历史的活跃性n nStartandendtimeStartandendtime
432、开始和结束时间开始和结束时间n nLocationLocation位置位置n nUniqueIDUniqueID 唯一唯一IDIDn nOperationIDOperationID 操作操作IDIDuuToviewbatchinformationToviewbatchinformationPIPIBatchViewBatchViewisrequiredisrequired(ExcelAdd-InandPI(ExcelAdd-InandPIProcessBookProcessBookAdd-In)Add-In)为了浏览批量为了浏览批量信息,信息, PIPIBatchViewBatchView 被
433、要求被要求uuPIBatchPIBatchandandPIPIBatchViewBatchViewarenotlimitedtopurearenotlimitedtopurebatchprocessesPIBatchcanstoreanyprocessbatchprocessesPIBatchcanstoreanyprocessevent(startup,shutdown,processerror/recovery).event(startup,shutdown,processerror/recovery).PIBatchPIBatchandandPIPIBatchViewBatchView
434、对纯批处理没有限制,对纯批处理没有限制,PIBatchPIBatch能存储一些过程事件能存储一些过程事件All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2231Show Data per Batch显示每个批处理的数据显示每个批处理的数据显示每个批处理的数据显示每个批处理的数据uuPIBatchusesatriggertagtofindPIBatchusesatriggertagtofind startstart andandendtimesendtimes. .PI
435、BatchPIBatch用一个触发标签查找开始和结束时间用一个触发标签查找开始和结束时间Start EndStartEndAlso:UniqueID“B1-10-OCT-02”OperationID“MakeProdA”Location“Reactor1”All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2232Process Data过程数据过程数据过程数据过程数据uuPIPIProcessBookProcessBooktrendnotthebesttocompare
436、trendnotthebesttocompareproductruns.productruns.PIPBPIPB趋势图趋势图- -没有更好的同类产品与之比较没有更好的同类产品与之比较An overlay would be betterAn overlay would be better重叠被更好的显示重叠被更好的显示All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2233Show Data per BatchuuBatchViewBatchViewTrendallow
437、syoutooverlayprocessTrendallowsyoutooverlayprocessvaluetrendsfromdifferentbatches,indifferentvaluetrendsfromdifferentbatches,indifferentlocations,knowingonlyalocations,knowingonlyatag aliastag alias. .BatchViewBatchView允许你允许你重叠过程值趋势,从不同的批量,在不同的位置,仅仅知道标签的别名重叠过程值趋势,从不同的批量,在不同的位置,仅仅知道标签的别名Alias: “Temp”
438、All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2234Tag Alias Table标签别名表标签别名表标签别名表标签别名表uuCreatingaliasesforunitlocationsallowsCreatingaliasesforunitlocationsallowsreportingandtrendingflexibility.reportingandtrendingflexibility.为单元位置创造别名允为单元位置创造别名允许更灵活的报告和趋势许更灵
439、活的报告和趋势Alias + Location = Tag Name “Temp” + “ReactorA” = RA:C235.t“Temp” + “ReactorB” = ReactB.Temp101“pH” + “ReactorA” = RA:C235.ph“pH” + “ReactorB” = ReactB.pH101All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2235PI Alarm Subsystem (SA, chpt. 7)PIPI报警子系统报警子
440、系统报警子系统报警子系统uuGeneratesandManagesAlarmsGeneratesandManagesAlarms引发和对付报警引发和对付报警uuDesignedtosupplement,notreplace,thealarmDesignedtosupplement,notreplace,thealarmcapabilitiesavailablefromplantcontrolsystems.capabilitiesavailablefromplantcontrolsystems.作为补充,报警作为补充,报警是来自工厂控制系统的通用性能是来自工厂控制系统的通用性能n nTrigg
441、eroffofmultipledatasourcesTriggeroffofmultipledatasources关联数据源的触发关闭关联数据源的触发关闭uuTypesofalarmsTypesofalarms报警类型报警类型n nAboveorbelowalarmlimitsAboveorbelowalarmlimits上,下限报警上,下限报警n nEqualordifferenttoacertaindigitalstateEqualordifferenttoacertaindigitalstate等于或不同于某种特定的开关量状等于或不同于某种特定的开关量状态态n nRateofchange
442、Rateofchange改变速率改变速率uuKeepshistoricalalarminformationinPItags(alarmKeepshistoricalalarminformationinPItags(alarmconditionandalarmstatistics)conditionandalarmstatistics)在在PIPI标签中保持历史报警信息(报警条件和报警标签中保持历史报警信息(报警条件和报警统计)统计)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200.
443、 2002 2236Alarm Acknowledgement报警回应报警回应报警回应报警回应uuAcknowledgementofalarmsisdonethroughAcknowledgementofalarmsisdonethroughPIAlarmView.PIAlarmView.报警回应通过报警回应通过PIAlarmViewPIAlarmView在实现在实现uuAlarmscanalsobeprogrammaticallyAlarmscanalsobeprogrammaticallyacknowledged.acknowledged. 报警也能通过自动编写的程序回应报警也能通过自动编
444、写的程序回应All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2237Tag Modifications Real Time标签调整标签调整标签调整标签调整- -实时实时实时实时1.1.Thetagsaremodified,created,deletedwithaPISystemManagerThetagsaremodified,created,deletedwithaPISystemManagerTools(PITools(PIConfigConfig,PITag,P
445、ITagConfiguratorConfigurator,PIPointBuilder).,PIPointBuilder).用用PIPI系统管理工具系统管理工具对标签进行修改,创建,删除对标签进行修改,创建,删除2.2.ThechangesarestoredonthePIserverpointdatabaseThechangesarestoredonthePIserverpointdatabase改变不存储在改变不存储在PIPI数据库的点数据库中数据库的点数据库中3.3.ThePIUpdateManagersubsystemthenqueuesthecreated,ThePIUpdateMan
446、agersubsystemthenqueuesthecreated,modifiedordeletedtagsfortheinterface.modifiedordeletedtagsfortheinterface.PIPI更新管理子系统为接口排列创建,更新管理子系统为接口排列创建,修改或删除的标签修改或删除的标签4.4.Every2minutes,theinterfacescheckforpointupdates.Every2minutes,theinterfacescheckforpointupdates.每每2 2分钟,接口分钟,接口检查点的更新检查点的更新 5.5.Iftagswher
447、eadded,modifiedordeleted,theinterfacewillreloadIftagswhereadded,modifiedordeleted,theinterfacewillreloadthetag.Theinterfaceswillreloadtagsataratesof25per30thetag.Theinterfaceswillreloadtagsataratesof25per30seconds.seconds.如果标签被添加,修改或删除,接口将重新载入标签。接口以每如果标签被添加,修改或删除,接口将重新载入标签。接口以每3030秒秒2525个个的速度载入标签的速度
448、载入标签All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2238Tag Config Troubleshooting标签配置标签配置标签配置标签配置- -问题解答问题解答问题解答问题解答uuIfatagssnapshotvalueisstillshowingthestatusIfatagssnapshotvalueisstillshowingthestatusPt CreatedPt CreatedororShutdownShutdownafewminutesafte
449、rithasbeenafewminutesafterithasbeencreated,thepointconfigurationshouldbechecked.created,thepointconfigurationshouldbechecked.如果一个标如果一个标签被创建一段时间以后,闪存快照值显示的状态仍是签被创建一段时间以后,闪存快照值显示的状态仍是PtCreatedPtCreated或者是或者是ShutdownShutdown,则该点则该点的配置应当被检查。的配置应当被检查。uuThefirststepistolookintheThefirststepistolookinthepi
450、pc.logpipc.logfile(file(pimesslogfilepimesslogfileononUnix)toseeiftheinterfacepickedupthetagmodification.Unix)toseeiftheinterfacepickedupthetagmodification.首先,应当看首先,应当看pipc.logpipc.log日志文件,看接口是否接受了标签的调整。日志文件,看接口是否接受了标签的调整。n nIfYES,thelogshouldindicateifthetagwasloadedbytheIfYES,thelogshouldindicatei
451、fthetagwasloadedbytheinterfaceswithorwithouterror.interfaceswithorwithouterror.如果是,则日志文件应该指明标签是否被接如果是,则日志文件应该指明标签是否被接口载入或者有何错误。口载入或者有何错误。n nIfNO,lookattheIfNO,lookatthePointSourcePointSourceandandlocation1location1tagattributes,totagattributes,toverifyiftheyaresetaccordingtotheparameterintheinterfac
452、everifyiftheyaresetaccordingtotheparameterintheinterfacestartupfile.startupfile.如果否,看看点源和如果否,看看点源和location1location1标签属性,核实它们是否是根据接口启标签属性,核实它们是否是根据接口启动文件的参数设置的。动文件的参数设置的。All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2239Flat Line in PI ProcessBook在在在在PI PBPI
453、 PB中显示水平线中显示水平线中显示水平线中显示水平线uuIndicatesthateither:Indicatesthateither:指示其中之一指示其中之一n nTheInterfacestoppedabnormallyTheInterfacestoppedabnormally接口异常停止接口异常停止n nTheinterfacewasstoppedwithoutthe/Theinterfacewasstoppedwithoutthe/stopstatstopstatswitchswitch接口在没有接口在没有/ /stopstatstopstat参数的情况下被停止参数的情况下被停止n
454、nThenetworkcommunicationbetweenPIServerandThenetworkcommunicationbetweenPIServerandinterfacehasproblemsinterfacehasproblemsPIPI服务器和接口之间的网络通讯有问题服务器和接口之间的网络通讯有问题uuLookat:Lookat:看看看看n nI/ORatesTagI/ORatesTagI/OI/O速率标签速率标签n nPIPingTagPIPingTagPIPingPIPing标签标签Recommendation:UsethePIInterfacestatusutility
455、Recommendation:UsethePIInterfacestatusutility推荐:用推荐:用PIPI接口状态工具接口状态工具All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2240PIPC Log Server ServicePIPCPIPC日志服务器服务日志服务器服务日志服务器服务日志服务器服务uuThePIPCLogServerisaWindowsserviceThePIPCLogServerisaWindowsservice该该PIPCPIPC日志
456、服务日志服务器是一个器是一个WindowsWindows服务服务uuItcontrols:Itcontrols:它控制:它控制:n nthesizethatthePIPC.logwillbecomepriortoarchivingthesizethatthePIPC.logwillbecomepriortoarchiving(thefilewillberenamed(thefilewillberenamedpipc#.logpipc#.log) )PIPC.logPIPC.log文件变为存档文文件变为存档文件之前的大小件之前的大小n nthenumberofoldPIPC.LOGfilesth
457、atareretainedthenumberofoldPIPC.LOGfilesthatareretained被留存的被留存的老的老的PIPC.logPIPC.log文件的编号文件的编号uuThePIPCLogServerisconfiguredthroughtheThePIPCLogServerisconfiguredthroughthe“WINDIRPIPC.INI”file,orviaPIICU.“WINDIRPIPC.INI”file,orviaPIICU.该该PIPCPIPC日志服务器通过日志服务器通过WINDIRPIPC.INIWINDIRPIPC.INI文件,或文件,或PIICU
458、PIICU工具进行配置工具进行配置n nPIPCPIPCn nMAXPIPCLOGS=10MAXPIPCLOGS=10(maxnumberof(maxnumberofpipc.logpipc.logfilesretained)filesretained)n nMAXLOGSIZE=256MAXLOGSIZE=256(maxlogsizeinKB)(maxlogsizeinKB)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2241PI System Utilitie
459、sPIPI系统工具系统工具系统工具系统工具uuPIConfig.exePIConfig.exePIdatabaseutility(PIdatabaseutility(pipointpipoint, ,pidspids, ,piuserpiuser) )PIPI数据库工具数据库工具uuPIVersion.exePIVersion.exeShowscurrentPIversion.ShowscurrentPIversion.显示当前显示当前PIPI的版本的版本uuPISetPass.exePISetPass.exeChangesapasswordforauser.Changesapasswordf
460、orauser.为一个用户改变密码为一个用户改变密码uuPIArtool.exePIArtool.exeArchivesmanagementtool(backup,stats)Archivesmanagementtool(backup,stats)数据档案管数据档案管理工具理工具uuPIGetmsg.exePIGetmsg.exeDisplaysPISystemmessages.DisplaysPISystemmessages.显示显示PIPI系统信息系统信息uuPIDiag.exePIDiag.exeOSItechnicalsupportutilityOSItechnicalsupportu
461、tilityOSIOSI技术支持工具技术支持工具uuPIListupd.exePIListupd.exeDisplaysapplicationssignedupforupdates.Displaysapplicationssignedupforupdates.为更新为更新显示应用程序显示应用程序uuPISnap.batPISnap.batDisplayscurrentvalueandstatusofatag.Displayscurrentvalueandstatusofatag.显示一个显示一个标签的当前值和状态标签的当前值和状态uuPIArcCreate.exePIArcCreate.exe
462、CreatesanarchivethesamesizeastheCreatesanarchivethesamesizeastheprimaryarchive.primaryarchive.创建一个与首文档相同的数据档案创建一个与首文档相同的数据档案Note:TheNote:Theunderlinedunderlinedutilitiescanbeusedutilitiescanbeusedremotely.(PISMTmustbeinstalled)remotely.(PISMTmustbeinstalled)注意:画下化线的工具能被用于远程。(注意:画下化线的工具能被用于远程。(PISMTP
463、ISMT必须被安装)必须被安装)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2242Listing Connected PI Consumers列出连接的列出连接的列出连接的列出连接的PIPI用户用户用户用户uuConsumerscanrequirepointordataupdateinformationConsumerscanrequirepointordataupdateinformation(PIClienttoolsandinterfaces).(PICl
464、ienttoolsandinterfaces).用户能要求点或数据的更新信息(用户能要求点或数据的更新信息(PIPI客户端客户端工具和接口)工具和接口)uuListconsumerswiththeListconsumerswiththepilistupdpilistupd utilityutility用用pilistupdpilistupd 工具列出用户工具列出用户n nQualQualisthetagsuniqueIDnumberisthetagsuniqueIDnumber QualQual是标签的唯一是标签的唯一IDID号号n nPendingPendingisthenumberofpo
465、intupdatesqueuedtobeisthenumberofpointupdatesqueuedtobesenttotheconsumersenttotheconsumerPendingPending是将要发送到用户的点的更新的队列号是将要发送到用户的点的更新的队列号uuThisutilityhelpsthesystemmanagertofindoutiftheThisutilityhelpsthesystemmanagertofindoutiftheproducerproducerisproducingandiftheisproducingandiftheconsumerconsume
466、risconsuming.isconsuming.该工具帮助系统试着查找生产者是否正在生产和用户是否正在使用。该工具帮助系统试着查找生产者是否正在生产和用户是否正在使用。All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2Exercise 19练习练习练习练习1919IdentifyingApplicationsConnectedtothePIServer识别连接识别连接PIPI服务器的应用程序服务器的应用程序All rights reserved, All right
467、s reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2244Viewing the PI Snapshot查看查看查看查看PIPI闪存快照值闪存快照值闪存快照值闪存快照值uuTheThepisnappisnaputilitydisplaysthesnapshot,statusutilitydisplaysthesnapshot,statusandthelastarchivedvalueforatag.andthelastarchivedvalueforatag.PisnapPisnap工具显示标签的闪存快照,状态和最后的归档值工具
468、显示标签的闪存快照,状态和最后的归档值uuTroubleshootingTroubleshooting问题解答问题解答n nIftheIfthesnapshotsnapshotisnotavailabletheisnotavailablethePISnapshotPISnapshot subsystemisnotworkingcorrectly.subsystemisnotworkingcorrectly.如果闪存值是无效的,则说如果闪存值是无效的,则说明明PisnapshotPisnapshot子系统没有正确工作子系统没有正确工作n nIftheIfthearchivedvaluearchi
469、vedvalueisnotavailabletheisnotavailablethePIArchivePIArchive subsystemisnotworkingcorrectly.subsystemisnotworkingcorrectly.如果归档值是无效的,则说如果归档值是无效的,则说明明PIArchivePIArchive子系统没有正确工作子系统没有正确工作All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2245PIDIAG - OSI Support Ut
470、ility PIDIAG-OSIPIDIAG-OSI支持工具支持工具支持工具支持工具uu- -e-#e-# DisplayserrorcodesandDisplayserrorcodesandmessagesmessages显示错误代码和信息显示错误代码和信息uu-t*-2h-t*-2h ParsesPItimestamptoPItimeParsesPItimestamptoPItime分析分析PIPI时间标签时间标签到到PIPI时间时间uu-t0998173839-t0998173839ParsesPItimetoatimestampParsesPItimetoatimestamp分析分析P
471、IPI时间到一个时间到一个PIPI时间标签时间标签uu- -udfudf ResetsPIADMINpasswordtoResetsPIADMINpasswordtoblankblank重置重置PIADMINPIADMIN密码到空白密码到空白All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2246PIGETMSG PI Message SubSystem UtilityPIGETMSG-PIPIGETMSG-PI信息子系统工具信息子系统工具信息子系统工具信息子系统工具
472、uu- -f fSeemessagesinwindowinrealtimeSeemessagesinwindowinrealtime看实时信息看实时信息uu-id-idSpecificID(integer)foragivenmessageSpecificID(integer)foragivenmessage指定一个给定信息的专用指定一个给定信息的专用号号uu- -pnpn SpecificprogramnameSpecificprogramname专用程序名称专用程序名称uu- -stst StartingtimeinPIformatStartingtimeinPIformatPIPI格式的起
473、始时间格式的起始时间uu-et-et EndingtimeinPIformatEndingtimeinPIformatPIPI格式的终止时间格式的终止时间uu-mc-mc TotalnumberofmessagestoberetrievedTotalnumberofmessagestoberetrieved被恢复的信息总数目被恢复的信息总数目uu- -msgmsg StringmaskselectionformessagetextStringmaskselectionformessagetext为信息正文挑选字符串编码为信息正文挑选字符串编码uu-dc-dcNumberofmessagetob
474、edisplayedatonetimeNumberofmessagetobedisplayedatonetime被同时显示的信被同时显示的信息总数目息总数目pigetmsgpigetmsg- -pnpn pitotalpitotal-et“*”-mc10-et“*”-mc10-msgmsg“*error*”“*error*”myfile.txtmyfile.txtCreatedafilecalledCreatedafilecalledmyfile.txtmyfile.txtthatcontainsthelastthatcontainsthelast10errormessagesrelatedt
475、othePI10errormessagesrelatedtothePITotalizerTotalizermodule.module.创建一个创建一个被称为被称为 myfile.txtmyfile.txt的文件,它包含涉及的文件,它包含涉及PIPI累加模块的最后累加模块的最后1010个出错信息个出错信息All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2247PI System Managers Tasks (Daily)PIPI系统任务管理器系统任务管理器系统任务管理
476、器系统任务管理器(日常)(日常)(日常)(日常)uuDailyTasks:DailyTasks:日常任务:日常任务:n nUsetaskmanagertoinspecttheCPUandmemoryuseofeachPIUsetaskmanagertoinspecttheCPUandmemoryuseofeachPIsubsystemsubsystem用任务管理器检查每个用任务管理器检查每个PIPI子系统子系统CPUCPU和内存的使用和内存的使用n nSchedulePIdailybackup(archivesandPIdatabases)SchedulePIdailybackup(archi
477、vesandPIdatabases)调度调度PIPI日常备份(数日常备份(数据档案和据档案和PIPI数据库)数据库)l lW2KScheduledTasksappletcanbeusedforthisW2KScheduledTasksappletcanbeusedforthis用用W2KW2K的计划任的计划任务应用程序务应用程序n nVerifythePISystemEventQueue(use:VerifythePISystemEventQueue(use:piartoolpiartool- -ssss) )核对核对PIPI系统事件队列系统事件队列n nVerifythePISystemVe
478、rifythePISystemDataFlowDataFlow(use:(use:piartoolpiartool-as)-as)核对核对PIPI系统数据流量系统数据流量n nCheckPISystemlogfilesCheckPISystemlogfiles检查检查PIPI系统日志文件系统日志文件n nCheckPISystemInterfaceslogfilesCheckPISystemInterfaceslogfiles检查检查PIPI系统接口日志文件系统接口日志文件n nUseUseTag SearchTag Searchtofindtofindbad databad datasnap
479、shotvaluessuchas“Badsnapshotvaluessuchas“BadInput”,“I/OTimeout”,“PtCreated”,“OverRange”,“UnderRange”Input”,“I/OTimeout”,“PtCreated”,“OverRange”,“UnderRange”etcetc用标签搜索查找坏数据的闪存值例如用标签搜索查找坏数据的闪存值例如“BadInput”,“I/OTimeout”,“PtCreated”,“OverRange”,“BadInput”,“I/OTimeout”,“PtCreated”,“OverRange”,“UnderRang
480、e”“UnderRange” 等等。等等。All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2248System Managers Tasks (Weekly) PIPI系统任务管理器系统任务管理器系统任务管理器系统任务管理器(每周)(每周)(每周)(每周)uuWeeklyandMonthlyTasks:WeeklyandMonthlyTasks:每周和每月任务:每周和每月任务:n nPredictnextarchiveshift(use:Predictnextarch
481、iveshift(use:piartoolpiartool-alor-as)-alor-as)预测下一个数据档案转移预测下一个数据档案转移n nDopermanentbackupwhenneeded(shouldbeDopermanentbackupwhenneeded(shouldbeevery3to5weeks)every3to5weeks)当需要是做永久备份(应当每当需要是做永久备份(应当每3 3到到5 5周)周)n nVerifyOSIWebsiteVerifyOSIWforforengineeringplanandsoftwarepatchesengineeringplanandso
482、ftwarepatches为工程计划和软件为工程计划和软件补丁核对补丁核对OSIOSI网站网站n nCreatenewarchivesifrequiredCreatenewarchivesifrequired如果需要创建新的数据档案如果需要创建新的数据档案All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2249PI System Managers Tasks (Annually) PIPI系统任务管理器系统任务管理器系统任务管理器系统任务管理器(每年)(每年)(每年)
483、(每年)uuAnnualTasks:AnnualTasks:每年任务:每年任务:n nCompletelytestPISystembackupsbyrestoringCompletelytestPISystembackupsbyrestoringPIbackuponafreshWindowsinstallationPIbackuponafreshWindowsinstallation通过在一个新通过在一个新的的WINWIN系统下复原系统下复原PIPI备份,完全测试备份,完全测试PIPI系统的备份系统的备份n nUpgradeoperatingsystemversiontothelatestUp
484、gradeoperatingsystemversiontothelatestapprovedandsupportedversionfromOSIapprovedandsupportedversionfromOSI从从OSIOSI更新最更新最近的经证实和支持的操作系统版本近的经证实和支持的操作系统版本n nUpgradePIUniversalDataServertothelatestUpgradePIUniversalDataServertothelatestversionfromOSIversionfromOSI从从OSIOSI更新最近的更新最近的PIPI服务器软件版本服务器软件版本n nUp
485、gradePIclientstothelatestversionsUpgradePIclientstothelatestversions更新最近的更新最近的PIPI客客户端版本户端版本n nAttendPIusersconferenceinSanFranciscoAttendPIusersconferenceinSanFrancisco(endofMarchofeachyear)(endofMarchofeachyear)参加在旧金山的参加在旧金山的PIPI用户大会(每年的用户大会(每年的3 3月底)月底)All rights reserved, All rights reserved, OS
486、I Software, IncOSI Software, Inc. 200. 2002 2250PI System TroubleshootingPIPI系统问题解答系统问题解答系统问题解答系统问题解答uuUsethetroubleshootingcheck-listUsethetroubleshootingcheck-list( (SMG,SMG,ChptChpt.4).4)用问题解答核对列表用问题解答核对列表n nDetermineiftheproblemisaPIServerorPIclientDetermineiftheproblemisaPIServerorPIclientprobl
487、em?problem?确定是否是确定是否是PIPI服务器或服务器或PIPI客户端的问题客户端的问题uuUseTaskManagertofindexcessmemory,CPUUseTaskManagertofindexcessmemory,CPUusage.usage.用任务管理器查找过多的占用内存,用任务管理器查找过多的占用内存,CPUCPU的进程的进程uuLookatPerformanceMonitorandIOrateinterfaceLookatPerformanceMonitorandIOrateinterfaceTagsTags查看性能监视器和查看性能监视器和IOIO速率接口标签速
488、率接口标签uuOSIsoftOSIsoftTechnicalsupportTechnicalsupportOSIOSI软件技术支持软件技术支持Phone:510-297-5828Email:Web:http:/All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2251PI System Manager Tools (PI SMT)PIPI系统管理工具(系统管理工具(系统管理工具(系统管理工具(PI SMTPI SMT)uuPIPIHealthCheckHealthChe
489、ck: :GraphicalwayorverifyingtheGraphicalwayorverifyingthehealthofyourPISystemhealthofyourPISystem图式方法或诊断你的图式方法或诊断你的PIPI系统状态系统状态uuPITagPITagConfiguratorConfigurator: :MicrosoftExcelAdd-InthatMicrosoftExcelAdd-Inthatletyoulist,edit,deleteandcreatetagsletyoulist,edit,deleteandcreatetagsEXCELEXCEL表格嵌入方式
490、,表格嵌入方式,使你可以列出,编辑,删除和创建标签使你可以列出,编辑,删除和创建标签uuPIPointBuilder:PIPointBuilder:InteractivesingletaganddigitalInteractivesingletaganddigitalstateseteditorstateseteditor交互式单个标签和数字量状态设置编辑器交互式单个标签和数字量状态设置编辑器uuPIInterfaceconfigurationutilityPIInterfaceconfigurationutilityPIPI接口配置工具接口配置工具uuPIInterfaceStatusuti
491、lityPIInterfaceStatusutilityPIPI接口状态工具接口状态工具uuPIModuleDatabaseEditorPIModuleDatabaseEditorPIPI模块数据库编辑器模块数据库编辑器All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2252PI Health CheckPIPI系统诊断系统诊断系统诊断系统诊断uuThePIThePIHealthCheckHealthCheckapplicationgivestheuserapoint
492、andclickapplicationgivestheuserapointandclickoverviewofoneormorePISystemsfromasingleapplication.overviewofoneormorePISystemsfromasingleapplication.PIPI系统诊断系统诊断应用程序通过一个简单的应用,使用户能了解一个或多个应用程序通过一个简单的应用,使用户能了解一个或多个PIPI系统的状态概述系统的状态概述All rights reserved, All rights reserved, OSI Software, IncOSI Software,
493、Inc. 200. 2002 2253PI Timeout Table(SMG, (SMG, ChptChpt 4, Tuning the PI Server) 4, Tuning the PI Server)PIPI超时表超时表超时表超时表uuTheThePIGEN,PITimeoutPIGEN,PITimeouttablecontainsaseriesoftablecontainsaseriesofparameterstoconfigurethePISystemparameterstoconfigurethePISystembehavior.behavior.该该PIGEN,PITimeo
494、utPIGEN,PITimeout 表包含一系列配置表包含一系列配置PIPI系统性能的的参数系统性能的的参数n nname:name:nameofconfigurationparameternameofconfigurationparameter配置参数的名称配置参数的名称n nvalue:value:valueoftheparametervalueoftheparameter参数的值参数的值uuItisrecommendedtocontacttechnicalsupportItisrecommendedtocontacttechnicalsupportpriortomodifyinganyv
495、aluesinthistable.priortomodifyinganyvaluesinthistable.推荐在修推荐在修改这些表的之前联系一下技术支持改这些表的之前联系一下技术支持uuHereareafewinterestingparameters:Hereareafewinterestingparameters:一些感兴趣的参数一些感兴趣的参数n nArchiveEditLogging,1 default:0)ArchiveEditLogging,1 default:0)n nBatcheditlogging,1 (default:0)Batcheditlogging,1 (defaul
496、t:0)n nEditdays,100 (default:0)Editdays,100 (default:0)uuChangestakeeffectwhenPIrestart.ChangestakeeffectwhenPIrestart.当当PIPI重新启动是更改重新启动是更改生效生效All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2254Archive Edit Logging档案编辑记录档案编辑记录档案编辑记录档案编辑记录uuEditinganddeletinge
497、ventscannowbeEditinganddeletingeventscannowbeloggedinthePIMessagelogloggedinthePIMessagelog编辑和删除事件能里给被记录编辑和删除事件能里给被记录在在PIPI信息日志中信息日志中uuToenableloggingfollowthesesteps:Toenableloggingfollowthesesteps:以下为设定允以下为设定允许记录的步骤:许记录的步骤:1.1.c:PIadmpiconfigc:PIadmpiconfig2.2.* * - piconfigpiconfig 3.3.table tabl
498、e pigen,pitimeoutpigen,pitimeout4.4.mode createmode create5.5. istristr name,value name,value6.6.ArchiveEditLogging,1 (must be a non ArchiveEditLogging,1 (must be a non zero value)zero value)All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2255Archive Edit Logg
499、ing (contd)uuForeachdeletedorreplacedvaluetherearetwomessages:Foreachdeletedorreplacedvaluetherearetwomessages:删删除或替换值除或替换值 有两个信息:有两个信息:n nOnefromthesnapshotcontainingtheusernameOnefromthesnapshotcontainingtheusername一个来自快照包含用户名一个来自快照包含用户名n nOnefromthearchivecontainingthedataOnefromthearchivecontain
500、ingthedata一个来自档案包含数据一个来自档案包含数据uuExample:Example:例子:例子:0 Archive Edit 17-May-01 16:05:200 Archive Edit 17-May-01 16:05:20 Delete request Point ID: 1, User: Delete request Point ID: 1, User: piadminpiadminEvent time: 17-May-01 13:34:00Event time: 17-May-01 13:34:00Old value in following messageOld val
501、ue in following message0 Archive Edit 17-May-01 16:05:200 Archive Edit 17-May-01 16:05:20Delete completed Point ID: 1Delete completed Point ID: 1Event time: 17-May-01 13:34:00, old value: 86.567Event time: 17-May-01 13:34:00, old value: 86.567All rights reserved, All rights reserved, OSI Software, I
502、ncOSI Software, Inc. 200. 2002 2256Time and PI ?时间和时间和时间和时间和PIPI?uuThePIUniversalDataServerstoresalldataThePIUniversalDataServerstoresalldatawithaUTCtimestamp.TothePIUDSeverywithaUTCtimestamp.TothePIUDSeverydayhas24hours.Makesuretocorrectlysetdayhas24hours.Makesuretocorrectlysetthetimezonesettingsat
503、PIinstallationandtothetimezonesettingsatPIinstallationandtosettheswitchtoadjustautomaticallytosettheswitchtoadjustautomaticallytodaylightsaving.daylightsaving.PIPI服务器软件用服务器软件用UTCUTC时间标签存储所有的数据,每天时间标签存储所有的数据,每天2424个小时。个小时。务必在务必在PIPI安装时正确的设置时间范围和设置参数使安装时正确的设置时间范围和设置参数使PIPI可以自动的在白天存储。可以自动的在白天存储。uuThecl
504、ienttoolwilldisplay23and25hoursTheclienttoolwilldisplay23and25hoursdaysonceayear(daylightsaving).daysonceayear(daylightsaving).客户端工具将显示客户端工具将显示2323和和2525小时小时uuAllinterfacenodesautomaticallysynchronizeAllinterfacenodesautomaticallysynchronizethetimestampstheyusetothePIServertime.thetimestampstheyuset
505、othePIServertime.ThePIServermustbesynchronizedtotheThePIServermustbesynchronizedtothedatasource.datasource.所有的接口节点的都自动的与所有的接口节点的都自动的与PIPI服务器时间同步。服务器时间同步。PIPI服务器必须与数服务器必须与数据源时间同步据源时间同步All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2257All rights reserved, All
506、rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2258All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 28.0 Using PI Server Modules(SA, chpt. 4)用用用用PIPI服务器模块服务器模块服务器模块服务器模块All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc
507、. 200. 2002 2Exercise 20练习练习练习练习2020PerformanceEquation性能方程式性能方程式All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2PI ActiveView Demo PI PI ActiveViewActiveView 演示演示演示演示All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2262
508、PIActiveViewuuPIClienttoolthatenablesuserstoviewPIClienttoolthatenablesuserstoviewPIPIProcessBookProcessBookdisplaysviaanInternetBrowserdisplaysviaanInternetBrowser(likearuntimeversionofPI(likearuntimeversionofPIProcessBook)ProcessBook)PIPI的客户端工的客户端工具,允许用户通过网络浏览器查看具,允许用户通过网络浏览器查看PIPBPIPB画面画面uuReadon
509、lyaccessReadonlyaccess仅有读访问权限仅有读访问权限uuAutomatedclientinstallationandupgradesviaAutomatedclientinstallationandupgradesviaIISandPIIISandPIActiveViewActiveViewCABfilesCABfiles通过通过IISIIS和和PIPIActiveViewActiveViewCABCAB文件自动客户端安装和升级文件自动客户端安装和升级uuDevelopmenttoolstoquicklybuildyourDevelopmenttoolstoquicklyb
510、uildyourPIPIActiveViewActiveViewwebsitewebsite开发工具能使你很快的建立开发工具能使你很快的建立PIPIActiveViewActiveView网网站站 All rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2263PI ActiveView Architecture PI PI ActiveViewActiveView 体系结构体系结构体系结构体系结构PIUDS(PIserver)Clients tools-InternetEx
511、plorer-ActiveViewWebserverAll rights reserved, All rights reserved, OSI Software, IncOSI Software, Inc. 200. 2002 2264PIActiveView Installation PI -PI -ActiveViewActiveView 安装安装安装安装uuCreatePDIdisplayswithPICreatePDIdisplayswithPIProcessBookProcessBook 用用PBPB创建创建PDIPDI画面画面uuInstallPIInstallPIActiveVi
512、ewActiveViewonthePCthatwillbeusetoonthePCthatwillbeusetocreatewebpagescreatewebpages在在PCPC上安装用来创建网页的上安装用来创建网页的PIPIActiveViewActiveView uuCreateHTMLpageswithanHTMLeditor(ex:CreateHTMLpageswithanHTMLeditor(ex:FrontPage)thatletsyouinsertFrontPage)thatletsyouinsertactivexactivexobjectsobjects用用HTMLHTML编
513、辑编辑器创建器创建HTMLHTML网页,让你插入网页,让你插入activexactivex对象对象uuCopywebpagesandPDIonwebserverCopywebpagesandPDIonwebserver复制网页和复制网页和PDIPDI文件到网文件到网络服务器上络服务器上uuInstallPIInstallPIACViewACViewonclientstationorcreateCABfilesonclientstationorcreateCABfilesforautomatedinstallationforautomatedinstallation在客户端机器上安装在客户端机器上安装PIPIActiveViewActiveView 或者为自动安或者为自动安装创建装创建CABCAB文件文件uuAdjustclientsecuritysettingsAdjustclientsecuritysettings调整客户端安全设置调整客户端安全设置uuAccessthewebpageswithInternetExplorerAccessthewebpageswithInternetExplorer用用IEIE访问网页访问网页