redhunter Posted May 6, 2020 Report Share Posted May 6, 2020 Hi, In the u90 is it possible to linearise 3 analog inputs? I have regularly done 2 in the ladder but would like to be able to do 3 for the next job. Thanks, Craig Link to comment Share on other sites More sharing options...
Isakovic Posted May 7, 2020 Report Share Posted May 7, 2020 You can linearise as many analog inputs as PLC has them. You can linearise other numeric values, I don't think there's any limit. 1 Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted May 7, 2020 MVP 2023 Report Share Posted May 7, 2020 Just remember that it seems to go against the programming rules, because you repeat the use of the same system operands for each linearization. cheers, Aus 1 Link to comment Share on other sites More sharing options...
redhunter Posted May 7, 2020 Author Report Share Posted May 7, 2020 Thanks for your replies, yes it does seem to be a bit wrong! Craig Link to comment Share on other sites More sharing options...
sanyc Posted May 12, 2020 Report Share Posted May 12, 2020 On 5/7/2020 at 2:34 PM, Ausman said: Just remember that it seems to go against the programming rules, because you repeat the use of the same system operands for each linearization. cheers, Aus Any remedies for this condition? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted May 12, 2020 MVP 2023 Report Share Posted May 12, 2020 4 hours ago, sanyc said: Any remedies for this condition? It doesn't really require a remedy, but the remedy would be to use the Vision or UniStream product lines. Link to comment Share on other sites More sharing options...
sanyc Posted May 12, 2020 Report Share Posted May 12, 2020 3 hours ago, Flex727 said: It doesn't really require a remedy, but the remedy would be to use the Vision or UniStream product lines. OK, thanks Link to comment Share on other sites More sharing options...
Isakovic Posted May 13, 2020 Report Share Posted May 13, 2020 Will reusing the same operands (system or standard) in several places in program be a problem? I often use the same memory place as auxiliary variable for several calculations in the same scan. Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted May 13, 2020 MVP 2023 Report Share Posted May 13, 2020 Not at all. I do that all the time for intermediate calculation buffers. The only time I put different MIs in the middle of a calculation is on the rare occasion that my code doesn't work perfectly the first time and I need to figure out where the problem is. Joe T. Link to comment Share on other sites More sharing options...
sanyc Posted May 13, 2020 Report Share Posted May 13, 2020 One thing that bothers me with multiple linearization inputs is that when going online the y1,y2 parameters get the readings from the second AI, no matter what their store blocks command them. Is that because of the scan time of the program and it doesn't have the time to "update" the stored values, so it "shows" the last stored values in them? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted May 13, 2020 MVP 2023 Report Share Posted May 13, 2020 Last one always wins with PLCs. Also remember that the update frequency of your VisiLogic is on-line mode is relatively slow. It has to go out to the PLC and read every operand value and display it. It generally take longer than a single scan to accomplish that. Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted May 13, 2020 MVP 2023 Report Share Posted May 13, 2020 8 hours ago, Joe Tauser said: I do that all the time for intermediate calculation buffers. Joe, I think it would be worth expanding on this for clarification, perhaps with some screenshots. My comments were only about the use of the linearization operands, which is somewhat different to the area you and Isakovic are touching on. cheers, Aus Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted May 14, 2020 MVP 2023 Report Share Posted May 14, 2020 Here's an example in Visilogic where I calculate a flow rate for a dispensing gun given the time it's on and the weight of the product dispensed. There are two guns in the system. Gun 1: ML 7 is a scratch register that contains the result of MI 21 x 6000. I immediately use that value in the DIV block. Then I don't care about it anymore. The STL View shows how the PLC actually solves this network: The line following the MUL instruction is STore the output of it in ML 7. This happens immediately, and the PLC retrieves it in order from the same memory location (ML 7) it just wrote it to. This also shows why it's a good idea to look at the STL View when a network doesn't act how you think it should. It will show the real operation flow. This is also why you shouldn't get overly complicated with your networks. You don't win any prizes for cramming a whole bunch of logic into one net. Gun 2: There's ML 7 again, holding the result value for only the few microseconds that I care about. I can use this same register as many times as I want for this purpose. This same scratch register technique applies to Jazz or any other brand of PLC. Move the data into your working registers and then move it out. Joe T. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now