Sign in to follow this  
Followers 0
pszczepan

STACK, FIFO but with multiple words

8 posts in this topic

Functionality of SSET, PUSH and FIFO is ideal for my desire. The only thing is that data (barcode) is more than one word. I would need each element in stack at least 4 words. How I can get it? I read about table, but I doubt I will have FIFO instruction for that. Maybe you could propose some smart solution thanks in advance

Share this post


Link to post
Share on other sites
First SSET the stack. Then PUSH 4 words one at a time. Then FIFO four times to get the entire barcode back.

Share this post


Link to post
Share on other sites
Won't work!! Unfortunately the CP1E and CP1L series DO NOT support these instructions.

Share this post


Link to post
Share on other sites
Duh!

Share this post


Link to post
Share on other sites
We used to do this a long time ago with WSFT and ASFT....

Share this post


Link to post
Share on other sites
I made test in CX-Simulator with CP1L -E and it worked as I wanted (Jay's version). I do not know if real PLC does it, but if CX simulator does it should be in PLC also. Soon I'll check Thanks anyway for clue

Share this post


Link to post
Share on other sites
My ERROR it is only the CP1E series that DO NOT support these instructions.

Share this post


Link to post
Share on other sites
Bits&Bytes: You were correct to mention the lack of stack instructions because the title of this topic is"STACK, FIFO but with multiple words CP1E ".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0