Rockwell AB PlantPAx 指令简要说明 中文版 – ELEOK
Reference Manual Rockwell Automation Library of Process Objects: 2-state Valve Statistics (P_ValveStats) Version 3.5 IMPORTANT This manual applies to the Rockwell Automation Library of Process Objects version 3.5 or earlier. For Rockwell Automation Library of Process Objects version 5.0, see · PROCES-RM200 For Rockwell Automation Library of Process Objects version 4.0 or later, use the following manuals: · PROCES-RM013 contains logic instructions · PROCES-RM014 contains display elements Important User Information Read this document and the documents listed in the additional resources section about installation, configuration, and operation of this equipment before you install, configure, operate, or maintain this product. Users are required to familiarize themselves with installation and wiring instructions in addition to requirements of all applicable codes, laws, and standards. Activities including installation, adjustments, putting into service, use, assembly, disassembly, and maintenance are required to be carried out by suitably trained personnel in accordance with applicable code of practice. If this equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be impaired. In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment. The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the examples and diagrams. No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or software described in this manual. Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation, Inc., is prohibited. Throughout this manual, when necessary, we use notes to make you aware of safety considerations. WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous environment, which may lead to personal injury or death, property damage, or economic loss. ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the consequence. IMPORTANT Identifies information that is critical for successful application and understanding of the product. Labels may also be on or inside the equipment to provide specific precautions. SHOCK HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may be present. BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous temperatures. ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to potential Arc Flash. Arc Flash will cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL Regulatory requirements for safe work practices and for Personal Protective Equipment (PPE). Allen-Bradley, Rockwell Software, Rockwell Automation, Studio 5000 Logix Designer, Logix5000, FactoryTalk, PlantPAx, and ControlLogix are trademarks of Rockwell Automation, Inc. Trademarks not belonging to Rockwell Automation are property of their respective companies. Preface 2-state Valve Statistics (P_ValveStats) Table of Contents Software Compatibility and Content Revision. . . . . . . . . . . . . . . . . . . . . . . . 5 Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Required Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Controller File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Visualization Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Controller Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2-state Valve Statistics Input Structure . . . . . . . . . . . . . . . . . . . . . . . . . 11 2-state Valve Statistics Output Structure . . . . . . . . . . . . . . . . . . . . . . . 12 2-state Valve Statistics Local Configuration Tags. . . . . . . . . . . . . . . . 13 Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Execution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Display Elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Using Display Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Faceplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Operator Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Engineering Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 3 Table of Contents Notes: 4 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 Preface This manual contains new and updated information. Changes throughout this revision are marked by change bars, as shown to the right of this paragraph. Software Compatibility and Table 1 - Summary of Changes Content Revision Topic Page Changed software version from 3_1 to 3_5 9 Split visualization files table by type and reordered to align with installation requirements 9 For the latest compatible software information and to download the Rockwell Automation® Library of Process Objects, see the Product Compatibility and Download Center at http://www.rockwellautomation.com/rockwellautomation/support/pcdc.page. For general library considerations, see Rockwell Automation Library of Process Objects, publication PROCES-RM002. Additional Resources These documents contain additional information concerning related products from Rockwell Automation. Resource PlantPAx® Distributed Control System Selection Guide, publication PROCES-SG001 PlantPAx Distributed Control System Reference Manual, publication PROCES-RM001 Rockwell Automation Library of Process Objects, publication PROCES-RM002 FactoryTalk® View Machine Edition User Manual, publication VIEWME-UM004 FactoryTalk View Site Edition User Manual, publication VIEWSE-UM006 Logix5000TM Controllers Add-On Instructions Programming Manual, publication 1756-PM010 Description Provides information to assist with equipment procurement for your PlantPAx system. Provides characterized recommendations for implementing your PlantPAx system. Provides general considerations for the PlantPAx system library of process objects. Provides details on how to use this software package for creating an automation application. Provides details on how to use this software package for developing and running human-machine interface (HMI) applications that can involve multiple users and servers, distributed over a network. Provides information for designing, configuring, and programming Add-On Instructions. You can view or download publications at http:/www.rockwellautomation.com/literature/. To order paper copies of technical documentation, contact your local Allen-Bradley distributor or Rockwell Automation sales representative. Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 5 Preface Notes: 6 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 2-state Valve Statistics (P_ValveStats) Add-On Instruction The P_ValveStats (2-state Valve Statistics) Add-On Instruction monitors a 2-state (open and close) valve and records various statistics related to stroke times and stroke counts. The global object and faceplate shown below are examples of the graphical interface tools for this Add-On Instruction. Faceplate Guidelines Global Object Use this instruction in these situations: · You want to maintain stroke time and stroke count data on a 2-state valve to aid in planning maintenance or diagnosing valve and actuator problems. The P_ValveStats instruction is designed to work with the P_ValveSO (solenoid operated valve), P_ValveMO (motor operated valve), and P_ValveHO (hand operated valve) instructions and can be used with the P_ValveMP (mix proof valve) instruction as well. · You want an indication when a valve takes longer to stroke than a configured threshold time. · The valve is not an `intelligent' valve that maintains its own valve stroke time and count data. · You do not have more specialized valve monitoring software that provides functionality above and beyond what the P_ValveStats instruction provides. Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 7 2-state Valve Statistics (P_ValveStats) Functional Description Do not use this instruction in these situations: · You have a continuously variable valve (control valve, throttling valve). The P_ValveStats instruction works only with valves that have full open and full close actions. The P_ValveStats instruction is not suitable for use with the P_AOut (Analog Output) or P_ValveC (Control Valve) instructions. · You have an intelligent valve or valve monitoring and maintenance software that provides the same or more functionality than the P_ValveStats instruction. The valve or software provides more data than the P_ValveStats instruction, including specialized algorithms that predict impending valve failure or schedule maintenance. This instruction monitors a 2-state valve and provides the following statistics: · Amount of time in the current state (closed, opening, opened, closing, stopped/other) · Amount of time the valve was in each state the last time it was in that state (closed, opening, opened, closing, stopped/other) · Maximum amount of time spent in each state (closed, opening, opened, closing, and stopped/other); these are the highest values achieved by the previous statistics · Total amount of time spent in each state (closed, opening, opened, closing, stopped/other) · Moving average of the last 10 closing (close stroke) times · Moving average of the last 10 opening (open stroke) times · Number of completed open strokes (from closed to opened) · Number of completed close strokes (from opened to closed) · Number of incomplete open strokes (from closed to opening and back to closed) · Number of incomplete close strokes (from opened to closing and back to opened) · Number of times the valve was in the stopped/other state · Number of `slow' open strokes; this is the number of open strokes that took longer than the configured Slow Open Time · Number of `slow' close strokes; this is the number of close strokes that took longer than the configured Slow Close Time 8 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 2-state Valve Statistics (P_ValveStats) Required Files Add-On Instructions are reusable code objects that contain encapsulated logic that can streamline implementing your system. This lets you create your own instruction set for programming logic as a supplement to the instruction set provided natively in the ControlLogix® firmware. An Add-On Instruction is defined once in each controller project, and can be instantiated multiple times in your application code as needed. Controller File The P_ValveStats_3_5-00_AOI.L5X Add-On Instruction must be imported into the controller project to be used in the controller configuration. The service release number (boldfaced) can change as service revisions are created. Visualization Files This Add-On Instruction has associated visualization files that provide a common user interface. These files can be downloaded from the Product Compatibility and Download Center at http://www.rockwellautomation.com/rockwellautomation/support/pcdc.page. IMPORTANT The visualization file dependencies require Process Library content imports to occur in a specific order as reflected in the following tables: · Images · Global Objects · Standard Displays · HMI Tags · Macros Table 2 - Visualization Files: Images (.png) FactoryTalk View SE Software All .png files in the images folder Images are external graphic files that can be used in displays. They must be imported for FactoryTalk View to make use of them. When PNG files are imported, they are renamed by FactoryTalk View with a .bmp file extension, but retain a .png format. FactoryTalk View ME Software All .png files in the images folder Description These are the common icons used in the global objects and standard displays for all Process Objects. The Global Object files (.ggfx file type) in the following table are Process Library display elements that are created once and referenced multiple times on multiple displays in an application. When changes are made to a Global Object, all instances in the application are automatically updated. Table 3 - Visualization Files: Global Objects (.ggfx) FactoryTalk View SE Software (RA-BAS) Common Faceplate Objects (RA-BAS) Process Faceplate Valve Objects FactoryTalk View ME Software (RA-BAS-ME) Common Faceplate Objects (RA-BAS-ME) Process Faceplate Valve Objects Description Global objects used on process object faceplates. Valve global objects used on process object faceplates Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 9 2-state Valve Statistics (P_ValveStats) Table 3 - Visualization Files: Global Objects (.ggfx) FactoryTalk View SE Software (RA-BAS) Process Graphics Library FactoryTalk View ME Software (RA-BAS-ME) Process Graphics Library Description Process global object device symbols used to build process graphics The Standard Display files (.gfx file type) in the following table are the Process Library displays that you see at runtime. Table 4 - Visualization Files: Standard Displays (.gfx) FactoryTalk View SE Software (RA-BAS) Common-AnalogEdit (RA-BAS) P_ValveStats-Faceplate FactoryTalk View ME Software N/A (RA-BAS-ME) P_ValveStats-Faceplate Description Faceplate used for analog input data entry. The FactoryTalk View ME faceplates use the native analog input data entry so no file is required. The faceplate that is used for the object Table 5 - Visualization Files: HMI Tags (.csv) FactoryTalk View SE Software N/A HMI Tags are created in a FactoryTalk View ME application to support tab switching on Process Library faceplates. The HMI tags may be imported via the comma-separated values file (.csv file type) in the following table. FactoryTalk View ME Software FTVME_PlantPAxLib_Tags_3_5_xx.csv where xx = the service release number. Description These tags must be imported into the FactoryTalk View ME project to support switching tabs on any Process Object faceplate. 10 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 2-state Valve Statistics (P_ValveStats) Controller Code This section describes the parameter references for this Add-On Instruction. 2-state Valve Statistics Input Structure Table 7 - P_ValveStats Input Parameters Input parameters include the following: · Input data elements (Inp_) are typically used to connect field inputs from I/O modules or signals from other objects. · Configuration data elements (Cfg_) are used to set configurable capabilities and features of the instruction. · Command data elements (PCmd_, OCmd_, MCmd_) are used by program logic, operators, and maintenance personnel to request instruction actions. Input Parameter EnableIn Data Type BOOL Default 1 Inp_Closed BOOL 0 Inp_Opened BOOL 0 Inp_StopOther BOOL 0 Cfg_HasStopOther BOOL 0 Cfg_PCmdClear BOOL 1 Cfg_SlowOpenT REAL 10.0 Cfg_SlowCloseT REAL 10.0 PCmd_ClearTotTimes BOOL 0 PCmd_ClearMaxTimes PCmd_ClearStrokeCounts PCmd_ClearSlowCounts PCmd_ClearMAvgs MCmd_ClearTotTimes BOOL 0 MCmd_ClearMaxTimes BOOL 0 MCmd_ClearStrokeCounts BOOL 0 MCmd_ClearSlowCounts BOOL 0 MCmd_ClearMAvgs BOOL 0 Description Ladder Diagram: If the rung-in condition is true, the instruction's Logic routine executes. If the rung-in condition is false, the instruction's EnableInFalse routine executes. Function Block Diagram: If true, or not connected, the instruction's Logic routine executes. If the parameter is exposed as a pin and wired, and the pin is false, the instruction's EnableInFalse routine executes. Structured Text: No effect. The instruction's Logic routine executes. 1 = Valve is confirmed closed (from valve instruction). 1 = Valve is confirmed opened (from valve instruction). 1 = Valve is confirmed stopped/other (from valve instruction). 1 = Valve provides a stopped or other state(s) to be monitored. When this parameter is 1, program commands are cleared once they are acted upon. When set to 0, program commands remain set until cleared by the application program logic. IMPORTANT: Clearing this parameter online can cause unintended program command execution. Maximum time opening (seconds) before raising Sts_SlowOpen. Maximum time closing (seconds) before raising Sts_SlowClose. When Cfg_PCmdClear is 1: · Set PCmd_ClearTotTimes to 1 to clear total time statistics · Set PCmd_ClearMaxTimes to 1 to clear maximum time statistics · Set PCmd_ClearStrokeCounts to 1 to clear stroke count statistics · Set PCmd_ClearSlowCounts to 1 to clear valve slow count statistics · Set PCmd_ClearMAvgs to 1 to clear moving average stoke times · These parameters reset automatically When Cfg_PCmdClear is 0: · Set PCmd_ClearTotTimes to 1 to clear total time statistics · Set PCmd_ClearMaxTimes to 1 to clear maximum time statistics · Set PCmd_ClearStrokeCounts to 1 to clear stroke count statistics · Set PCmd_ClearSlowCounts to 1 to clear valve slow count statistics · PSet Cmd_ClearMAvgs to 1 to clear moving average stoke times · These parameters do not reset automatically Maintenance command to clear total time statistics. Maintenance command to clear maximum time statistics. Maintenance command to clear stroke count statistics. Maintenance command to clear valve slow count statistics. Maintenance command to clear moving average stroke times. Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 11 2-state Valve Statistics (P_ValveStats) 2-state Valve Statistics Output Structure Table 8 - P_ValveStats Output Parameters Output parameters include the following: · Value data elements (Val_) are numeric outputs of the instruction for use by the HMI. Values also can be used by other application logic or software packages. · Status data elements (Sts_) are bit outputs of the instruction for use by the HMI. Status bits also can be used by other application logic. Output Parameter EnableOut Val_CurrClosedT Val_LastClosedT Val_TotClosedT Val_MaxClosedT Val_CurrOpeningT Val_LastOpeningT Val_TotOpeningT Val_MaxOpeningT Val_MAvgOpeningT Val_CurrOpenedT Val_LastOpenedT Val_TotOpenedT Val_MaxOpenedT Val_CurrClosingT Val_LastClosingT Val_TotClosingT Val_MaxClosingT Val_MAvgClosingT Val_CurrStopOtherT Val_LastStopOtherT Val_TotStopOtherT Val_MaxStopOtherT Val_CpltOpenC Val_CpltCloseC Val_IncpltOpenC Val_IncpltCloseC Val_StopOtherC Val_SlowOpenC Val_SlowCloseC Sts_SlowOpen Data Type BOOL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL REAL DINT DINT DINT DINT DINT DINT DINT BOOL Description Enable output: The EnableOut signal is not manipulated by this instruction. Its output state always reflects EnableIn input state. Current time in closed state (seconds). Time in closed state (seconds) last time valve was closed. Accumulated time in closed state (hours). Maximum time in closed state (hours) of any occurrence. Current time in opening state (seconds). Time in opening state (seconds) last time valve was opening. Accumulated time in opening state (hours). Maximum time in opening state (seconds) of any occurrence. Moving average open stroke time, last 10 complete open strokes (seconds). Current time in opened state (seconds). Time in opened state (seconds) last time valve was opened. Accumulated time in opened state (hours). Maximum time in opened state (hours) of any occurrence. Current time in closing state (seconds). Time in closing state (seconds) last time valve was closing. Accumulated time in closing state (hours). Maximum time in closing state (seconds) of any occurrence. Moving average close stroke time, last 10 complete close strokes (seconds). Current time in stopped/other state (seconds). Time in stopped/other state (seconds) last time valve was stopped (or other). Accumulated time in stopped/other state (hours). Maximum time in stopped/other state (hours) of any occurrence. Count of complete valve open strokes (closed to opened). Count of complete valve close strokes (opened to closed). Count of incomplete valve open strokes (closed, moving, closed). Count of incomplete valve close strokes (opened, moving, opened). Count of valve stopped/other occurrences. Count of valve slow to open occurrences. Count of valve slow to close occurrences. 1 = Last closed to opened stroke exceeded configured time threshold. 12 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 Table 8 - P_ValveStats Output Parameters Output Parameter Sts_SlowClose Sts_Err P_ValveStats Data Type BOOL BOOL BOOL Description 1 = Last opened to closed stroke exceeded configured time threshold. 1 = Configuration error: invalid slow open time or slow close time. Unique parameter name for auto-discovery. 2-state Valve Statistics (P_ValveStats) 2-state Valve Statistics Local Configuration Tags Table 9 - Local Configuration Tags Tag Name Cfg_Desc Data Type STRING_40 Cfg_Label Cfg_StopOtherDesc Cfg_Tag STRING_20 STRING_20 STRING_20 Configuration parameters that are array, string, or structure data types cannot be configured as parameters for Add-On Instructions. Configuration parameters of these types appear as local tags to the Add-On Instruction. Local tags can be configured through the HMI faceplates or in Studio 5000 Logix Designer® application by opening the Instruction Logic of the Add-On Instruction instance and then opening the Data Monitor on a local tag. These parameters cannot be modified by using controller logic or Logix Designer application export/import functionality. Default Description 'Valve Statistics' (stroke Description for display on HMI. This string is shown in the title bar of the faceplate. times, counts) 'Valve Statistics' Label for graphic symbol displayed on HMI. This string appears on the graphic symbol. ' ' Name for the stopped or other state for display on HMI. 'P_ValveStats' Tagname for display on HMI. This string is shown in the title bar of the faceplate. Operations This section describes the primary operations for this Add-On Instruction. Modes The P_ValveStats Add-On Instruction has no modes and does not use the P_Mode Add-On Instruction. Commands to reset certain statistics are provided with security, but are accepted at any time and do not depend on modes. Alarms The P_ValveStats instruction does not provide any alarms and does not have any embedded P_Alarm Add-On Instructions. Slow Open and Slow Close Status bits are provided if you want to alarm on every slow open stoke or slow close stroke. External P_Alarm instances can be tied to these status outputs. Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 13 2-state Valve Statistics (P_ValveStats) Simulation The 2-state Valve Statistics Add-On Instruction does not have a Simulation capability. It monitors the associated valve regardless of whether that valve is live or simulated. Execution The following table explains the handling of instruction execution conditions. Condition EnableIn False (false rung) Powerup (prescan, first scan) Postscan Description Total times, total valve stroke counts, and slow stroke counts are maintained. Current position times are cleared. The internal instruction state for the valve is set to `unknown'. Total times, total valve stroke counts, and slow stroke counts are maintained. Current position times are cleared. The internal instruction state for the valve is set to `unknown'. Any commands received while the controller was in Program mode are cleared. No SFC Postscan logic is provided. Refer to the Logix5000 Controllers Add-On Instructions Programming Manual, publication 1756-PM010, for more information. 14 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 Programming Example 2-state Valve Statistics (P_ValveStats) This section shows how the P_ValveStats instruction can collect statistics on a motor-operated valve. In this example, the motor-operated valve is controlled by using the P_ValveMO instruction. By naming the P_ValveStats instance tag the same as the P_ValveMO tag plus 'ValveStats', it is automatically linked at the HMI to the valve instance. In this example, the motor-operated valve is either opened, closed, or the motor could stop moving while in travel before reaching either position. Statistics for all of these three states can be tracked by using the P_ValveStats instruction. In this example, the parameters Inp_Closed, Inp_Opened, and Inp_StopOther are connected to the parameters Sts_Closed, Sts_Opened, and Sts_Stopped of the P_ValveMO instruction. The P_ValveStats instruction keeps track of completed strokes, plus open and close strokes that are slower than expected. The parameters Cfg_SlowOpenT and Cfg_SlowCloseT are set to 10, to indicate that any transition longer than 10 seconds is considered slow. The parameter Cfg_PCmdClear is set to 1, so any program commands provided to the instruction are cleared once acted upon. The following local configuration tags are configured to drive the text on the HMI faceplate: Cfg_Tag : `MyValveMO_Stats' Cfg_Label: `MyValveMO Stats' Cfg_Desc: `MyValveMO Statistics' Cfg_StopOtherDesc: `Stopped' Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 15 2-state Valve Statistics (P_ValveStats) Local tags can be configured through the HMI faceplates or in the Logix Designer application by opening the Instruction Logic of the Add-On Instruction instance and then selecting the string on the displayed rung. All of the strings in local tags are shown on the first rung of the Add-On Instruction's `Logic' routine for your convenience. To access the valve statistics from the faceplate for the valve, you must configure MyValveMO. Set the Cfg_HasStatsObj parameter to 1. There is no need to set a global object parameter, but the P_ValveStats backing tag must be named the same as the Valve tag plus '_ValveStats'. 16 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 Display Elements 2-state Valve Statistics (P_ValveStats) A display element (global object) is created once and can be referenced multiple times on multiple displays in an application. When changes are made to the original (base) object, the instantiated copies (reference objects) are automatically updated. Use of global objects, in conjunction with tag structures in the ControlLogix system, aid consistency and save engineering time. Table 10 - P_ValveStats Display Elements Description Display Element Name GO_P_ValveStats Display Element Description This GO_P_ValveStats object can be added to application graphics to access valve statistics. A similar object is already included on faceplates for 2-state valves to provide access to valve statistics. Using Display Elements The global objects for the P_ValveStats instruction can be found in the global object file (RA-BAS) P_AIn Graphics Library.ggfx. Follow these steps to use a global object. 1. Copy it from the global object file and paste it in the display file. 2. In the display, right-click the global object and choose Global Object Parameter Values. Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 17 2-state Valve Statistics (P_ValveStats) The Global Object Parameter Values dialog box appears. The global object parameters are as follows. Parameter #102 103 120 121 Required Y Y N N Description Object tag must point to the tag of the associated Add-On Instruction in the controller. Path used for display navigation features to other objects. Include program scope if tag is a program scope tag. Additional parameter to pass to the display command to open the faceplate. Typically used to define position for the faceplate. Additional parameter to pass to the display command to open the faceplate. if defining X and Y coordinate, separate parameters so that X is defined by #120 and Y is defined by #121. This lets the same parameters be used in subsequent display commands originating from the faceplate. 3. Type the tag or value in the Value column as specified in the Description column. TIP You can click the ellipsis (. . .) to browse and select a tag. Values for items marked `(optional)' can be left blank. 4. Click OK. 18 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 Faceplate 2-state Valve Statistics (P_ValveStats) The P_ValveStats instruction faceplate consists of two tabs and each tab consists of one or more pages. Each faceplate contains the value of local configuration tags Cfg_Tag and Cfg_Desc in the title bar. The Operator tab appears when the faceplate is initially accessed. There is also an Engineering tab for configuring the instruction. Engineering Operator Exit Operator Tab The Faceplate initially opens to the Operator (`Home') tab. From here, an operator can monitor the device statistics. The Operator tab shows the following information: · Completion information and moving average for close and open strokes. · Count and last stroke information for slow close and slow open strokes. · Current, last, maximum, and total time in different states. Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 19 2-state Valve Statistics (P_ValveStats) Configure Device Description, Label, and Tag Text The following table shows the functions included on the Operator tab. Table 11 - Operator Tab Description Function Action Click to reset an accumulated time or count. Security Configuration and Tuning Maintenance (Code D) Engineering Tab The Engineering tab provides access to device configuration parameters and ranges, options for device and I/O setup, displayed text, and faceplate-to-faceplate navigation settings, and for initial system commissioning or later system changes. Engineering Tab 20 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 2-state Valve Statistics (P_ValveStats) The following table lists the functions on the Engineering tab. Table 12 - Engineering Tab Description Function Description Label Tag Stopped or Other State Text Valve has Stopped or other state(s) to be monitored Clear Program Commands on receipt Maximum Time Closing (seconds) before raising Sts_SlowClose Maximum Time Opening (seconds) before raising Sts_SlowOpen Action Security Type the device description to show on the Faceplate title bar. Type the label to show on the Graphic Symbol. Engineering Configuration (Code E) Type the tag name to show on the Faceplate and Tooltip. IMPORTANT: Pausing the mouse over this field displays a tool tip with the configured Logix tag/path. Type a name for the Stopped or other state of the valve. Check when a valve has stopped or other state to monitor. Check to clear program commands on receipt. Clear the checkbox to leave program commands set. Type the number of seconds to give the valve to close before counting a slow close stroke. Type the number of seconds to give the valve to open before counting a slow open stroke. Configuration Parameters Cfg_Desc Cfg_Label Cfg_Tag Cfg_StopOtherDesc Cfg_HasStopOther Cfg_PCmdClear Cfg_SlowCloseT Cfg_SlowOpenT Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 21 2-state Valve Statistics (P_ValveStats) Notes: 22 Rockwell Automation Publication SYSLIB-RM036D-EN-P - January 2016 Rockwell Automation Support Rockwell Automation provides technical information on the Web to assist you in using its products. At http://www.rockwellautomation.com/support you can find technical and application notes, sample code, and links to software service packs. You can also visit our Support Center at https://rockwellautomation.custhelp.com/ for software updates, support chats and forums, technical information, FAQs, and to sign up for product notification updates. In addition, we offer multiple support programs for installation, configuration, and troubleshooting. For more information, contact your local distributor or Rockwell Automation representative, or visit http://www.rockwellautomation.com/services/online-phone. Installation Assistance If you experience a problem within the first 24 hours of installation, review the information that is contained in this manual. You can contact Customer Support for initial help in getting your product up and running. United States or Canada 1.440.646.3434 Outside United States or Canada Use the Worldwide Locator at http://www.rockwellautomation.com/rockwellautomation/support/overview.page, or contact your local Rockwell Automation representative. New Product Satisfaction Return Rockwell Automation tests all of its products to help ensure that they are fully operational when shipped from the manufacturing facility. However, if your product is not functioning and needs to be returned, follow these procedures. United States Contact your distributor. You must provide a Customer Support case number (call the phone number above to obtain one) to your distributor to complete the return process. Outside United States Please contact your local Rockwell Automation representative for the return procedure. Documentation Feedback Your comments will help us serve your documentation needs better. If you have any suggestions on how to improve this document, complete this form, publication RA-DU002, available at http://www.rockwellautomation.com/literature/. Rockwell Automation maintains current product environmental information on its website at http://www.rockwellautomation.com/rockwellautomation/about-us/sustainability-ethics/product-environmental-compliance.page. Rockwell Otomasyon Ticaret A.., Kar Plaza Merkezi E Blok Kat:6 34752 çerenköy, stanbul, Tel: +90 (216) 5698400 Publication SYSLIB-RM036D-EN-P - January 2016 Supersedes Publication SYSLIB-RM036C-EN-P - August 2014 Copyright © 2016 Rockwell Automation, Inc. All rights reserved. Printed in the U.S.A.Acrobat Distiller 10.1.16 (Windows)