ALMAR

FIFO program examples for Mitsubishi PLC iQ-R R04CPU using GX Works3

6 posts in this topic

Looking for FIFO (First In First Out) array program examples for Mitsubishi PLC iQ-R R04CPU using GX Works3.

Share this post


Link to post
Share on other sites

If you put the instruction on the codepage, and mark it then select F1 it will open e-manual viewer with information about the instruction... What specifically are you struggling with regarding the FIFO's in the Mitsu?

Share this post


Link to post
Share on other sites

I did a search in GX Works3  for Instruction Element selection FIFO and LIFO with no search results.

Even call Mitsubishi Tech Support, and they were not able to find FIFO nor LIFO instructions.

It  does have Shift Left and Shift Rights instruction, but no FIFO nor LIFO.

Share this post


Link to post
Share on other sites

Ahh, sorry, forgot to mention that Mitsu doesn't name the instruction "FIFO", but FIF....

FIFO's:
FIFW = FIFO Write
FIFR = FIFO Read

If you look in your manual (e-manual viewer) for the R-series, under chapter 3-7-7.5 (Data Table Operation Instructions) you'll have more instructions to play with. Like FPOP (LIFO-style reading).

Share this post


Link to post
Share on other sites

I personally just use BMOV , MOV.  I have seen maint techs get confused by FIFO before but setting it up with BMOV and MOV they seem to understand. 

 

BMOV D1000 D1001 K10

MOV D10 D1000

Share this post


Link to post
Share on other sites
On 11/28/2017 at 1:30 PM, kaare_t said:

Ahh, sorry, forgot to mention that Mitsu doesn't name the instruction "FIFO", but FIF....

FIFO's:
FIFW = FIFO Write
FIFR = FIFO Read

If you look in your manual (e-manual viewer) for the R-series, under chapter 3-7-7.5 (Data Table Operation Instructions) you'll have more instructions to play with. Like FPOP (LIFO-style reading).

I Want to add some details   

SFWR(FXseries)=FIFW(L-CPU) = FIFO Write

SFRD(FXseries)=FIFR(L-CPU) = FIFO Read

But disadvantage of this Fb is it can only store and return "16 bit data"  other data type like Continuous String [50] , Real cannot be Input to this function.

String of 2 Character that fits inside single "D" data register is possible (IMG JPEG - FIFO-1 and FIFO -2 )

FxCpu_FIFO.JPG

Lcpu_FIFO.JPG

FIFO-1.JPG

FIFO-2.JPG

1 person likes this

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