SteelBlue48310 Posted May 20, 2013 Report Share Posted May 20, 2013 Is there a way to reference a 'Variable' on the ladder for Compare or math functions? Quote Link to comment Share on other sites More sharing options...
Ryan Posted May 20, 2013 Report Share Posted May 20, 2013 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted May 20, 2013 MVP 2022 Report Share Posted May 20, 2013 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. Quote Link to comment Share on other sites More sharing options...
SteelBlue48310 Posted May 21, 2013 Author Report Share Posted May 21, 2013 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? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted May 23, 2013 MVP 2022 Report Share Posted May 23, 2013 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. 1 Quote Link to comment Share on other sites More sharing options...
SteelBlue48310 Posted May 23, 2013 Author Report Share Posted May 23, 2013 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.