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-468
NJ-series Instructions Reference Manual (W502)
The array variable stcA[0..9] is used as a stack. As preparations, three values (UINT#1111,
UINT#2222, and UINT#3333) are stored in the stack.
The StackPush instruction is used to store a new value (UINT#4444) at the top of the stack stcA[3].
That means there will be four values in the stack.
Then, the StackLIFO instruction is used to remove one value at the top of the stack stcA[3]. That means
there will be three values in the stack.
Sample Programming
1111
2222
3333
0
0
0
0
0
0
0
stcA[0]
stcA[1]
stcA[2]
stcA[3]
stcA[4]
stcA[5]
stcA[6]
stcA[7]
stcA[8]
stcA[9]
StcAInVal
UINT#4444
Stored.
StackPush instruction executed.
StcANUM
UINT#3
1111
2222
3333
0
0
0
0
0
0
0
stcA[0]
stcA[1]
stcA[2]
stcA[3]
stcA[4]
stcA[5]
stcA[6]
stcA[7]
stcA[8]
stcA[9]
StcANUM
UINT#4
1111
2222
3333
4444
0
0
0
0
0
0
stcA[0]
stcA[1]
stcA[2]
stcA[3]
stcA[4]
stcA[5]
stcA[6]
stcA[7]
stcA[8]
stcA[9]
UINT#4444
Removed.
StackLIFO instruction executed.
StcANUM
UINT#4
1111
2222
3333
4444
0
0
0
0
0
0
stcA[0]
stcA[1]
stcA[2]
stcA[3]
stcA[4]
stcA[5]
stcA[6]
stcA[7]
stcA[8]
stcA[9]
StcANUM
UINT#3
1111
2222
3333
4444
0
0
0
0
0
0
stcA[0]
stcA[1]
stcA[2]
stcA[3]
stcA[4]
stcA[5]
stcA[6]
stcA[7]
stcA[8]
stcA[9]

Table of Contents

Related product manuals