Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

ST
Variable
InitStc
preInitStc
StcANum
StcA
StcASize
StcAPushStat
preStcAPushStat
StcAInVal
StcAPush_OK
StcAPushNormalEnd BOOL
StcAPushErrorEnd
StcALIFOStat
preStcALIFOStat
StcAOutVal
StcALIFO_OK
StcALIFONormalEnd BOOL
StcALIFOErrorEnd
StcAInsStat
preStcAInsStat
StcAInsVal
StcAOffset
StcAIns_OK
StcAInsNormalEnd
StcAInsErrorEnd
// Initialize stack.
IF ( (InitStc=TRUE) AND (preInitStc=FALSE) ) THEN
StcANum:=0;
Clear(StcA);
StcASize:=SizeOfAry(StcA);
END_IF;
// Store three values in stack.
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;
// Add data with StackPush instruction.
IF ( (StcAPushStat=TRUE) AND (preStcAPushStat=FALSE) ) THEN
StcAInVal:=UINT#4444;
StackPush(
In
InOut :=StcA[0],
Size :=StcASize,
Num
ENO

NY-series Instructions Reference Manual (W560)

Data type
BOOL
BOOL
UINT
ARRAY[0..9] OF UINT
UINT
BOOL
BOOL
UINT
BOOL
BOOL
BOOL
BOOL
UINT
BOOL
BOOL
BOOL
BOOL
UINT
UINT
BOOL
BOOL
BOOL
:=StcAInVal,
// Value to add
// First element in stack array
// Number of stack elements
:=StcANum,
// Number of stored elements
=>StcAPush_OK); // Normal end flag
2 Instruction Descriptions
Initial value
FALSE
Stack initialization condition
FALSE
Value of InitStc from previous task period
0
Number of stored elements
[10(0)]
Stack array
0
Number of stack elements
FALSE
StackPush execution condition
Value of StcAPushStat from previous task
FALSE
period
0
Value added by StackPush
FALSE
StackPush normal end flag
FALSE
Processing after normal end of StackPush
FALSE
Processing after error end of StackPush
FALSE
StackLIFO execution condition
Value of StcALIFOStat from previous task
FALSE
period
0
Value removed by StackLIFO
FALSE
StackLIFO normal end flag
FALSE
Processing after normal end of StackLIFO
FALSE
Processing after error end of StackLIFO
FALSE
StackIns execution condition
Value of StcAInsStat from previous task
FALSE
period
0
Value inserted by StackIns
0
Offset for StackIns
FALSE
StackIns normal end flag
FALSE
Processing after normal end of StackIns
FALSE
Processing after error end of StackIns
Comment
2-499
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents