EasyManua.ls Logo

Allen-Bradley LOGIX 5000 User Manual

Allen-Bradley LOGIX 5000
561 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #539 background imageLoading...
Page #539 background image
Common Attributes for Advanced Process Control and Drives Instructions
Chapter 11
Rockwell Automation Publication 1756-RM006K-EN-P - November 2018 539
S:V
Overflow flag
The controller sets the overflow flag when:
The result of a math operation results in an overflow.
For example, adding 1 to a SINT generates an overflow when the
value goes from 127 through -128.
The destination tag is too small to hold the value.
For example, if you try to store the value 123456 to a SINT or INT
tag.
Use the overflow flag to verify the result of an operation is still in
range.
If the data being stored is a string type, S:V is set if the string is too
large to fit into the destination tag.
Tip: If applicable, set S:V with an OTE or OTL instruction.
Click Controller Properties > Advanced tab > Report Overflow
Faults to enable or disable reporting overflow faults.
If an overflow occurs while evaluating an array subscript, a minor
fault is generated and a major fault is generated to indicate the index
is out of range.
The controller sets the
overflow flag when:
The result of a math
operation results in
an overflow.
For example, adding
1 to a SINT
generates an
overflow when the
value goes from
127…-128.
The destination tag
is too small to hold
the value.
For example, if you
try to store the value
123456 to a SINT or
INT tag.
Use the overflow flag to
check that the result of
an operation is still in
range.
A minor fault is
generated anytime an
overflow flag is set.
Tip: If applicable,set S:V
with an OTE or OTL
instruction.\
S:C
Carry flag
The controller sets the carry flag when the result of a math operation
resulted in the generation of a carry out of the most significant bit.
Only the ADD and SUB instructions, and not the + and operators,
with integer values affect this flag.
The controller sets the
carry flag when the
result of a math
operation resulted in
the generation of a
carry out of the most
significant bit.
S:MINOR
Minor fault flag
The controller sets the minor fault flag when there is at least one
minor program fault.
Use the minor fault tag to test if a minor fault occurred. This bit only
triggers by programming faults, such as overflow. It is not triggered
by a battery fault. The bit clears at the beginning of every scan.
Tip: If applicable, explicitly set S:MINOR with an OTE or OTL
instruction.
The controller sets the
minor fault flag when
there is at least one
minor program fault.
Use the minor fault flag
to test if a minor fault
occurred and take
appropriate action. This
bit is triggered only by
programming faults,
such as overflow. It is
not triggered by a
battery fault. The bit
clears at the beginning
of every scan.
Tip: If applicable,
explicitly set S:MINOR
with an OTE or OTL
instruction.

Table of Contents

Other manuals for Allen-Bradley LOGIX 5000

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley LOGIX 5000 and is the answer not in the manual?

Allen-Bradley LOGIX 5000 Specifications

General IconGeneral
Controller TypeProgrammable Automation Controller (PAC)
Communication ProtocolsEtherNet/IP, ControlNet, DeviceNet
Programming SoftwareStudio 5000
Programming LanguagesLadder Logic, Structured Text, Function Block Diagram, Sequential Function Chart
Supported I/OAnalog
Power Supply24V DC, 120/240V AC (depending on module)
Operating Temperature0°C to 60°C (32°F to 140°F)
Relative Humidity5% to 95% non-condensing
RedundancySupported with specific modules and configurations
CertificationsUL, CE

Summary

Important user information

Global changes

Details on global changes made in this release of the manual.

New or enhanced features

Information on new and updated features introduced in this manual.

Preface

Studio 5000 environment

Describes the Studio 5000 Automation Engineering & Design Environment.

Additional resources

Lists documents containing additional information on Rockwell Automation products.

Purpose of this manual

Explains the manual provides details on available instructions and guidance for equipment phase instructions.

Legal Notices

Contains copyright notice, End User License Agreement (EULA), and open source licenses.

Chapter 1 Process Control Instructions

Alarm (ALM)

Provides alarming for any analog signal.

Discrete 3-State Device (D3SD)

Controls discrete devices with three possible states (e.g., fast/slow/off).

Discrete 2-State Device (D2SD)

Controls discrete devices with two possible states (e.g., on/off).

Deadtime (DEDT)

Performs a delay of a single input with selectable deadtime.

Function Generator (FGEN)

Converts input based on a piece-wise linear function.

Lead-Lag (LDLG)

Provides phase lead-lag compensation for an input signal.

Enhanced PID (PIDE)

Provides enhanced capabilities over standard PID with velocity form algorithm.

Position Proportional (POSP)

Opens or closes device by pulsing contacts with pulse width proportional to position difference.

Ramp/Soak (RMPS)

Provides alternating ramp and soak periods to follow a temperature profile.

Scale (SCL)

Converts unscaled input to floating point value in engineering units.

Split Range Time Proportional (SRTP)

Drives heating/cooling digital outputs with periodic pulses based on PID output.

Totalizer (TOT)

Provides time-scaled accumulation of an analog input value.

Coordinated Control (CC)

Controls a single process variable by manipulating up to three control variables.

Internal Model Control (IMC)

Controls a single process variable using an internal model and compared error signal.

Modular Multivariable Control (MMC)

Controls two process variables using up to three control variables.

