SQD array look up

jmc

Member
Join Date
May 2008
Location
colorado
Posts
2
I am currently working on a 10-15 year old system I'm not 100% sure but I think the prossesor is a 700 or 800. The way they are doing it now is sending a bar code to a computer and the computer sends 7 digits to a aims card and stores the values in a array. Now they want a verifcation scanner after the first scanner. My question is how to look up the the last 5-10 numbers stored in the array and compare them to the new floating point sent. Is there a way to use an array or matrix as a pointer? Would it just be as easy to search the whole array? Would seaching the whole array slow any thing down?
 
jmc said:
I am currently working on a 10-15 year old system I'm not 100% sure but I think the prossesor is a 700 or 800. The way they are doing it now is sending a bar code to a computer and the computer sends 7 digits to a aims card and stores the values in a array. Now they want a verifcation scanner after the first scanner. My question is how to look up the the last 5-10 numbers stored in the array and compare them to the new floating point sent. Is there a way to use an array or matrix as a pointer? Would it just be as easy to search the whole array? Would seaching the whole array slow any thing down?

Yes, you can use pointers in the arrays and matrices. The more you search in a single scan the more the scan length is impacted. The array and matrix commands have the ability to perform pointer indexing over multiples scans if you want.
 
Thanks

Thanks I ended up write to a new array that stored the 5 floating numbers and just searched those numbers. problem solved
 

Similar Topics

Hey guys! Been awhile since I visited. Been out of it for a bit. Good to be logged in again. I have a MicroLogix 1400 Series A PLC with a...
Replies
0
Views
3,277
I'm looking for suggestions on a project. I have a Symax Class 8030 proc. with spare I/O racks. We are evaluating putting AB drives in, and...
Replies
6
Views
3,746
Hi, I'm having an issue in crimson 3.0 when I create a programme using a case statement referencing a fault word that each bit needs to change the...
Replies
4
Views
194
I am trying to copy an array of real numbers into a UDT with a real data type element. I have attached a snip below showing my COP instruction...
Replies
4
Views
203
I have an array of 55 REAL values. Is there a way to multiply based on the array location ? I have 55 transfer belts that are equally spaced...
Replies
3
Views
153
Back
Top Bottom