Controllogix Array Data Handling

gouch

Member
Join Date
Oct 2010
Location
Ireland
Posts
27
Hello All,

I am currently working on a Project that retrieves data from a SQL table and stores in a PLC. This data is an array with multiple rows (about 30 rows) and 8 columns.

I currently have the data in the PLC via FT Transaction manager.

My next task is to split the data out into 3 areas, for 3 separate lines. I know I can setup a FSC instruction and look for the line number, and move the entire row when I get a match, increment a move counter and then the next time I find a match move to the next array position for that line.

Is there a quicker easier way in the PLC to code it to split 1 array table into 3 array tables based on the line number?

The 3 array tables are for display on a HMI screen as available Batch numbers to run on the line. Would I need to buffer my first split and then copy the buffer to the live HMI array at the end of an array split cycle.

Im just not sure what the best approach is to this?

Any help or guidance would be appreciated.
 
First, lets clarify some information. You can't exactly create an 8 dimensional array in a CLX to match the SQL table.

Is this data going into a UDT in your PLC to match the SQL table? Something like:

TableData.Row[0].Col[0]
.
.
.
TableData.Row[0].Col[8]
.
.
.
TableData.Row[30].Col[0]
.
.
.
TableData.Row[30].Col[8]


Or do you have 8 tags for each column, and the length is 30 for each?
 

Similar Topics

I have a task that could easily be solved using a 2-dimensional array using a ControlLogix processor, V32+. Basically it will loop through two...
Replies
23
Views
4,332
All Working on a new program and I am using several strings that are arrayed. I am now trying to enter my initial data into them in the data...
Replies
4
Views
2,079
Thought this would be a built in instruction but can only find SWAPB that only works on one word at a time.
Replies
5
Views
2,419
Hi Thanks for reading this post. I Having trouble writing Wonderware array values to a compactlogix PAC. I can read the values through a...
Replies
1
Views
4,198
Looking for the easiest way to read an array of values from a controllogix processor into a PC. This 200 element array contains the instantaneous...
Replies
0
Views
1,657
Back
Top Bottom