Owain Posted May 21, 2014 Report Posted May 21, 2014 Hi, I'm creating a function block for a bespoke job. It's a moving average using a FIFO stack. The problem is the FIFR and FIFW functions only support INTs, whereas I need the high resolution a REAL provides. Any ideas on how I might go about writing to a FIFO stack ARRAY OF REALs? Many thanks, Owain Quote
Inntele Posted May 21, 2014 Report Posted May 21, 2014 Hi, We discussed this issue here for several times. The search in the forum with 'FIFO' keyword can help you. Quote
Inntele Posted May 21, 2014 Report Posted May 21, 2014 Additionally http://forums.mrplc.com/index.php?showtopic=18620&st=0&p=89170&hl=filter&fromsearch=1entry89170 Quote
Owain Posted May 22, 2014 Author Report Posted May 22, 2014 Apologies. Thank you VERY much for the help though! I'll look into it now. Many Thanks Quote
Owain Posted May 22, 2014 Author Report Posted May 22, 2014 I still can't find anything about using REALs in a FIFO stack. I have my own FB for doing it with INTs, but still no joy on REALs. Quote
Inntele Posted May 22, 2014 Report Posted May 22, 2014 Did you read carefully the topics, shown by search with "FIFO" keyword? For purposes of FIFO creation the REAL data format is a full equivalent of DWORD or DINT data format, because you don't modify the contents of registers, and just shift (copy) it ! Look, for example, this topic: http://forums.mrplc.com/index.php?showtopic=19700&st=0&p=94644&hl=fifo&fromsearch=1entry94644 With what commands is better to make FIFO, which shifts the REAL data, depends on the PLC type only. You have not specified for what type of PLC you want to create your FB. Quote
Owain Posted May 23, 2014 Author Report Posted May 23, 2014 Thank you Inntele, I didn't look hard enough :P Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.