Jump to content
Sign in to follow this  
SteelBlue48310

Variables on the ladder?

Recommended Posts

The HMI and the ladder share the same operands, so for example if you created a variable on the HMI and linked it to MI5, that will be the same MI5 in your ladder.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...