oxlacey Member O Join Date Aug 2012 Location SC Posts 38 Aug 23, 2012 #1 What takes the least amount of RSLogix 5000 programming to totalize the elements in a single variable array?
What takes the least amount of RSLogix 5000 programming to totalize the elements in a single variable array?
Craig Spinharney Member C Join Date Apr 2005 Posts 54 Aug 23, 2012 #2 I would bang together about 5 lines of structured text.
bernie_carlton Lifetime Supporting Member + Moderator Join Date Apr 2002 Location Yakima, Washington Posts 6,413 Aug 23, 2012 #3 Or possibly the FAL instruction.
TConnolly Lifetime Supporting Member Join Date Apr 2005 Location Salt Lake City Posts 6,152 Aug 23, 2012 #4 Here is how to apply FAL. Also look in your online help at example 7 for the FAL instruction.
daba Lifetime Supporting Member D Join Date Jul 2004 Location uk Posts 5,401 Aug 23, 2012 #5 AVErage them, then MULtiply by the number of them Last edited: Aug 23, 2012
daba Lifetime Supporting Member D Join Date Jul 2004 Location uk Posts 5,401 Aug 23, 2012 #6 TConnolly said: Here is how to apply FAL. Also look in your online help at example 7 for the FAL instruction. Click to expand... You will need to RES your CTRL_1 tag so that the calculation is performed more than once.
TConnolly said: Here is how to apply FAL. Also look in your online help at example 7 for the FAL instruction. Click to expand... You will need to RES your CTRL_1 tag so that the calculation is performed more than once.