Stackpush - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions

StackPush

The StackPush instruction stores a value at the top of a stack.
Instruction
StackPush
Push onto Stack
Variables
Name
Meaning
In
Input value
Size
Number of
stack ele-
ments
InOut[]
Stack array
(array)
Num
Number of
stored
elements
Out
Return
value
Bit strings
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
In
Size
InOut[]
(array)
Num
Out
OK
Function
The instruction assumes that there are number of stored elements Num elements stored in stack array
InOut[]. Input value In is written to the next element, InOut[Num]. Then, Num is incremented. For num-
ber of stack elements Size, specify the number of elements in InOut[] to use as a stack.
2-466
Name
FB/FUN
FUN
I/O
Description
Value, structure, or structure
member to place in the
stack
Input
Number of stack array
elements
Array that functions as stack
In-out
Number of elements stored
in stack
Output
Always TRUE
An enumeration, structure, or structure member can also be specified.
OK
Must be an array with elements that have the same data type as In.
OK
Graphic expression
(@)StackPush
EN
ENO
In
Out
InOut
Size
Num
Valid range
Depends on data type.
Depends on data type.
TRUE only
Integers
NJ-series Instructions Reference Manual (W502)
ST expression
StackPush(In, InOut, Size,
Num);
Unit
Default
---
---
1
---
---
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents