Stackint - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Chapter 18
Process control instructions

STACKINT

Parameter
PUSH
POP
R1
IN
N
EMPTY
OFLO
OUT
546
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 type
Data type
Input
BOOL
Input
BOOL
Input
BOOL
Input
DINT
Input
DINT
Output
BOOL
Output
BOOL
Output
DINT
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Push command (on rising edge only).
Adds the IN value on the top of the stack.
Pop command (on rising edge only).
Deletes the last value pushed to the top of the stack.
Resets the stack to its empty state.
Pushed value.
Application defined stack size.
TRUE if the stack is empty.
Overflow: TRUE if the stack is full.
Value at the top of the stack.
OUT equals 0 when OFLO is TRUE.

Advertisement

Table of Contents
loading

Table of Contents