Sum

jimcav

Member
Join Date
Dec 2004
Location
new jersey
Posts
229
Good Morning

I am using rs logix 5000 and i would like to sum the values in an array without having to add each one in a CPT and at different times the length of want is getting summed would also change. Any thoughts?

Thx
Jim Cav
 
Good Morning

I am using rs logix 5000 and i would like to sum the values in an array without having to add each one in a CPT and at different times the length of want is getting summed would also change. Any thoughts?

Thx
Jim Cav

Take a look at the FAL instruction - File Arithmetic Logical

There is a control file that contains length, position, whether you do all in one scan or one position per scan (so that you don't affect scan time too much) as well as the destination for the calculation and the calculation itself.

The help file and examples are quite good.
 

Similar Topics

Hi again, I´m still working on the upgrade from 500 to 5000 of this program. I found something that I cannot explain, in RSLogix 500. It seems...
Replies
0
Views
809
First, a background on the equipment so you know what is going on. I have an AB ControlLogix L63 processor controlling some Mitsubishi...
Replies
17
Views
5,948
hello, I am a beginner and also new here, I was reading something about PID loop, there is two tanks , each with a sensor of pH, the control...
Replies
9
Views
3,059
Hello all, I'm trying to recreate the following checksum calculation in the PLC. The example is written in C++ of which I am not very familiar...
Replies
8
Views
3,026
I'm trying to sum the last part of an array starting at element 70 for 30 elements. I placed a 70 in the .POS element of the FAL and it gets...
Replies
66
Views
14,442
Back
Top Bottom