Maybe this is just not possible, or maybe I am doing something wrong.
Background;
I have a data array of over 1500 products. For sorting I have to first scan this array to verify the barcode is read and it matches 1 of the product numbers.
Then I compare the detected height (I have a sensor to read this) to the product height in the database.
If either of these fails it gets rejected. If it passes I then have to determine which of 33 potential pallet locations to send it to.
Each pallet can have up to 32 individual products on it, but most at any given time will have only 1.
Certain selected pallets will "collect" unassigned skews. This means they passed the database check but do not have a known collection point.
So, each time a case is scanned, I have to check it against potentially 34 databases. Using the FSC instruction I am worried about scan times as my first divert point is maybe 2 seconds of processing time from the scanner. Rate is 60+ per minute.
I'd prefer to only search an array for it's known length which may only be 1 item, than scroll through all 32 array levels in each array. Also the number of items in an array can change dynamically so it would be nice to be able to update the FSC Length.
The FSC instruction Length is identified as a DINT but I cannot get it to take a tag that can be changed dynamically. Would effectively solve my issue if that were possible.
I have since conceived a different concept that I think I can make work with a single array, but still thought I'd ask the question bout the FSC instruction Length.
Thanks.
Background;
I have a data array of over 1500 products. For sorting I have to first scan this array to verify the barcode is read and it matches 1 of the product numbers.
Then I compare the detected height (I have a sensor to read this) to the product height in the database.
If either of these fails it gets rejected. If it passes I then have to determine which of 33 potential pallet locations to send it to.
Each pallet can have up to 32 individual products on it, but most at any given time will have only 1.
Certain selected pallets will "collect" unassigned skews. This means they passed the database check but do not have a known collection point.
So, each time a case is scanned, I have to check it against potentially 34 databases. Using the FSC instruction I am worried about scan times as my first divert point is maybe 2 seconds of processing time from the scanner. Rate is 60+ per minute.
I'd prefer to only search an array for it's known length which may only be 1 item, than scroll through all 32 array levels in each array. Also the number of items in an array can change dynamically so it would be nice to be able to update the FSC Length.
The FSC instruction Length is identified as a DINT but I cannot get it to take a tag that can be changed dynamically. Would effectively solve my issue if that were possible.
I have since conceived a different concept that I think I can make work with a single array, but still thought I'd ask the question bout the FSC instruction Length.
Thanks.