Jump to content

Variables on the ladder?


Recommended Posts

  • MVP 2023

If you're using linearization on the display variable and you want to use the linearized value in your ladder it won't work. You'll need to linearize it in the ladder using the special function and then link the display variable to that value.

Joe T.

Link to comment
Share on other sites

Thanks guys. This isn't a linearized value that I need... or a value that gets displayed on the HMI screen. I'm using an 'indirect store' function to point to a single MI from several other MI's, and I need to use the value of that 'stored' MI somewhere else. There are 20 different MI's that I want to pick from, based on that Indirect store. That's why I thought maybe a 'variable' is what I need to reference...

I keep getting the 'number' of the MI itself, and not the data within it... perhaps I'm using the indirect store function incorrectly?

Link to comment
Share on other sites

  • MVP 2023

Indirect operations can be very hard to wrap your head around, so don't feel bad. I'm assuming you're using special function #10 - "Load Indirect". I'm also assuming you're read the Help on it. If not, shame on you.

Post your code with a description of what you want.

Joe T.

  • Upvote 1
Link to comment
Share on other sites

I didn't know about the Indirect 'Load' function... until now! (I was trying the Indirect 'Store')

Anyhow, I tried that 'special' function, and I still can't get it to work. I could post the code, but for now I've decided to tell my customer that what they want isn't possible, and that they will just need to push a button to cause the desired effect to happen. (I was trying to 'Automate' a reset of a few values after a certain set of conditions had occured)

Thanks for your assistance!

~Mike

Link to comment
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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.