EasyManua.ls Logo

Allen-Bradley Micro800

Allen-Bradley Micro800
652 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
Loading...
Chapter 18 Process control instructions
546 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
STACKINT manages a stack of integer values.
STACKINT operation
The STACKINT function block includes a rising edge detection for both PUSH
and POP commands. The maximum size of the stack is 128. The OFLO value is
valid only after a reset (R1 has been set to TRUE at least once and back to
FALSE). The application defined stack size N cannot be less than 1 or greater than
128. STACKINT manages invalid values as follows:
if N < 1, STACKINT assumes a size of 1.
if N > 128, STACKINT assumes a size of 128.
Arguments
Parameter Parameter type Data type Description
PUSH Input BOOL Push command (on rising edge only).
Adds the IN value on the top of the stack.
POP Input BOOL Pop command (on rising edge only).
Deletes the last value pushed to the top of the stack.
R1 Input BOOL Resets the stack to its empty state.
IN Input DINT Pushed value.
N Input DINT Application defined stack size.
EMPTY Output BOOL TRUE if the stack is empty.
OFLO Output BOOL Overflow: TRUE if the stack is full.
OUT Output DINT Value at the top of the stack.
OUT equals 0 when OFLO is TRUE.
STACKINT

Table of Contents

Other manuals for Allen-Bradley Micro800

Related product manuals