bunschi

Move function block help

4 posts in this topic

hi all,

I need help, I'm trying to make a simple function block to move the data of 3 inputs position 1 to 3, to  3 consecutive address starting from the input address "position_data". Please see attach picture and my current approach which is not working. Thank you.

10-19-2020 11-34-31 PM.png

10-19-2020 11-23-21 PM.png

Share this post


Link to post
Share on other sites

A DINT = 2 x Words

Your inputs are DINT's and you are trying to move them into 3 consecutive WORD addresses.

1 person likes this

Share this post


Link to post
Share on other sites

I wonder why FB for such a small and simple task?
As long as the program memory allows, I would simply rewrite it as many times as necessary, in the main program.
FBs are data memory and scan time significant consumers.

1 person likes this

Share this post


Link to post
Share on other sites
31 minutes ago, Sergei Troizky said:

I wonder why FB for such a small and simple task?
As long as the program memory allows, I would simply rewrite it as many times as necessary, in the main program.
FBs are data memory and scan time significant consumers.

i did this for simpler appearance, i make this program at home and i cant be on actual site to adjust these parameters and the technician that will adjust this doesn't have enough knowledge on this matter, and i don't want him to mess around the program. its easier if it only have hmi.

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