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-473
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Stack and Table Instructions
2
StackPush
IF ( (InitStc=TRUE) AND (preInitStc=FALSE) ) THEN
StcANum:=0;
Clear(StcA);
StcASize:=SizeOfAry(StcA);
END_IF;
IF ( (InitStc=TRUE) AND (preInitStc=FALSE) ) THEN
StackPush(In:=UINT#1111, InOut:=StcA[0], Size:=StcASize, Num:=StcANum);
StackPush(In:=UINT#2222, InOut:=StcA[0], Size:=StcASize, Num:=StcANum);
StackPush(In:=UINT#3333, InOut:=StcA[0], Size:=StcASize, Num:=StcANum);
END_IF;
preInitStc:=InitStc;
IF ( (StcAPushStat=TRUE) AND (preStcAPushStat=FALSE) ) THEN
StcAInVal:=UINT#4444;
StackPush(
In :=StcAinVal,
InOut:=StcA[0],
Size :=StcASize,
Num :=StcANum,
ENO =>StcAPush_OK);
IF (StcAPush_OK=TRUE) THEN
StcAPushNormalEnd:=TRUE;
ELSE
StcAPushErrorEnd:=TRUE;
END_IF;
END_IF;
preStcAPushStat:=StcAPushStat;
ST
// Initialize stack.
// Store three values in stack.
// Add data with StackPush instruction.
// Value to add
// First element in stack array
// Number of stack elements
// Number of stored elements
// Normal end flag
// Processing after normal end
// Processing after error end
InitStc
preInitStc
stcANum
StcA
StcASize
StcAPushStat
preStcAPushStat
StcAInVal
StcAPush_OK
StcAPushNormalEnd
StcAPushErrorEnd
StcALIFOStat
preStcALIFOStat
StcAOutVal
StcALIFO_OK
StcALIFONormalEnd
StcALIFOErrorEnd
StcAInsStat
preStcAInsStat
StcAInsVal
StcAOffset
StcAIns_OK
StcAInsNormalEnd
StcAinsErrorEnd
False
False
0
[10(0)]
0
False
False
0
False
False
False
False
False
0
False
False
False
False
False
0
0
False
False
False
BOOL
BOOL
UINT
ARRAY[0..9] OF UINT
UINT
BOOL
BOOL
UINT
BOOL
BOOL
BOOL
BOOL
BOOL
UINT
BOOL
BOOL
BOOL
BOOL
BOOL
UINT
UINT
BOOL
BOOL
BOOL
Stack initialization condition
Value of InitStc from previous task period
Number of stored elements
Stack array
Number of stack elements
StackPush execution condition
Value of StcAPushStat from previous task period
Value added by StackPush
StackPush normal end flag
Processing after normal end of StackPush
Processing after error end of StackPush
StackLIFO execution condition
Value of StcALIFOStat from previous task period
Value removed by StackLIFO
StackLIFO normal end flag
Processing after normal end of StackLIFO
Processing after error end of StackLIFO
StackIns execution condition
Value of StcAInsStat from previous task period
Value inserted by StackIns
Offset for StackIns
StackIns normal end flag
Processing after normal end of StackIns
Processing after error end of StackIns
Variable
Data type
Initial value
Comment

Table of Contents

Related product manuals