Omron - CX-Programmer FIFO and PUSH instruction

Cordep

Member
Join Date
Dec 2006
Location
Porto
Posts
5
Hi i'm trying to use PUSH and FIFO but it seems not to work just like i need or probably i'm doing something wrong, here is the problem:

I do:

SSET(630) 170 #6 -> Define the STACK

Then:

MOV(021) #1 200 -> Puts value 1 in CIO 200
MOV(021) #2 201 -> Puts value 2 in CIO 201

PUSH(632) 170 200 -> Write to the STACK the value 1
PUSH(632) 170 201 -> write to the stack the value 2

Now the problem, no matter what push i do first in the program because in the STACK it will be always organized the number 1 first then the number 2, i mean isn't supposed to First In First OUt? if i do the second PUSH in first place shouldn't the numbers be organized in the stack like 2 ->1 ?
I HAve attached the file...

Thanks in advance...

Cordep
 
SSET is not following FIFO

I have tried several way as per your comment but i failed to solve the problem.
Would you please help me to solve it.
 

Similar Topics

Hello ! I am trying to use an omron cj2m-cpu33 with a CP1W-CIF01 plug in serial connector to talk to a zebra ZT610 printer. I am getting the data...
Replies
8
Views
364
I am using a function block that has a in/out parameter that is a structure. The structure has an array as one of the elements. I can index the...
Replies
1
Views
728
Is there a way in CX-Programmer to call Ladder Instructions from a structured text program? I can see several functions in the autocomplete...
Replies
3
Views
1,917
Is there a way in CX-Programmer to call functions from a structured text program? I have found this manual that seems to describe the process...
Replies
1
Views
1,035
Is there a way in CX-Programmer to initialise an array? Set all values to zero or false depending on the data type Solutions in Ladder and...
Replies
2
Views
1,253
Back
Top Bottom