wouter94

changing memory word with variable

1 post in this topic

Is there a way to choose with %MW you use depending on the value of %SW49? For example, i have 7 %MW:
-%MW4 that needs to be active when %SW49 :=1
-%MW8 that needs to be active when %SW49 :=2
-%MW12 that needs to be active when %SW49 :=3
-%MW16 that needs to be active when %SW49 :=4
-%MW20 that needs to be active when %SW49 :=5
-%MW24 that needs to be active when %SW49 :=6
-%MW28 that needs to be active when %SW49 :=7

so is there a way to say %MW0 := %MW(4*%SW49) on a operation block?

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