Sign in to follow this  
Followers 0
destination unknown

Shift Register

10 posts in this topic

Do you want to shift (right or left) a floating point value? Why?

Share this post


Link to post
Share on other sites
Thanks for the reply, im trying to store several floating point numbers and access them at a later stage have a look at the attachment cheers. Any ideas welcome. Shift_Register.pdf

Share this post


Link to post
Share on other sites
Hi destination unknown, You talk about elementary FIFO. However, the concrete help will depend on your answers to the questions below: What type of PLC do you use (FX3, Q)? What software do you use (GX Developer, GX IEC Developer)? What is the real lenght of FIFO that you want to use?

Share this post


Link to post
Share on other sites
See the example for GX IEC Developer, FX3U/FX3G, FIFO of 4 floating point number lenght:

Share this post


Link to post
Share on other sites
Thanks for your help, but im not sure if First in First Out will work its my first in last out?? FX2N PLC (possibly fx3) GX Developer 62

Share this post


Link to post
Share on other sites
Thanks for taking the time but i have never used IEC Developer and im not sure how to translate that into GX Developer

Share this post


Link to post
Share on other sites
As you described you need in First In First Out. Therefore, you can use the same sequence of command. An example, in IL with pulse commands: LD M0 BMOVP D100 D102 K122 DMOVP D0 D100 DMOVP D122 D2 Edited by Inntele

Share this post


Link to post
Share on other sites
So just to make i hace this right, that code will move D100 --> D102 and D102 --> D104 etc 61 times? Then move the input D0 into the starting position D100 and take the output D2 from the last position D122 ? Will that work with floating point numbers? Your help and time is much appreciated. Thank You.

Share this post


Link to post
Share on other sites
This sequence will work not only with 32-bit integer numbers, but with floating point numbers, because the values that stored in registers are not modified and will copied only.

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