EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 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...
2 Instruction Descriptions
2-478
NJ-series Instructions Reference Manual (W502)
StackIns
The StackIns instruction inserts a value at a specified position in a stack.
* If you omit the input parameter, the default value is not applied. A building error will occur.
Instruction Name FB/FUN Graphic expression ST expression
StackIns Insert into Stack FUN StackIns(In, InOut, Size,
Num, Offset);
Variables
Name Meaning I/O Description Valid range Unit Default
In Insert value
Input
Value, structure, or structure
member to insert into the
stack
Depends on data type.
---
*
Size Number of
stack ele-
ments
Number of stack array
elements
1
Offset Offset Position in stack at which to
insert In
0
InOut[]
(array)
Stack array
In-out
Array that functions as stack
Depends on data type. --- ---
Num Number of
stored
elements
Number of elements stored
in stack
Out Return
value
Output Always TRUE TRUE only
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An enumeration, structure, or structure member can also be specified.
Size OK
Offset OK
InOut[]
(array)
Must be an array with elements that have the same data type as In.
Num OK
Out OK
(@)StackIns
EN ENO
In Out
InOut
Size
Num
Offset

Table of Contents

Related product manuals