Syslib rm028 - en P (P - D4SD) PDF
Syslib rm028 - en P (P - D4SD) PDF
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
Preface
Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Required Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Controller File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Visualization Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Controller Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Discrete 2-, 3-, or 4-state Device Input Structure . . . . . . . . . . . . . . . . 11
Discrete 2-, 3-, or 4-state Device Output Structure . . . . . . . . . . . . . . 16
Discrete 2-, 3-, or 4-state Device Local Configuration Tags. . . . . . . 20
Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Execution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Display Elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Status/Quality Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Maintenance Bypass Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Alarm Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Mode Indicators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Using Display Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Quick Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Faceplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Operator Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Maintenance Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Engineering Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Diagnostics Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Alarms Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Discrete 2-, 3-, 4-state Device Faceplate Help . . . . . . . . . . . . . . . . . . . 54
Table of Contents
Notes:
Preface
This document is updated throughout for version 3.1 of the Rockwell
Automation Library of Process Objects. Changes for this revision are marked by
change bars shown in the right margin.
Page
Changed title from 'PlantPAx Library of Process Objects' to 'Rockwell Automation Library of Process
Objects'
Front Cover
Changed version of Rockwell Automation Library of Process Objects from 3.0 to 3.1
5, 9, 10
6, 9
Visualization Files - added Important note concerning the order in which files must be imported
11
16
22
22
28
31
33
Faceplate - replaced images for tabs, Operator, Maintenance, Engineering, and Alarms
Operator tab:
added Interlocks and Permissives indicators table
added Alarm Locations image
40
Engineering tab - changed 'Mode Configuration Message Box' to 'Mode Configuration Display'
46, 47
51
Alarm Color Definitions table - changed level 4 alarm severity from 'Highest' to 'Urgent'
53
54
Preface
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
Description
The P_D4SD (Discrete 2-, 3-, 4-state Device) Add-On Instruction controls
and monitors feedback from a discrete 2-state, 3-state, or 4-state device in a
variety of modes, monitoring for fault conditions. These devices include
multiple-speed motors or multiple-position valves. The global objects and
faceplate shown below are examples of the graphical interface tools used with this
instruction.
Add-On Instruction
Faceplate
Global Objects
Guidelines
Functional Description
The Discrete 2-, 3-, or 4-state Device Add-On Instruction provides the
following capabilities:
Provides configuration to have two, three, or four selectable states for the
device.
Provides Operator and Program Commands to select one of the two,
three, or four states of the device.
Controls four discrete outputs, with configurable states of each output in
the various device states. Each output can be set, cleared, or left in last state
in a given device state.
Monitors four discrete feedback inputs, with configurable states
(including must be on, must be off , and don't care) for each input in the
various device states for monitoring the actual position of the device.
Provides configurable text labels for each of the states.
When feedback inputs are used, detects failure to reach the target state,
after a configurable time, and alarms the failure. Optionally sheds to the
default state (state 0) on a feedback failure.
Monitors Permissive conditions that allow commanding the device to each
state.
Monitors Interlock conditions that return the device to its
default state (state 0).
Provides simulation of a normal working device, while holding the outputs
to the real device de-energized, for use in testing or operator training.
Monitors I/O communication status, providing an alarm on an I/O fault.
Optionally sheds to the default state on an I/O fault condition.
Provides an Available Status when in Program mode and operating
normally for use by automation logic to determine if the logic can
manipulate the device.
Operates in Hand, Maintenance, Override, Program, and
Operator modes. (See Modes on page 21.)
Rockwell Automation Publication SYSLIB-RM028C-EN-P - August 2014
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.
Required Files
Controller File
The P_D4SD_3_1-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
The following files for this Add-On Instruction can be downloaded from the
Product Compatibility and Download Center at
http://www.rockwellautomation.com/rockwellautomation/support/pcdc.page.
IMPORTANT
Files must be imported in the following order: image files, then global object
files, and then graphic files. This order is required to properly configure the
visualization files.
File Type
Description
Graphics - Displays
GFX
(RA-BAS) P_D4SD-Config
(RA-BAS-ME) P_D4SD-Config
(RA-BAS) P_D4SD-Faceplate
(RA-BAS-ME) P_D4SD-Faceplate
(RA-BAS) P_D4SD-Help
(RA-BAS-ME) P_D4SD-Help
(RA-BAS) P_D4SD-Quick
(RA-BAS-ME) P_D4SD-Quick
(RA-BAS) Common-AnalogEdit
N/A
(RA-BAS) P_Alarm-Faceplate
(RA-BAS-ME) P_Alarm-Faceplate
(RA-BAS) P_Alarm-Help
(RA-BAS-ME) P_Alarm-Help
(RA-BAS) P_Mode-Help
(RA-BAS-ME) P_Mode-Help
(RA-BAS) P_Mode-Config
(RA-BAS-ME) P_Mode-Config
File Type
Description
Graphics - Global
Objects
GGFX
(RA-BAS ME) P_D4SD Motor Graphics Library P_D4SD Motor Display elements used on
process graphics.
Graphics - Images
PNG
HMI Tags
CSV
N/A
FTVME_PlantPAxLib_Tags_3_1_00.csv (1)
(1) The service release number (boldfaced) can change as service revisions are created.
10
This section describes the parameter references for this Add-On Instruction.
Controller Code
Data
Type
EnableIn
Inp_FdbkA
Alias For
Default
Description
BOOL
Ladder Diagram:
If the rung-in condition is true, the instructions Logic routine executes. If the
rung-in condition is false, the instructions EnableInFalse routine executes.
Function Block Diagram:
If true, or not connected, the instructions Logic routine executes. If the
parameter is exposed as a pin and wired, and the pin is false, the instructions
EnableInFalse routine executes.
Structured Text:
No effect. The instructions Logic routine executes.
BOOL
Inp_DeviceFault
BOOL
Inp_PermOK0
BOOL
BOOL
Inp_IntlkOK
BOOL
1 = Interlocks OK.
0 = Not OK, go to State 0.
Inp_NBIntlkOK
BOOL
Inp_FdbkB
Inp_FdbkC
Inp_FdbkD
Inp_PermOK1
Inp_PermOK2
Inp_PermOK3
Inp_NBPermOK0
Inp_NBPermOK1
Inp_NBPermOK2
Inp_NBPermOK3
11
Data
Type
Inp_IOFault
Alias For
Default
Description
BOOL
Inp_Sim
BOOL
Inp_Hand
BOOL
Mode.Inp_Hand
Inp_Ovrd
BOOL
Mode.Inp_Ovrd
Inp_OvrdCmd
DINT
Inp_Reset
BOOL
Cfg_St0onShed
BOOL
1 = Go to State 0 on Shed.
0 = Hold position on Shed.
Cfg_NumStates
DINT
Cfg_OutSt0Write
SINT
2#0000_1111
Cfg_OutSt0State
2#0000_0001
Cfg_OutSt1Write
2#0000_1111
Cfg_OutSt1State
2#0000_0010
Cfg_OutSt2Write
2#0000_1111
Cfg_OutSt2State
2#0000_0100
Cfg_OutSt3Write
2#0000_1111
Cfg_OutSt3State
2#0000_1000
Cfg_FdbkSt0Check
SINT
2#0000_0000
Cfg_FdbkSt0State
2#0000_0001
Cfg_FdbkSt1Check
2#0000_0000
Cfg_FdbkSt1State
2#0000_0010
Cfg_FdbkSt2Check
2#0000_0000
Cfg_FdbkSt2State
2#0000_0100
Cfg_FdbkSt3Check
2#0000_0000
Cfg_FdbkSt3State
2#0000_1000
Cfg_HasPerm0Obj
BOOL
BOOL
1 = Tells HMI an interlock object (for example, P_Intlk) is used for Inp_IntlkOK
and navigation to the interlock objects faceplate is enabled.
IMPORTANT: The name of the interlock object in the controller must be this
object's name with the suffix '_Intlk'. For example, if your P_D4SD object has
the name 'D4SD123', then its interlock object must be named 'D4SD123_Intlk'.
Cfg_HasPerm1Obj
Cfg_HasPerm2Obj
Cfg_HasPerm3Obj
Cfg_HasIntlkObj
12
Data
Type
Alias For
Default
Description
Cfg_PCmdClear
BOOL
Mode.Cfg_PCmdClear
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.
Cfg_ProgDefault
BOOL
Mode.Cfg_ProgDefault
This parameter defines the default mode. When this parameter is 1, the mode
defaults to Program if no mode is being requested. When this parameter is 0,
the mode defaults to Operator if no mode is being requested.
IMPORTANT: Changing this parameter online can cause unintended mode
changes.
Cfg_OperSt0Prio
BOOL
Cfg_OCmdResets
BOOL
Cfg_OvrdPermIntlk
BOOL
Cfg_ShedOnFail
BOOL
1 = Go to shed state and alarm on Fail to reach position, Device fault, or I/O
fault.
0 = Alarm only on fail, Device fault, or I/O fault.
Shed state is determined by configuration parameter Cfg_St0onShed.
1 = Fail to Reach State alarm, Device Fault alarm, Interlock Trip alarm, and I/O
Fault alarm exist and are checked.
Fail.Cfg_Severity
1000
Cfg_DeviceFaultSeverity
DeviceFault.Cfg_Severity
1000
Cfg_IntlkTripSeverity
IntlkTrip.Cfg_Severity
500
Cfg_IOFaultSeverity
IOFault.Cfg_Severity
1000
These parameters determine the severity of each alarm. This drives the color
and symbol that are used to indicate alarm status on the faceplate and global
object.
The following are valid values:
1250 = Low
251500 = Medium
501750 = High
7511000 = Urgent
IMPORTANT: For FactoryTalk View software version 7.0, these severity
parameters drive only the indication on the global object and faceplate. The
Alarms and Events definition of severity drives the color and symbol that is
used on the alarm banner and alarm summary as well as the value returned by
FactoryTalk Alarms and Events display commands.
Cfg_ShedOnDeviceFault
Cfg_ShedOnIOFault
Cfg_HasFailAlm
BOOL
Fail.Cfg_Exists
Cfg_HasDeviceFaultAlm
DeviceFault.Cfg_Exists
Cfg_HasIntlkTripAlm
IntlkTrip.Cfg_Exists
Cfg_HasIOFaultAlm
IOFault.Cfg_Exists
Cfg_FailResetReqd
BOOL
Fail.Cfg_ResetReqd
Cfg_DeviceFaultResetReqd
DeviceFault.Cfg_ResetReqd
Cfg_IntlkTripResetReqd
IntlkTrip.Cfg_ResetReqd
Cfg_IOFaultResetReqd
IOFault.Cfg_ResetReqd
Cfg_FailAckReqd
BOOL
Fail.Cfg_AckReqd
Cfg_DeviceFaultAckReqd
DeviceFault.Cfg_AckReqd
Cfg_IntlkTripAckReqd
IntlkTrip.Cfg_AckReqd
Cfg_IOFaultAckReqd
IOFault.Cfg_AckReqd
Cfg_FailSeverity
INT
13
Data
Type
Cfg_OutAPulseT
Alias For
Default
Description
REAL
0.0
Cfg_SimFdbkT
DINT
Cfg_FailT
DINT
10
Time after new state requested to reach that state before fault (seconds).
PSet_Owner
DINT
PCmd_St0
BOOL
When Cfg_PCmdClear is 1:
Set PCmd_St0 to 1 to set the device to State 0
Set PCmd_St1 to 1 to set the device to State 1
Set PCmd_St2 to 1 to set the device to State 2
Set PCmd_St3 to 1 to set the device to State 3
These parameters reset automatically
When Cfg_PCmdClear is 0:
State 0 is the default State; PCmd_St0 is not used
Set PCmd_St1, PCmd_St2, and PCmd_St3 to 0 to set the device to State 0
Set PCmd_St1 to 1 to set the device to State 1
Set PCmd_St2 to 1 to set the device to State 2
Set PCmd_St3 to 1 to set the device to State 3
These parameters do not reset automatically
When Cfg_PCmdClear is 1:
Set PCmd_Acq to 1 to Acquire
Set PCmd_Rel to 1 to Release
These parameters reset automatically
When Cfg_PCmdClear is 0:
Set PCmd_Acq to 1 to Acquire
Set PCmd_Acq to 0 to Release
PCmd_Rel is not used
These parameters do not reset automatically
When Cfg_PCmdClear is 1:
Set PCmd_Lock to 1 to Lock
Set PCmd_Unlock to 1 to Unlock
These parameters reset automatically
When Cfg_PCmdClear is 0:
Set PCmd_Lock to 1 to Lock
Set PCmd_Lock to 0 to Unlock
PCmd_Unlock is not used
These parameters do not reset automatically
Cfg_OutBPulseT
Cfg_OutCPulseT
Cfg_OutDPulseT
PCmd_St1
PCmd_St2
PCmd_St3
PCmd_Acq
BOOL
PCmd_Rel
PCmd_Lock
Mode.PCmd_Rel
BOOL
PCmd_Unlock
Mode.PCmd_Lock
Mode.PCmd_Unlock
PCmd_Reset
BOOL
PCmd_FailAck
BOOL
PCmd_DeviceFaultAck
Mode.PCmd_Acq
Fail.PCmd_Ack
DeviceFault.PCmd_Ack
PCmd_IntlkTripAck
IntlkTrip.PCmd_Ack
PCmd_IOFaultAck
IOFault.PCmd_Ack
14
Data
Type
Alias For
Default
Description
PCmd_FailSuppress
BOOL
Fail.PCmd_Suppress
When Cfg_PCmdClear is 1:
Set PCmd_<Alarm>Suppress to 1 to suppress alarm
Set PCmd_<Alarm>Unsuppress to 1 to unsuppress alarm
These parameters reset automatically
When Cfg_PCmdClear is 0:
Set PCmd_<Alarm>Suppress to 1 to suppress alarm
Set PCmd_<Alarm>Suppress to 0 to unsuppress alarm
PCmd_<Alarm>Unsuppress is not used
These Parameters do not reset automatically
PCmd_DeviceFaultSuppress
DeviceFault.PCmd_Suppress
PCmd_IntlkTripSuppress
IntlkTrip.PCmd_Suppress
PCmd_IOFaultSuppress
IOFault.PCmd_Suppress
PCmd_FailUnsuppress
BOOL
Fail.PCmd_Unsuppress
PCmd_DeviceFaultUnsuppress
DeviceFault.PCmd_Unsuppress
PCmd_IntlkTripUnsuppress
IntlkTrip.PCmd_Unsuppress
PCmd_IOFaultUnsuppress
IOFault.PCmd_Unsuppress
PCmd_FailUnshelve
BOOL
Fail.PCmd_Unshelve
BOOL
OCmd_Bypass
BOOL
OCmd_Check
BOOL
MCmd_Disable
BOOL
MCmd_Enable
BOOL
MCmd_Acq
BOOL
Mode.MCmd_Acq
MCmd_Rel
BOOL
Mode.MCmd_Rel
OCmd_AcqLock
BOOL
Mode.OCmd_AcqLock
OCmd_Unlock
BOOL
Mode.OCmd_UnlockRel
OCmd_Reset
BOOL
Operator command to reset all alarms requiring reset and any latched shed
conditions.
OCmd_ResetAckAll
BOOL
Operator command to reset and acknowledge all alarms and reset any latched
shed conditions.
PCmd_DeviceFaultUnshelve
DeviceFault.PCmd_Unshelve
PCmd_IntlkTripUnshelve
IntlkTrip.PCmd_Unshelve
PCmd_IOFaultUnshelve
IOFault.PCmd_Unshelve
OCmd_St0
OCmd_St1
OCmd_St2
OCmd_St3
15
Data Type
Alias For
Description
EnableOut
BOOL
Enable Output: The EnableOut signal is not manipulated by this instruction. Its output state
always reflects EnableIn Input state.
Out_A
BOOL
Out_B
Out_C
Out_D
16
Data Type
SrcQ_IO
SINT
Alias For
Description
I/O signal source and quality.
SrcQ
Val_Cmd
SINT
Device command:
0 = None
1 = State 0
2 = State 1
3 = State 2
4 = State 3
Val_Sts
SINT
Val_Fault
SINT
Val_Mode
SINT
Val_Owner
DINT
Mode.Val
The current mode is shown with status bits and also as an enumeration Val_Mode as follows:
0 = No mode
1 = Hand
2 = Maintenance
3 = Override
4 = Program (locked)
5 = Operator (locked)
6 = Program (unlocked, Operator is default)
7 = Operator (unlocked, Program is default)
8 = Program (unlocked, Program is default)
9 = Operator (unlocked, Operator is default)
Current object owner ID (0 = not owned).
17
Data Type
Alias For
Description
Val_Notify
SINT
Sts_St0
BOOL
Sts_Moving
BOOL
Sts_Available
BOOL
Sts_Bypass
BOOL
Sts_St1
Sts_St2
Sts_St3
Sts_BypActive
BOOL
Sts_Disabled
BOOL
1 = Device is disabled.
Sts_NotRdy
BOOL
Nrdy_Disabled
BOOL
Sts_MaintByp
BOOL
Sts_AlmInh
BOOL
Sts_Err
BOOL
Nrdy_CfgErr
Nrdy_Intlk
Nrdy_Perm
Nrdy_OperPrio
Nrdy_Fail
Nrdy_IOFault
Nrdy_EqpFault
Nrdy_NoMode
Err_Timer
BOOL
Err_Sim
BOOL
Err_Alarm
BOOL
Sts_Hand
BOOL
Mode.Sts_Hand
Sts_Maint
BOOL
Mode.Sts_Maint
Sts_Ovrd
BOOL
Mode.Sts_Ovrd
Sts_Prog
BOOL
Mode.Sts_Prog
Sts_Oper
BOOL
Mode.Sts_Oper
Sts_ProgOperLock
BOOL
Mode.Sts_ProgOperLock
18
Data Type
Alias For
Description
Sts_NoMode
BOOL
Mode.Sts_NoMode
Sts_MAcqRcvd
BOOL
Mode.Sts_MAcqRcvd
Sts_Fail
BOOL
Fail.Inp
Sts_DeviceFault
DeviceFault.Inp
Sts_IntlkTrip
IntlkTrip.Inp
Sts_IOFault
IOFault.Inp
Alm_Fail
Fail.Alm
Alm_DeviceFault
BOOL
DeviceFault.Alm
Alm_IntlkTrip
IntlkTrip.Alm
Alm_IOFault
IOFault.Alm
Fail.Ack
Ack_DeviceFault
DeviceFault.Ack
Ack_IntlkTrip
IntlkTrip.Ack
Ack_IOFault
IOFault.Ack
Fail.Disabled
Sts_DeviceFaultDisabled
DeviceFault.Disabled
Sts_IntlkTripDisabled
IntlkTrip.Disabled
Sts_IOFaultDisabled
IOFault.Disabled
Ack_Fail
Sts_FailDisabled
Sts_FailShelved
BOOL
BOOL
Fail.Shelved
Sts_DeviceFaultShelved
BOOL
DeviceFault.Shelved
Sts_IntlkTripShelved
IntlkTrip.Shelved
Sts_IOFaultShelved
IOFault.Shelved
Fail.Suppressed
Sts_DeviceFaultSuppressed
DeviceFault.Suppressed
Sts_IntlkTripSuppressed
IntlkTrip.Suppressed
Sts_IOFaultSuppressed
IOFault.Suppressed
Sts_FailSuppressed
Rdy_St0
BOOL
BOOL
Rdy_Bypass
BOOL
Rdy_Check
BOOL
Rdy_Disable
BOOL
Rdy_Enable
BOOL
Rdy_Reset
BOOL
Rdy_ResetAckAll
BOOL
P_D4SD
BOOL
Rdy_St1
Rdy_St2
Rdy_St3
19
Data Type
Default
Description
Cfg_Desc
STRING_40
'Discrete 2, 3 or
4 state Device'
Description for display on HMI. This string is shown in the title bar of the faceplate.
Cfg_Label
STRING_20
'Discrete Device'
Label for graphic symbol displayed on HMI. This string appears on the graphic symbol.
Cfg_St0Text
STRING_8
'Off'
Cfg_St1Text
'On'
Cfg_St2Text
''
Cfg_St3Text
''
Cfg_Tag
20
STRING_20
'P_D4SD'
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_D4SD Add-On Instruction uses the following standard modes,
implemented by using an embedded P_Mode Add-On Instruction.
Graphic Symbol
Description
Operator Mode
Control of the device is owned by the Operator. Operator Commands (OCmd_) and
Operator Settings (OSet_) from the HMI are accepted.
Program Mode
Control of the device is owned by Program logic. Program Commands (PCmd_) and
Program Settings (PSet_) are accepted.
Override Mode
Control of the device is owned by priority logic, superseding Operator and Program
control. Override Inputs (Inp_OvrdCmd and other Inp_OvrdXxxx values) are accepted. If
so configured, bypassable interlocks and permissives are bypassed.
Maintenance Mode
Control of the device is owned by Maintenance. Operator Commands and Settings from
the HMI are accepted. Bypassable interlocks and permissives are bypassed, and device
timeout checks are not processed.
Hand Mode
Control of the device is owned by hardwired logic or other logic outside the instruction.
The instruction tracks the state of the device for bumpless transfer back to one of the
other modes.
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 for more information on
EnableInFalse processing.
21
Alarms
The P_D4SD Instruction uses the following alarms, implemented by using
embedded P_Alarm Add-On Instructions.
Alarm
P_Alarm Name
Description
Interlock Trip
IntlkTrip
I/O Fault
IOFault
Fail
Fail
Device Fault
DeviceFault
Simulation
Simulation in P_D4SD de-energizes the normal outputs and simulates the
feedback of a working device.
You must set the Inp_Sim parameter in the controller to '1' to enable simulation.
The Simulation icon
is displayed at the bottom left of the Operator
faceplate indicating the device is in simulation.
While in simulation, you can set the delay (in seconds) for echoing back that the
device has reached a state (Cfg_SimFdbkT).
When you have finished in simulation, set the Inp_Sim parameter in the
controller to '0' to return to normal operation.
22
Execution
The following table explains the handling of instruction execution conditions.
Condition
Description
Postscan
23
Programming Example
This example uses the P_D4SD Add-On Instruction to control a cooling fan that
has three fixed speeds (low, medium, high) and an off state. This is considered
a 4-state device. In this example, three digital outputs are used to set the speed
setting (when all three are off, the fan is commanded off ) and three digital inputs
provide feedback of the actual fan state (when all three are off, the fan is off ).
In this example, the four cooling fan states are being mapped to the device
as follows:
State 0 = Off
State 1 = Low
State 2 = Medium
State 3 = High
Set the Cfg_NumStates parameter to 4 to indicate this is a four-state device. The
input parameters for states 13 (Inp_FdbkB, Inp_FdbkC, Inp_FdbkD) are
connected to the digital inputs, representing the status of the fan. The output
parameters for states 13 (Out_B, Out_C, Out_D) are connected to the digital
outputs that command the fan to the desired state.
Based on the wiring of the I/O, we can now configure the P_D4SD instruction
how we want to process the outputs to get to the desired state. We can do
this via the following table.
24
Output B
Output C
Output D
State 0
State 1
State 2
State 3
We are setting Output A so it can be used for display purposes even though
Output A is not used by the cooling fan device. The parameter
Cfg_OutSt[x]Write determines which outputs get written for each state. The
parameter Cfg_OutSt[x]State determines the state that gets written. These
parameters are single integers where bit 0 represents output A and bit 3 represents
output D.
These parameters are displayed in binary format as indicated by the prefix 2#. By
using Table 6, we can set the settings as follows:
Cfg_OutSt0Write:
2#0000_1111
Cfg_OutSt0State:
2#0000_0001
Cfg_OutSt1Write:
2#0000_1111
Cfg_OutSt1State:
2#0000_0010
Cfg_OutSt2Write:
2#0000_1111
Cfg_OutSt2State:
2#0000_0100
Cfg_OutSt3Write:
2#0000_1111
Cfg_OutSt3State:
2#0000_1000
We can now repeat this same effort to configure how the P_D4SD instruction
determines actual state based on the field inputs via the following table,.
Table 7 - P_D4SD Example Inputs
Input A
Input B
Input C
Input D
State 0
State 1
State 2
State 3
25
2#0000_1110
Cfg_FdbkSt0State:
2#0000_0000
Cfg_FdbkSt1Check:
2#0000_1110
Cfg_FdbkSt1State:
2#0000_0010
Cfg_FdbkSt2Check:
2#0000_1110
Cfg_FdbkSt2State:
2#0000_0100
Cfg_FdbkSt3Check:
2#0000_1110
Cfg_FdbkSt3State:
2#0000_1000
As this is a cooling fan, if there is a device mismatch or fault, we still want the
logic to command to the desired state. Therefore, Cfg_ShedOnFail and
Cfg_ShedOnDeviceFault are both set to 0.
Lastly, configure the following local configuration tags to drive the text on the
operations faceplate. In this example, the cooling fan P&ID tag is M401. In this
example, they are set as follows:
26
Cfg_Tag:
M401
Cfg_Label:
Cfg_Desc:
Cfg_St0Text:
Stopped
Cfg_St1Text:
Slow
Cfg_St2Text:
Medium
Cfg_St3Text:
Fast
Local tags can be configured through the HMI faceplates or in RSLogix 5000
software 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.
27
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.
Display Elements
Display Element
Description
Three/Four-Way Valve.
The Three/Four-way Valve parameters define the inlet and output
ports of the valve:
No. 110 - Top port open state
No. 111 - Right port open state
No. 112 - Bottom port open state
No. 113 - Left port open state
GO_P_D4SD_3Way_SORt
GO_P_D4SD_3Way_SOLt
GO_P_D4SD_3Way_SOBtm
GO_P_D4SD_3Way_SOTop
GO_P_D4SD_Diverter
GO_P_D4SD_Diverter1
28
Display Element
Description
Two Way Motor-operated Diverter Valve in different positions:
right, left, bottom, and top.
Parameters define the inlet and output ports of the Two-way
Motor-operated Diverter Valve.
GO_P_D4SD_3WayMO_Lt
GO_P_D4SD_3WayMO_Btm
GO_P_D4SD_3WayMO_Top
GO_P_D4SD_R
GO_P_D4SD_U
GO_P_D4SD_D
GO_P_D4SD_Blower_R
GO_P_D4SD_Blower_L
GO_P_D4SD_Blower_U
GO_P_D4SD_Blower_D
GO_P_D4SD_Conveyor-R
Conveyor
29
Display Element
GO_P_D4SD_Inline_U
Description
Inline Motors in different positions: up, left, down, and right.
GO_P_D4SD_Inline_L
GO_P_D4SD_Inline_D
GO_P_D4SD_Inline_R
GO_P_D4SD_Pump_R
GO_P_D4SD_Pump_L
GO_P_D4SD_Pump_U
GO_P_D4SD_Agitator_D
GO_P_D4SD_Mixer_U
Mixer in up position.
GO_P_D4SD_RPump_U
GO_P_D4SD_Fan_D
30
Mode Indicator
Border
Maintenance Bypass
Indicator
Status/Quality
Indicator
Alarm Indicator
Status/Quality
Indicator
Label
Status/Quality Indicators
One of these symbols appears to the left of the graphic symbol or right of the
label when the described condition is true.
Graphic Symbol
Description
Invalid configuration
I/O Fault
Communication uncertain
The device is not ready to operate
Device disabled
No symbol displayed
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 appear in a magenta box.
31
For the Discrete 4-State Device Instruction, the Invalid Configuration indicator
appears under the following conditions:
The position failure check time or any outputs pulse time is set to a value
less than zero or greater than 2,147,483 seconds.
The simulated motion time is set to a value less than zero or greater than
2,147,483 seconds.
An Alarm 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.
TIP
When the Not Ready indicator appears, you can find what condition is
preventing operation by following the indicators. Click the graphic symbol to
open the faceplate. The Not Ready indicator appears next to the appropriate
tab at the top of the faceplate to guide you in finding the condition. When you
navigate to the tab, the condition preventing operation is flagged.
For the Discrete 4-State Device Instruction, the Device Not Ready indicator
appears under the following conditions:
Device has been disabled by Maintenance.
There is a configuration error.
Interlock or Permissive is not OK.
Operator State 0 priority command requires reset.
Device Failure and shed requires reset.
I/O Fault and shed requires reset.
External equipment fault and Fault or Shed requires reset.
Device logic is disabled or there is no mode.
Description
A Maintenance Bypass is active
No symbol displayed
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 Discrete 4-State Device Instruction, the Maintenance Bypass Indicator
appears when Maintenance has bypassed the bypassable interlocks and
permissives.
32
Alarm Indicators
One of these symbols appears to 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.
Table 9 - Alarm Indicators
Symbol
No symbol
Description
No change in color
White
Blue
Yellow
Red
Magenta
No change in color
33
Mode Indicators
One of these symbols appears to the right of the graphic symbol to indicate the
mode of the object.
Graphic Symbol
Description
Transparent
Operator mode (if the default mode is Operator and in Operator mode, the mode indicator
is transparent)
Operator mode (if the default mode is Program)
Operator mode locked
Transparent
Program mode (if the default mode is Program and in Program mode, the mode indicator is
transparent)
Program mode (if the default mode is Operator)
Program mode locked
Override mode
Maintenance mode
Hand mode
No mode
TIP
34
The images provided for the Operator and Program default modes are
completely transparent; therefore, no mode indicators appear if the
device is in its default mode. This behavior can be changed by
replacing these mode indicators with images that are not completely
transparent.
2. In the display file, right-click the global object file and choose Global
Object Parameter Values.
The Global Object Parameter Values dialog box appears.
35
Required
Description
#102
Object tag to point to the name of the associated object Add-On Instruction
in the controller.
#103
Path used for display navigation features to other objects. Include program
scope if tag is a program scope tag.
#110
#111
#112
#113
#120
#121
#122
IMPORTANT
The table above is for the Three/Four Way Valve. Other valves that are
used have similar parameters but different configurations.
3. Type the tag or value in the Value column as specified in the Description
column.
TIP
4. Click OK.
36
Quick Display
The Quick Display screen provides a means for operators to perform simple
interactions with the P_D4SD instruction instance. From the Quick Display, you
can navigate to the faceplate for full access for operation, maintenance, and
configuration.
Faceplate
The P_D4SD 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
Operator
Exit
Diagnostics
Engineering
Alarms
Help
37
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.
The Operator tab shows the following information:
Current Mode (Program, Operator, Override, Maintenance, or Hand)
Requested Modes Indicator (appears only if the Operator or Program
Mode has been superseded by another mode)
Device states
Permissive states
Input Source and Quality indicator (See 'SrcQ' in the Output parameters
table on page 17 for details)
Operator Mode Lock and
Unlock Command Buttons
Mode Indicator
Requested Modes
Indicator
Device State Indicator
Interlocks Indicator and
Navigation Button
Permissives 03 Indicators
and Navigation Buttons
Move To State
Command Buttons
38
The following table shows the functions included on the Operator tab.
Table 10 - Operator Tab Description
Function
Action
Security
Manual Device
Operation (Code B)
Acknowledge Alarms
(Code F)
Normal Operation of
Device (Code A)
None
If the object is configured to have permissive and interlock objects (for example,
Cfg_HasIntlkObj is true), the permissive and interlock indication become
buttons that open the faceplates of the source objects used as a permissive or
interlock (often this is a P_Intlk or P_Perm object). If the object is not
configured in this way, the permissive or interlock are indicators only.
Refer to these publications for more information:
Rockwell Automation Library of Process Objects: Interlock with First Out
and Bypass (P_Intlk) Reference Manual, publication SYSLIB-RM004
Rockwell Automation Library of Process Objects: Permissives with Bypass
(P_Perm) Reference Manual, publication SYSLIB-RM007
39
Interlock Symbol
Description
One or more conditions not OK
Non-bypassed conditions OK
All conditions OK
Interlock Trip
Alarm
40
The following table shows the alarm status on the Operator tab.
Table 11 - Operator Tab Alarm Status
Graphic Symbol
Alarm Status
In Alarm (Active Alarm)
In Alarm and Acknowledged
Out of Alarm but Not Acknowledged
Alarm Suppressed (by Operator) (Alarm is logged but
not displayed)
Alarm Disabled (by Maintenance)
Alarm Shelved (by Operator)
41
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.
Maintenance Mode
Acquire and Release
Command Buttons
Mode Indicator
Requested Modes Indicator
42
The following table shows the functions on page 1 of the Maintenance tab.
Function
Action
Security
Configuration Parameters
Equipment
Maintenance
(Code C)
None
Disable Alarms
Bypass
Permissives
and Interlocks
(Code H)
Cfg_OvrdPermIntlk
43
The following table shows the functions on page 2 of the Maintenance tab.
Table 12 - Maintenance Tab Page 2 Description
44
Function
Action
Security
Configuration Parameters
Time to pulse:
Output A (sec)
Output B (sec)
Output C (sec)
Output D (sec)
Configuration
& Tuning
Maintenance
(Code D)
Cfg_OutAPulseT
Cfg_OutBPulseT
Cfg_OutCPulseT
Cfg_OutDPulseT
Cfg_FailT
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.
The engineering tab is divided into three pages.
Mode Configuration
Button
45
The following table lists the functions on the Engineering tab page 1.
Table 13 - Engineering Tab Page 1 Description
Function
46
Action
Security
Configuration Parameters
None
Description
Cfg_Desc
Label
Engineering
Configuration
(Code E)
Tag
Cfg_Tag
Number of States:
2
3
4
Cfg_NumStates
Clear Program
Commands on
Receipt
Cfg_PCmdClear
Operator command
resets fault
Cfg_OCmdResets
Operator State 0
command available
in any mode
Cfg_OperSt0Prio
Cfg_Label
Cfg_St0Text
Cfg_St1Text
Cfg_St2Text
Cfg_St3Text
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.
47
The following table shows the functions on the Engineering tab page 2.
Table 14 - Engineering Tab Page 2 Description
48
Function
Action
Security
Configuration Parameters
Enable navigation
to North/South/
East/West
Permissive objects
Engineering
Configuration
(Code E)
Cfg_HasPerm0Obj
Cfg_HasPerm1Obj
Cfg_HasPerm2Obj
Cfg_HasPerm3Obj
Action
Security
Configuration Parameters
Enable navigation
to interlock object
Engineering
Configuration
(Code E)
Cfg_HasIntklObj
Outputs and
Feedback
None
This display directs how the P_D4SD instruction commands the device state via
outputs and determines the actual device state via feedback inputs. The first two
columns for output set parameters, Cfg_OutSt[x]Write, and
Cfg_OutSt[x]Value, determine how outputs are written to command to a state.
The second two columns for feedback set parameters, Cfg_FdbkSt[x]Check, and
Cfg_FdbkSt[x]State, determine how the state is interpreted from the
input values.
Changing the parameters requires engineering access (security code E).
49
The following table shows the functions on page 3 of the Engineering tab.
Table 15 - Engineering Tab Page 3 Description
Function
Action
Security
Configuration Parameters
Shed Action:
Go to State 0
Engineering
Configuration
(Code E)
Cfg_St0onShed
Hold State
50
Shed Triggers: On
Device Fault
Cfg_ShedOnDeviceFault
Cfg_ShedOnIOFault
Shed Triggers: On
The device always sheds an Interlock
Failure to Reach State Trip. This item cannot be unchecked.
It is displayed as a reminder that the
Interlock Trip function always
triggers a shed.
Cfg_ShedOnFail
Cfg_SimFdbkT
Diagnostics Tab
The Diagnostic tab provides indications helpful in diagnosing or preventing
device problems, which can include specific reasons a device is 'Not Ready', device
warnings and faults, warning and fault history, and predictive/preventive
maintenance data.
The Diagnostics tab displays possible reasons the device is not ready.
51
Alarms Tab
The Alarms tab displays each configured alarm for the P_D4SDinstruction. 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 Severity
Indicators
Alarm Names
Alarm Acknowledge
Command Button
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 highest active alarms severity, and the icon blinks if any alarm is
unacknowledged or requires reset.
52
Definition
Magenta
Urgent
Red
High
Yellow
Medium
Blue
Urgent
No alarm
Action
Security
Alarm name
None
Acknowledge Alarms
(Code F)
Acknowledge Alarms
(Code F)
The Reset and Acknowledge All Alarms button is enabled, the panel behind the
alarm blinks, and the Alarm Acknowledge button is enabled if the alarm requires
acknowledgment. Click the button with the checkmark to acknowledge the
alarm.
Refer to the Rockwell Automation Library of Process Objects: Common Alarm
Mode (P_Alarm) Reference Manual, publication SYSLIB-RM002, for more
information.
53
54
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
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.
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
Copyright 2014 Rockwell Automation, Inc. All rights reserved. Printed in the U.S.A.