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-480
NJ-series Instructions Reference Manual (W502)
StackDel
The StackDel instruction deletes a value from a specified position in a stack.
The instruction assumes that there are number of stored elements Num elements stored in stack array
InOut[]. The value is deleted from the position specified by the offset Offset (InOut[Offset]). All higher
elements, i.e., InOut[Offset+1] to InOut[Num1], are moved to the next lower element in the stack array.
Then, Num is decremented. For number of stack elements Size, specify the number of elements in
InOut[] to use as a stack.
Instruction Name FB/FUN Graphic expression ST expression
StackDel Delete from Stack FUN StackDel(InOut, Size, Num,
Offset);
Variables
Name Meaning I/O Description Valid range Unit Default
Size Number of
stack ele-
ments
Input
Number of stack array
elements
Depends on data type.
---
1
Offset Offset Offset of value to delete
from stack
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
Size OK
Offset OK
InOut[]
(array)
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Arrays of enumerations or structures can also be specified.
Num OK
Out OK
Function
(@)StackDel
EN ENO
Out
InOut
Size
Num
Offset

Table of Contents

Related product manuals