Chapter 2 Drives Instructions

Integrator (INTG)

Implements an integral operation.

Proportional + Integral (PI)

Provides two methods of operation for proportional and integral gains.

Pulse Multiplier (PMUL)

Provides interface from position input module by computing input change from scan to scan.

S-Curve (SCRV)

Performs a ramp function with an added jerk rate.

Second-Order Controller (SOC)

Provides a gain term, first order lag, and second order lead.

Up/Down Accumulator (UPDN)

Adds and subtracts two inputs into an accumulated value.

HMI Button Control (HMIBC)

Enables operators to initiate machine control operations via PanelView 5500.

Chapter 3 Filter Instructions

Derivative (DERV)

Calculates the amount of change of a signal over time in per-second units.

High Pass Filter (HPF)

Provides a filter to attenuate input frequencies below the cutoff frequency.

Low Pass Filter (LPF)

Provides a filter to attenuate input frequencies above the cutoff frequency.

Notch Filter (NTCH)

Provides a filter to attenuate input frequencies at the notch frequency.

Second-Order Lead Lag (LDL2)

Provides a filter with a pole pair and a zero pair.

Chapter 4 Select_Limit Instructions

Enhanced Select (ESEL)

Lets you select one of as many as six inputs based on selection options.

High/Low Limit (HLL)

Limits an analog input between two values (high/low, high, or low limits).

Multiplexer (MUX)

Selects one of eight inputs based on the selector input.

Rate Limiter (RLIM)

Limits the amount of change of a signal over time.

Select (SEL)

Uses a digital input to select one of two inputs.

Selected Negate (SNEG)

Uses a digital input to select between the input value and its negative.

Selected Summer (SSUM)

Uses Boolean inputs to select real inputs to be algebraically summed.

Chapter 5 Statistical Instructions

Moving Average (MAVE)

Calculates a time average value for the In signal, optionally supporting weights.

Maximum Capture (MAXC)

Retains the maximum value of the input over time and allows re-establishment of maximum.

Minimum Capture (MINC)

Retains the minimum value of the input over time and allows re-establishment of minimum.

Moving Standard Deviation (MSTD)

Calculates a moving standard deviation and average for the In signal.

Chapter 6 Logical and Move Instructions

D Flip-Flop (DFF)

Sets Q output to D input state on clock transition; QNot is opposite of Q.

JK Flip-Flop (JKFF)

Complements Q and QNot outputs when Clock input transitions from cleared to set.

Reset Dominant (RESD)

Uses Set and Reset inputs to control latched outputs; Reset has precedence.

Set Dominant (SETD)

Uses Set and Reset inputs to control latched outputs; Set has precedence.

Chapter 7 Equipment Phase Instructions

Attach to Equipment Phase (PATT)

Lets a program take ownership of an equipment phase.

Detach from Equipment Phase (PDET)

Relinquishes ownership of an equipment phase.

Equipment Phase Clear Failure (PCLF)

Clears the failure code of an equipment phase.

Equipment Phase Command (PCMD)

Transitions an equipment phase to the next state or sub state.

Equipment Phase External Request (PXRQ)

Initiates communication with FactoryTalk Batch software.

Equipment Phase Paused (PPD)

Sets up breakpoints within the logic of an equipment phase.

Equipment Phase New Parameters (PRNP)

Clears the NewInputParameters bit of an equipment phase.

Equipment Phase Override Command (POVR)

Gives a Hold, Stop, or Abort command to an equipment phase, regardless of ownership.

Chapter 10 Structured Text Programming

Structured Text Syntax

Explains statements, case sensitivity, tabs, and components like expressions and comments.

Structured Text Components: Comments

Details how to add comments using //, (* *), or /* */ formats.

Structured Text Components: Assignments

Explains using the assignment operator := to change values in tags.

Structured Text Components: Expressions

Describes how to use tag names, literals, functions, and operators in expressions.

Structured Text Components: Instructions

Explains how structured text statements can be instructions and their execution.

Structured Text Components: Constructs

Details program constructs like IF...THEN, CASE...OF, FOR...DO, WHILE...DO, REPEAT...UNTIL.

CASE...OF

Selects actions based on a numerical value using a case statement.

FOR...DO

Executes an action a number of times before doing anything else.

IF...THEN

Completes an action when specific conditions occur.

REPEAT...UNTIL

Continues performing an action until conditions are true.

WHILE_DO

Continues performing an action while certain conditions are true.

Chapter 11 Common Attributes for Advanced Process Control and Drives Instructions

Common Attributes

Guidelines for common attributes for Advanced Process Control and Drives Instructions.

Math Status Flags

Guidelines for Math Status Flags.

Immediate values

Details on entering immediate values in decimal or other radix.

Data Conversions

Rules for mixing data types in programming and operand conversions.

Elementary data types

Lists elementary data types supported by controllers and their ranges.

LINT data types

Describes the LINT data type as a 64-bit integer.

Floating Point Values

Explains REAL and LREAL tags, and IEEE 754 standard.

Index Through Arrays

Describes how to dynamically change array elements using tags or expressions.

Bit Addressing

Explains using bit addressing to access a particular bit within a container.

Function Block Faceplate Controls

Information on faceplate controls for function block instructions.

Related product manuals