P AIn
P AIn
P AIn
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 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.
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, RSLogix, Logix5000, FactoryTalk, PlantPAx, and ControlLogix are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Table of Contents
Notes:
This manual contains new and updated information. Changes throughout this
revision are marked by change bars, as shown to the right of this paragraph.
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.
Additional Resources These documents contain additional information concerning related products
from Rockwell Automation.
Resource Description
PlantPAx® Distributed Control System Selection Guide, Provides information to assist with equipment
publication PROCES-SG001 procurement for your PlantPAx system.
PlantPAx Distributed Control System Reference Manual, Provides characterized recommendations for
publication PROCES-RM001 implementing your PlantPAx system.
Rockwell Automation Library of Process Objects, Provides general considerations for the PlantPAx system
publication PROCES-RM002 library of process objects.
FactoryTalk® View Machine Edition User Manual, Provides details on how to use this software package for
publication VIEWME-UM004 creating an automation application.
FactoryTalk View Site Edition User Manual, Provides details on how to use this software package for
publication VIEWSE-UM006 developing and running human-machine interface (HMI)
applications.
Logix5000™ Controllers Add-On Instructions Provides information for designing, configuring, and
Programming Manual, publication 1756-PM010 programming Add-On Instructions.
Rockwell Automation Library of Process Objects: Common Details how to monitor an input condition to raise
Alarm Block (P_Alarm) Reference Manual, an alarm.
publication SYSLIB-RM002
Rockwell Automation Library of Process Objects: Standard Explains how to select the Mode (owner) of an instruction
Modes (P_Mode) Reference Manual, or control strategy. The Mode instruction is usually
publication SYSLIB-RM005 embedded within other instructions to extend their
functionality.
Rockwell Automation Library of Process Objects: Provides details of the P_AInAdv object that can be used
Advanced Analog Input (P_AInAdv) Reference Manual, instead of P_AIn if additional features are desired.
publication SYSLIB-RM018
Rockwell Automation Library of Process Objects: Provides details of the P_Gate instruction for processing
Condition Gate Delay (P_Gate) Reference Manual, status and alarm conditions, including gate delay,
publication SYSLIB-RM041 on-delay, and off-delay timing.
Rockwell Automation Library of Process Objects: Analog Details how to monitor one input analog instruction and
Input Channel (P_AIChan) Reference Manual, provide one configurable alarm.
publication SYSLIB-RM042
The P_AIn (Basic Analog Input) Add-On Instruction monitors one analog
value, typically from a channel of an analog input module, and provides alarms
when the analog value exceeds user-specified thresholds (high and low). The
Analog Input instruction also provides capabilities for linear scaling of an analog
input value from raw (input) units to engineering (output) units, and entry of a
substitute Process Variable, providing handling of an out-of-range or
faulted input.
Faceplate
Global Objects
Add-On Instruction
Functional Description The primary functions of scaling to engineering units and providing input alarms
are depicted in the following figure.
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_AIn_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
http://www.rockwellautomation.com/global/support/pcdc.pageThis 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
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.
Table 2 - Visualization Files: Images (.png)
FactoryTalk View SE Software FactoryTalk View ME Software Description
All .png files in the images folder All .png files in the images folder 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.
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 FactoryTalk View ME Software Description
(RA-BAS) Common-AnalogEdit N/A Faceplate used for analog input data entry. The FactoryTalk
View ME faceplates use the native analog input data entry
so no file is required.
(RA-BAS) P_AIn-Faceplate (RA-BAS-ME) P_AIn-Faceplate The faceplate that is used for the object.
(RA-BAS) P_AIn-Quick (RA-BAS-ME) P_AIn-Quick The Quick display that is used for the object.
(RA-BAS) P_Alarm-Faceplate (RA-BAS-ME) P_Alarm-Faceplate The faceplate that is used for the object
(RA-BAS) P_Alarm-Help (RA-BAS-ME) P_Alarm-Help Alarm Help information that is accessed from the
P_AIarm faceplate.
(RA-BAS) P_Gate-Faceplate (RA-BAS-ME) P_Gate-Faceplate The gate faceplate display used for the object.
(RA-BAS) P_Mode-Config (RA-BAS-ME) P_Mode-Config The Configuration Display used to configure the
P_Mode object.
(RA-BAS) P_Mode-Help (RA-BAS-ME) P_Mode-Help Mode Help information that is accessed from the
Help faceplate.
(RA-BAS) Process AnalogIn Family-Help (RA-BAS-ME) Process AnalogIn Family-Help The Help display for AnalogIn objects
(RA-BAS) P_AIChan-Faceplate (RA-BAS-ME) P_AIChan-Faceplate Optional
The Channel faceplate used for the object.
Use this file if your Analog Input has an associated
P_AIChan object and you enable navigation to its
faceplate from the Analog Input faceplate.
(RA-BAS) P_AIChan-Help (RA-BAS-ME) P_AIChan-Help Optional
Channel Help information that is accessed from the
P_AIChan Help faceplate.
Use this file if you use the Analog Input Channel faceplate.
Controller Code This section describes the parameter references for this Add-On Instruction.
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.
Operations This section describes the primary operations for Add-On Instructions.
Modes
This instruction uses the following standard modes, which are implemented by
using an embedded P_Mode Add-On Instruction.
Mode Description
Operator The Operator owns control of the device. Operator commands (OCmd_) and Operator settings
(OSet_) from the HMI are accepted.
Program Program logic owns control of the device. Program commands (PCmd_) and Program settings
(PSet_) are accepted.
Maintenance Maintenance owns control of the device and supersedes Operator, Program, and Override
control. Operator commands and settings from the HMI are accepted. Bypassable interlocks and
permissives are bypassed, and device timeout checks are not processed.
No Mode The device is disabled and has no owner because the EnableIn input is false. The main
instruction Logic routine is not being scanned. See Execution section for more information on
EnableInFalse processing.
Alarms
This instruction uses the following alarms, which are implemented by using
embedded P_Alarm and P_Gate Add-On Instructions.
For more information, see the following Rockwell Automation Library of Process
Objects publications:
• Common Alarm Block (P_Alarm) Reference Manual,
publication SYSLIB-RM002
• Condition Gate Delay (P_Gate) Reference Manual,
publication SYSLIB-RM041
Simulation
Simulation in P_AIn disables the normal input
(Inp_PV) and provides an input on the Operator
faceplate for you to enter your own input value.
When you have finished in simulation, set the Inp_Sim parameter in the
controller to ‘0’ to return to normal operation.
Execution
Condition Description
EnableIn False (false rung) The P_AIn Instruction shows a status of bad quality (Sts_PVBad)
and an indication on the HMI. All alarms are cleared. The mode is
reported as No Mode. However, calculation of the scaled
Val_InpPV is executed to indicate to the operator the actual
input value, even though the primary PV (Val) is not updated
(holds last value).
Powerup (prescan, first scan) Any commands received before first scan are discarded.
Embedded P_Alarm and P_Mode instructions are handled in
accordance with their standard power-up procedures. Refer to the
Reference Manual for the P_Alarm and P_Mode Instruction for
more information.
Postscan (SFC transition) No SFC postscan logic is provided.
Programming Example This example uses the P_AIn instruction to read a temperature sensor that is also
used elsewhere in logic to control the heating element of a chamber.
The Inp_PV parameter must be connected to the value coming from the
temperature transmitter. The fault status for the associated I/O channel in the
I/O module must be connected to the bad status input, Inp_PVBad.
The output parameters Val and Sts_PVBad can then be connected to the PV and
PVFault parameters of a PIDE instruction for control.
In addition, the following strings are configured to drive the display and
faceplate:
• Cfg_Desc: Oven Temperature
• Cfg_EU: Deg C
• Cfg_Label: Oven Temp
• Cfg_Tag: TI910
The strings listed above are local tags that can be configured through the HMI
faceplates or in Logix Designer application by opening the Instruction Logic of
the Add-On Instruction instance and then opening the Data Monitor on a local
tag.
Display Elements 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_AIn Display Elements Description
Display Element Name Display Element Description
GO_P_AIn Standard analog input global object.
GO_P_AIn_Trend Analog input with a trend of the Primary Value and limits
(high-high, high, low, and low-low).
Maintenance Bypass
Alarm Indicator
Indicator
Status/Quality/
Threshold Indicator
Mode Indicator
Status/Quality Indicators
One of these symbols appears on the graphic symbol when the described
condition is true.
Graphic Symbol Description
Invalid configuration.
TIP When the Invalid Configuration indicator appears, you can find what
configuration setting is invalid by following the indicators. Click the graphic
symbol to open the faceplate. The Invalid Configuration indicator appears next
to the appropriate tab at the top of the faceplate to guide you in finding the
configuration error. Once you navigate to the tab, the misconfigured item is
flagged with this indicator or appears in a magenta box.
For the Analog Input Instruction, the Invalid Configuration indicator appears
under the following conditions:
• The Input Raw Minimum and Raw Maximum scaling parameters are set
to the same value.
• The Scaled Engineering Units Minimum and Engineering Units
Maximum scaling parameters are set to the same value.
• The first-order filter time constant is set to a negative value.
• A Deadband is set to a negative value.
• An Alarm On-delay, Off-delay, or Minimum On Time is set to a value less
than zero or greater than 2,147,483 seconds.
• Alarm Severity is set to a value less than 1 or greater than 1000.
Threshold Indicators
Mode Indicators
One of these symbols appears on the right side of the graphic symbol to indicate
the mode of the object instruction.
Graphic Symbol Description
Transparent Operator mode (if the default mode is Operator and the current mode is Operator, the mode
indicator is transparent).
Operator mode (if the default mode is Program).
Transparent Program mode (if the default mode is Program and the current mode is Program, the mode
indicator is transparent).
Program mode (if the default mode is Operator).
Maintenance mode.
No mode.
When the object is in the default mode, the mode indicator is transparent.
Alarm Indicators
One of these symbols appears on the left of the label to indicate the described
alarm condition. The alarm border and label background blink if
Acknowledgement of an alarm condition is required. Once the alarm is
acknowledged, the alarm border and label background remain the color that
corresponds to the severity of the alarm.
Symbol Border and Label Background Description
No change in color Alarm Inhibit: an alarm is suppressed by the Program,
disabled by Maintenance, or shelved by the Operator.
No symbol No change in color No alarm or alarm inhibit condition, and all alarms
are acknowledged.
TIP When the Maintenance Bypass indicator appears, you can find what condition
was bypassed by following the indicators. Click the graphic symbol to open the
faceplate. The Maintenance Bypass indicator appears next to the appropriate
tab at the top of the faceplate to guide you in finding the bypass. Once you
navigate to the tab, the bypassed item is flagged with this indicator.
For the Analog Input Instruction, the Maintenance Bypass Indicator appears
when the Substitute PV function has been enabled. The ‘live’ Process Variable is
being superseded by a Maintenance-entered value.
The global objects for P_AIn 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 the global object 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.
3. In the Value column, type the tag or value as specified in the Description
column.
4. Click OK.
Quick Display The Quick Display screen provides means for operators to perform simple
interactions with the P_AIn instruction instance. From the Quick Display,
you can navigate to the faceplate for full access for operation, maintenance,
and configuration.
Click to Navigate
to Full Faceplate
Faceplate The P_AIn faceplate consists of five 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 is displayed when the faceplate is initially opened. Click the
appropriate icon at the top of the faceplate to access a specific tab.
Maintenance Trends Exit
The faceplate provides the means for operators, maintenance workers, engineers,
and others to interact with the P_AIn instruction instance, including viewing its
status and values and manipulating it through its commands and settings. When
a given input is restricted via FactoryTalk View security, the required user security
code letter is shown in the tables that follow.
Operator Tab
The Faceplate initially opens to the Operator (‘Home’) tab. From here, an
operator can monitor the device status and manually operate the device when it is
in Operator mode.
Operator Mode Unlock and Lock
Command Buttons
• High-High (HH) and Low-Low (LL) thresholds are displayed with a label
background that turns red when exceeded.
• High (H) and Low (L) thresholds are displayed with a label background
that turns yellow when exceeded.
• Input Source and Quality indicator (See 'SrcQ' in the Output parameters
table on page 17 for details).
The following table shows the functions included on the Operator tab.
Table 11 - Operator Tab Description
Function Action Security
Click to lock in Operator mode. Function locks the mode in Manual Device
Operator mode, preventing the program from taking control. Operation (Code B)
Click to select normal input for the PV. This button is visible Equipment
only in Maintenance mode, and only if Engineering has Maintenance (Code C)
enabled the substitute PV function.
Substitute PV data entry Enter the substitute PV value. This entry is available only
when the substitute PV function is enabled.
PV Used in simulation Type the simulation PV value. This entry is available only Normal Operation of
data entry when input simulation is enabled. (See Simulation on Devices (Code A)
(not shown on faceplate page 21 for more information.)
image)
The following table shows the alarm status symbols used on the Operator tab.
Table 12 - Operator Tab Alarm Status
Graphic Symbol Alarm Status
In Alarm (Active Alarm)
High-High PV Alarm
High PV Alarm
Low PV Alarm
Low-Low PV Alarm
Fail Alarm
Maintenance Tab
Maintenance personnel use the information and controls on the Maintenance tab
to make adjustments to device parameters, troubleshoot and temporarily work
around device problems, and disable the device for routine maintenance.
IMPORTANT Click a threshold name to open the P_Gate faceplate. From the P_Gate
faceplate, you can configure and perform additional operations for each alarm,
including Gate Delay, Status On-delay, Status Off-delay, and Threshold Name.
Engineering Tab
On page 1 of the Engineering tab, you can configure the description, label, tag,
and PV units for the device.
Configure Device
Description, Label, and
Tag Text
Units
The following table lists the functions on page 1 of the Engineering tab.
Table 14 - Engineering Tab Page 1 Description
Function Action Security Configuration Parameters
Click to open the Mode Configuration None See Mode Configuration display on
display. page 40
TIP The P_AIn instruction supports reverse scaling; either the raw (Input) or
engineering (Scaled) range can be reversed (maximum less than minimum).
This display lets you select the default mode for the object by selecting the
appropriate mode.
IMPORTANT If no mode is being requested, changing the default mode changes the mode
of the instruction.
You must have FactoryTalk View security code E to select the default mode on
this display.
Process Variable
Filter Time
Constant
The following table lists the functions on page 2 of the Engineering tab.
Table 15 - Engineering Tab Page 2 Description
Function Action Security Configuration Parameters
PV Filter Time Type the PV filter time constant. Engineering Cfg_FiltTC
(seconds) If the time constant is 0, the PV is Configuration
0 = unfiltered unfiltered. (Code E)
Trends Tab
The Trends tab shows trend charts of key device data over time. These faceplate
trends provide a quick view of current device performance to supplement, but not
replace, dedicated historical or live trend displays.
(Red) High-High
Threshold Value
(Gray) Capture
(Yellow) High Range
Threshold Value
(Red) Low-Low
PV (%) Value Threshold Value
(Yellow) Low
Threshold Value
Alarms Tab
The Alarms tab displays each configured alarm for the P_AIn instruction. The
icon on the tab for the alarms page changes color based on the current active
alarms. A blinking alarm icon indicates that one or more alarms must be
acknowledged or the device must be reset.
Alarm Acknowledge
Command Button
Alarm Severity
Alarm Names Indicators
Reset and
Acknowledge All
Alarms Command
Button
Click an alarm name to open the P_Alarm faceplate for that alarm. From the
P_Alarm faceplate, you can configure and perform additional operations on
the alarm.
If an alarm is active, the panel behind the alarm changes color to match the
severity of the alarm. The color of the bell icon at the top of the faceplate shows
the severity of the highest active alarm, and the icon blinks if any alarm is
unacknowledged or requires reset.
When the Reset and Acknowledge All Alarms button is enabled, the panel
behind the alarm blinks, indicating the alarm requires acknowledgement or reset.
The Alarm Acknowledge button is enabled if the alarm requires
acknowledgment. Click the button with the check mark to acknowledge the
alarm.
Notes:
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.
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 Otomasyon Ticaret A.Ş., Kar Plaza İş Merkezi E Blok Kat:6 34752 İçerenköy, İstanbul, Tel: +90 (216) 5698400