Searching Arrays

tkvech

Lifetime Supporting Member
Join Date
Jan 2006
Location
Moraga
Posts
3
I have a RSLogix 5000 project. I have an array, There are twenty items or so in each. The customer now wants me to have a Panelview button so they can enter the Die # and it will search all of the array and display all recipes that have that Die #. I was thinking you could do a search the 1st array and copy it to a Results array, which I can then display the results of that array.

Part#
Die #
Length
Weight
Blade Diameter
Lineal length
Teeth count
and so on
 
tkvech,

i did this in a slc 500 for several projects.
i did a for next loop.
i'm doing this from memory.

Create an array for each parameter and add a few more.
Let index position [0] be for the current production piece.
Define an integer for your search number

If search[index] <> to partno[pos] then jump to lable A.
Lable A goes to a dummy contact
then you add 1 to the search position.

when the numbers equal, move the data registers to pos [0].

this is from memory.

hope this helps,
james
 

Similar Topics

Hello again! I didn't think I would be back so soon, however I have another question. I am using a Modicon Quantum PLC (Unity Pro XL v 7.0) I'm...
Replies
2
Views
1,702
is it just me, or has something happened with the google search when using chrome? looks likes safari on mac is ok, but edge/chrome on windoze has...
Replies
10
Views
834
Besides using BootP in the past, I am relatively new to having to look for privately addressed devices in many control networks. All of the...
Replies
23
Views
3,942
Good morning, could anyone recommend a 24VDC pulse counter which counts up or down to a preset #? Once it reaches this number, send a 24VDC back...
Replies
3
Views
1,647
Hi, Using FactoryTalk View SE version 9.0. Wondering if someone can help me as to whether or not I can search an entire display for instances of a...
Replies
3
Views
2,299
Back
Top Bottom