Beruflich Dokumente
Kultur Dokumente
Reference Manual
Important User Information
Solid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Appli-
cation, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from your local Rockwell Automation sales office
or online at http://rockwellautomation.com/literature) describes some important differences between solid state equipment and hard-wired
electromechanical devices. Because of this difference, and also because of the wide variety of uses for solid state equipment, all persons re-
sponsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable.
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 as-
sociated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for actual use based on the ex-
amples 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.
IMPORTANT Identifies information that is critical for successful application and understanding of the product.
Identifies information about practices or circumstances that can lead to personal injury or death,
ATTENTION
property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and
recognize the consequence.
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.
Allen-Bradley, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation, Plant PAx Process Automation System, and TechConnect are property of their respective companies.
Summary of Changes
Introduction This release of this document is updated throughout for version 2.0 of the
Standard Alarm Sub-Block (P_Alarm) Add-On Instruction and Graphics.
Please refer to the Release Notes that are distributed with version 2.0 of the
Library.
Change: See:
Version 2.0 of instruction All
Notes:
Chapter 1
Overview Primary Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Standalone vs. Embedded in Other AOIs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Implementation Using the EnableIn FALSE Feature . . . . . . . . . . . . . . . . . . 7
Revision Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Chapter 2
Configuration Options Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Chapter 3
Instruction Data Reference Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Inputs (Inp_) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Configurations (Cfg_). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Program Commands (PCmd_). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Alarm Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Operator Commands, Maintenance Commands, Command Readies
(OCmd_, MCmd_, Rdy_) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Alarm Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Alarm Readies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Values (Val_) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Status (Sts_) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Alarm Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Chapter 4
HMI Reference Graphic Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Alarm Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Faceplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Alarms Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Alarm Configuration Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Alarm Indicators on Other Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Notes:
Use of this Document This document provides a programmer with details on the P_Alarm
instruction for a Logix-based controller. You should already be familiar with
how the Logix-based controller stores and processes data.
Novice programmers should read all the details about an instruction before
using the instruction. Experienced programmers can refer to the instruction
information to verify details.
This manual uses Edge and Level to describe how bit (BOOL) Commands,
Settings, Configurations and Inputs to this instruction are sent by other logic
and processed by this instruction.
Pre-Scan
On transition into RUN, the controller performs a pre-scan before the first
logic scan. Pre-scan is a special scan of all routines in the controller. The
controller scans all main routines and subroutines during pre-scan, but ignores
jumps that could skip the execution of instructions. The controller performs
all FOR loops and subroutine calls. If a subroutine is called more than once, it
is performed each time it is called. The controller uses pre-scan instructions to
reset non-retentive data values.
During pre-scan, input values are not current and outputs are not written. The
following conditions generate pre-scan:
When entering data into String Input fields in FactoryTalk View SE, the data is
not saved to the tag until the user presses the Enter key. When the Input Field
is enabled, its border changes based on the state of the input:
When the Input Field is Active (the cursor is in the field), the Input Field border is a
solid line.
EXAMPLE
If the user modifies the data in the input field and moves to a different field without
pressing the Enter key, the border remains a solid line indicating that the data has not
been saved to the tag.
EXAMPLE
If the data in the Input Field has not changed or has been written to the controller
tag, the border is a dashed line.
EXAMPLE
Overview
Use when:
You are developing your own Add-On Instruction (AOI) and you want
it to generate one or more Alarms that are compatible with the alarm
strategy for the Process Add-On Instructions. Use an instance of the
P_Alarm Instruction embedded within your AOI for each alarm
condition.
You have a condition in your logic (outside of any Add-On Instruction)
that you want to generate an Alarm. Use the P_Alarm Instruction
stand-alone within your program logic.
You have a discrete input signal from a flow switch, pressure switch,
level switch or other device and want to display the device state,
generate alarms, or condition the alarm based on time or gating signals.
Use the P_DIn (Discrete Input) Add-On Instruction instead.
You need synchronized timestamping features or other features of
FactoryTalk Alarms and Events not supported by P_Alarm. Use the
ALMD built-in instruction instead.
The State Diagram below shows how a P_Alarm Instruction instance behaves
as an alarm occurs, is acknowledged, clears and is reset, depending upon the
instructions configuration.
A Inp = 1 B
Normal (Process Alarm/Unacked
Inp = 0 (Normal) Abnormal) Inp = 1 (Abnormal)
Alm = 0 (No Alarm) and Ack Alm = 1 (Alarm)
Ack = 1 (Acked) Required Ack = 0 (Unacked)
Inp = 1
(Process Operator Ack
Abnormal) or Ack
and Ack Not Required
Not Required
Inp = 0 (Process
Normal) and
Reset Required
F E
Inp = 1
Operator Reset RTN/Acked/Latched Operator Ack RTN/Unacked/Latched
(Process
or Reset Inp = 0 (Normal) or Ack Inp = 0 (Normal)
Abnormal)
Not Required Alm = 1 (Alarm) Not Required Alm = 1 (Alarm)
Ack = 1 (Acked) Ack = 0 (Unacked)
D
Operator Ack RTN/Unacked/Not Latched
or Ack Inp = 0 (Normal)
Not Required Alm = 0 (No Alarm)
Ack = 0 (Unacked)
G H I
Suppressed (Oper) Inhibited (Prog) Disabled (Maint)
Alarm is Logged as Alarm is not Reported Alarm is not Reported
an Event, but is not or Logged or Logged
displayed to operator
(Ack Not Required,
Reset Not Required)
NOTE: Bold lines denote default configuration. RTN means Returned To Normal
Primary Operations The primary operations of the Alarm Add-On Instruction are:
IMPORTANT This object has Output Parameters that are directly written by
the HMI or Alarm Server to be compatible with FactoryTalk
Alarms and Events (tag-based) as well as Legacy Alarms
(RSView SE/ME/32). Output Parameters directly written by the
HMI are:
Ack (Acknowledgment, set by the HMI when the Alarm is
Acknowledged)
Disabled (set by the HMI to disable the Alarm, cleared to
enable the Alarm
Suppressed (set by the HMI when it is not displaying the
Alarm, cleared when unsuppressed
For Factory Talk Alarm and Events Tag Alarms, the alarm must
be configured with:
Acknowledge Required
Not Latched
(Legacy alarms are not configurable with those options.)
The P_Alarm instruction handles automatic acknowledgement
(Cfg_AckReqd = 0) and latching (Cfg_ResetReqd = 1).
The alarm must be configured with acknowledge required.
Legacy alarms are not configurable for Ack Not Required. The
P_Alarm instruction handles automatic acknowledge when
configured with Cfg-AckReqd = 0.
The alarm is still sent to the Factory Talk Alarm and Event Server,
where it is logged.
The alarm is not displayed in the Alarm Banner or Alarm Summary.
Since it is not displayed, the operator does not need to acknowledge or
reset it.
Operating Modes The Alarm Add-On Instruction has no Modes. It has Program, Operator, and
Maintenance Commands, but since this object controls no equipment, these
are accepted from each source at any time.
Standalone vs. Embedded This instruction may be used standalone, with the abnormal condition simply
written or wired to the Input (Inp) pin, or it may be embedded within another
in Other AOIs Add-On Instruction to provide Alarming for some condition. For example, a
Motor instruction may have P_Alarm AOIs for Failure to Start, Failure to Stop
and other conditions.
The following output parameters should be wired out or aliased to Status bits
of the containing object to make the signals available for other logic:
The Alarm Input (Inp) can also be wired or aliased to a Status bit of the
containing instruction to provide status of the initiating condition of the
Alarm (in addition to the Alarm itself) outside the containing instruction.
Refer to HMI Reference on page 17 for Faceplate pieces that can be used
within other instructions' Faceplates for their Alarms.
Execution The following table explains the handling of instruction execution conditions.
Condition Description
EnableIn False (False Rung) Processing for EnableIn False (False Rung) is
handled the same as the main Logic Routine except
that the state of Inp (the Input) is inverted. This
allows the P_Alarm Add-On Instruction in a Ladder
Diagram instance to have its input mapped by using
the rung condition instead of using a separate
branch or rung. Inp should be set to 1 when using
the on-rung mapping. The illustrations in
Implementation Using the EnableIn FALSE Feature
show both mapping methods.
Powerup (Pre-scan, First Scan) No Powerup, Pre-scan or First Scan handling is
required or provided. The internal timers reset on
powerup, but the outputs are retained through a
power cycle or Run - Program - Run cycle.
Postscan (SFC Transition) No SFC Postscan logic is provided.
Implementation Using the For the convenience of Ladder Diagram programmers, the P_Alarm
instruction can be used in a Ladder Diagram Routine with the input condition
EnableIn FALSE Feature carried by the Rung-In condition instead of being mapped on a separate
branch.
Revision Compatibility The P_Alarm Add-On Instruction is marked with revision information in
RSLogix 5000 software, as are any instructions which contain it. When you
import an instruction containing the P_Alarm instruction, the compatible
P_Alarm instruction is also imported.
Component Example
The Add-On Instruction in RSLogix 5000 has
revision information visible when the
instruction is selected in the Controller
Organizer.
The Minor Revision is the second number, after the period and before the
hyphen or space.
Information after the hyphen or space indicates the Tweak Revision. The
Instruction and Faceplate do not have to have the same Tweak Revision to be
compatible.
In the table above, the P_AIn Add-On Instruction (which uses P_Alarm)
and its Faceplate as shown are compatible because they have the same
Major.Minor (1.1).
Configuration Options
Configuration Parameters Enter the appropriate values from the following table into the P_Alarm
Instructions configuration parameters to configure it for your application.
Use the containing instructions HMI Faceplate or the RSLogix 5000 Tag
Monitor function to set the applicable Configuration Parameter(s).
IMPORTANT
1 = Information (blue)
2 = Warning (yellow)
3 = Exception (red)
4 = Fault (magenta)
The descriptions in the tables below show how these data elements are used
with this instruction.
Execution Execution parameters are included with every Add-On Instruction. See the
Logix5000 Controllers Add-On Instructions Programming Manual,
publication 1756-PM010, for more information on these data elements.
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
EnableIn BOOL Input 1 Enable Input:
1 = Perform alarm processing, such as
delay, latch/reset, acknowledge,
enable/disable, inhibit/uninhibit,
and suppress/unsuppress.
0 = Perform Alarm processing, but
invert Alarm Input signal (Inp) for
use with the rung-in condition in
Ladder Diagram routines.
EnableOut BOOL Output 0 Enable Output:
The EnableOut signal is not
manipulated by this instruction. Its
output state always reflects the
EnableIn input state.
Inputs Input data elements are used connect field inputs from I/O modules or signals
from other objects to the P_Alarm instruction. Each Input used should have
(Inp_) mapping logic or a function block wire to get the input value from the input
card or other instruction every scan.
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
Inp BOOL Input 1 Level Alarm Condition Input 1 = Alarm Cfg_AlmMinOnT
Configurations Configuration data elements are used to set configurable capabilities, features
and functions of the P_Alarm Instruction.
(Cfg_)
The following Configuration data may be modified by controller application
logic, using HMI Faceplate, or using the Tag Monitor in RSLogix 5000
software.
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
Cfg_Exists BOOL Input 1 Level 1 = Alarm configured to exist
0 = Does not exist; do not scan
Cfg_ResetReqd BOOL Input 0 Level 1 = Reset required to clear Alarm
Program Commands Program Command data elements are used by application logic to request
P_Alarm Instruction actions, such as acknowledging, inhibiting or resetting
(PCmd_) alarms. Application logic sets the Program Command to 1 to request the
action; the P_Alarm Instruction reads the 1, clears it to 0, then performs the
requested action if the action can be performed.
Alarm Commands
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
PCmd_Reset BOOL Input 0 Edge Program Command to Reset latched Cfg_ResetReqd
Alarm
PCmd_Ack BOOL Input 0 Edge Program Command to Acknowledge Cfg_AckReqd
Alarm
PCmd_Inhibit BOOL Input 0 Edge Program Command to Inhibit Alarm
(force Alm to 0)
PCmd_Uninhibit BOOL Input 0 Edge Program Command to Uninhibit Alarm
Operator Commands, Operator Commands and Maintenance Commands are used by the operator at
the HMI to request instruction actions, such as acknowledging, disabling,
Maintenance Commands, suppressing or resetting alarms. These Commands are set (latched) by the
Command Readies HMI and are read and then cleared (unlatched) and acted upon by the
(OCmd_, MCmd_, Rdy_) instruction, allowing a many-to-one relationship between HMI requestors and
each Command. Commands are implemented as public Input Parameters of
the instruction.
Alarm Commands
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
OCmd_Reset BOOL Input 0 Edge Operator Command to Reset latched Cfg_ResetReqd
Alarm
OCmd_Ack BOOL Input 0 Edge Operator Command to Acknowledge Cfg_AckReqd
Alarm
OCmd_Suppress BOOL Input 0 Edge Operator Command to Suppress Alarm
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
OCmd_Unsuppress BOOL Input 0 Edge Operator Command to Unsuppress
Alarm
MCmd_Disable BOOL Input 0 Edge Maintenance Command to Disable
Alarm (force Alm to 0)
MCmd_Enable BOOL Input 0 Edge Maintenance Command to Enable
Alarm
Alarm Readies
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
Rdy_Reset BOOL Output 0 1=Ready to receive OCmd_Reset
(enables HMI button)
Rdy_Ack BOOL Output 0 1=Ready to receive OCmd_Ack
(enables HMI button)
Rdy_Suppress BOOL Output 0 1=Ready to receive OCmd_Suppress
(enables HMI button)
Rdy_Unsuppress BOOL Output 0 1=Ready to receive OCmd_Unsuppress
(enables HMI button)
Rdy_Disable BOOL Output 0 1=Ready to receive MCmd_Disable
(enables HMI button)
Rdy_Enable BOOL Output 0 1=Ready to receive MCmd_Enable
(enables HMI button)
Values Value data elements contain process or device variables, the notification level
for alarm animation, and the current accepted values of any Program,
(Val_) Operator or Maintenance Settings) for the P_Alarm instruction. The HMI
displays these Values, and they are available for use by other application logic.
Associated
Data Configuration
Name: Type: Usage: Default: Style: Description: Parameter
Val_Notify SINT Output 0 Decimal Current Alarm Level and Cfg_Severity
Acknowledgement (enumeration):
0=No alarm
1=Alarm cleared, not acknowledged
2=Information alarm
3=Unacknowledged Info. alarm
4=Warning alarm
5=Unacknowledged Warning alarm
6=Exception alarm
7=Unacknowledged Exception alarm
8=Fault alarm
9=Unacknowledged Fault alarm
Status Status data elements contain process or device states, Mode status and Alarm
status. The HMI displays these Status points, and they are available for use by
(Sts_) other application logic.
Alarm Status
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
Alm BOOL Output 0 Alarm Output: Cfg_ResetReqd
1 = In Alarm Cfg_AlmMinOnT
Ack BOOL Output 1 Alarm acknowledged status: Cfg_AckReqd
1 = Acknowledged
Inhibited BOOL Output 0 1 = Alarm Inhibited by logic (will not be
sent)
Suppressed BOOL Output 0 1 = Alarm Suppressed (not visible on
HMI)
Disabled BOOL Output 0 1 = Alarm Disabled by Operator (will
not be sent)
Associated
Configuration
Name: Data Type: Usage: Default: Style: Description: Parameter
Sts_Err BOOL Output 0 1 = Error in Config: see Err_bits for
reason
Err_MinDuration BOOL Output 0 1 = Error in Config: Invalid Min Duration
(use 0 to 2147483)
Err_Severity BOOL Output 0 1 = Error in Config: Invalid Severity (use
1 to 4)
HMI Reference
This chapter describes the HMI Graphic Symbols and Faceplates provided for
human-machine interface (HMI) for the P_Alarm Instruction.
Graphic Symbols The P_Alarm instruction is usually used within other device instructions to
provide alarm functions. This section describes the alarm indicators that
typically appear on the containing instructions Graphic Symbols.
Alarm Indicator
A single Alarm Indicator will appear on a devices graphic symbol when any of
its alarms are active, or when any alarms are inhibited, disabled or suppressed.
The graphic symbol has a color changing alarm border that blinks on
unacknowledged alarm.
Alarm Indicator
Alarm Border
In an active alarm condition, the color of the alarm bell symbol indicates the
highest active alarm severity, and the alarm border and label background blink
if acknowledgement of any alarm condition is required.
Symbol Description
Black I in white box with black Alarm Inhibit: an alarm is Inhibited by the
border Program, Disabled by Maintenance or
Suppressed by the Operator.
White bell, border, and text Return to Normal (no Alarm condition), but a
background previous Alarm has not been acknowledged
No symbol or border displayed, text is on No Alarm or Alarm Inhibit condition, and all
normal (light gray) background, not blinking Alarms are Acknowledged
TIP
When the Invalid Configuration Indicator appears, you can find what
configuration setting is invalid by following the indicators like a trail of
breadcrumbs. Click the Graphic Symbol to call up the Faceplate. The Invalid
Configuration indicator will appear 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 will be flagged with this indicator or appear in a
magenta box.
For instructions which use the P_Alarm Instruction, the Invalid Configuration
Indicator appears when these alarm configuration errors are made:
Faceplate The P_Alarm instruction does not have its own Faceplate; instead, device
Faceplates include an Alarms tab and an Alarm Configuration tab. The tab
icons at the top of the Faceplate are used to navigate to the Alarms tab and
Alarm Configuration tab. The Alarms tab icon is animated, using the same
colors as the Alarm Indicator on the devices Graphic Symbol.
Maintenance Alarm Configuration Help
There is also an Alarm Help display, which can be called up from the help
screens of objects that use the P_Alarm instruction.
Alarms Tab
Acknowledge Button
The Alarm Display Bar also has indicators to show when the alarm is disabled,
inhibited, or suppressed.
Alarm Suppressed
(by Operator)
Alarm Inhibited
(by Logic)
Alarm Disabled
(by Maintenance)
The alarm severity associated with each bar color is shown in the following
table.
Color Severity
Magenta Fault
Red Exception
Yellow Warning
Blue Information
Background (Light Gray) No alarm
The Reset and Acknowledge All Alarms button is enabled if any Alarm
required reset or acknowledgement.
The following table shows the functions typically available on the Alarm
Configuration tab for an instruction which uses P_Alarm instances for its
alarms.
IMPORTANT
IMPORTANT
Icon Meaning
In Alarm
An Instruction which has a Help Faceplate and which uses the P_Alarm
instruction will have a button on its Help Faceplate to call up the Alarm
Faceplate Help display.
Notes:
For an additional level of technical phone support for installation, configuration, and troubleshooting, we offer
TechConnectSM support programs. For more information, contact your local distributor or Rockwell Automation
representative, or visit http://www.rockwellautomation.com/support/.
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/support/americas/phone_en.html, or contact your local Rockwell
Automation representative.
Rockwell Automation tests all of its products to 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 erenky, stanbul, Tel: +90 (216) 5698400
www.rockwel lautomation.com