I think the RFIDs are not needed from the OPs statement, count the live pallets would just need a photocell if your looking for a count and not wanting to run out of pallets
Not only us, the are over 100 views at the momentIts ok, odds are the OP will never come back anyway and its just a conversation between us
I apologize i should have added for info, i need to count the pallets on line to maintain the minimum number pallets and also monitor if any pallet was removed i have ab plc and balluf rfid which gives me pallet ID evertime its scanned.I think you need to expand your post like what PLC the system is using how it will communicate do you need to just count pallets, where is the sensor(s) going to be located how do you determine when a pallet is added onto the conveyor & when it is taken off, do you just want counts or a list of actual reads etc.
I did not get the variable part if i add and subtract at the scan position of pallet that would make it 0 again ?Not enough information, but ...
If process is sequential - it looks like FIFO buffer to me.
If You have RFID that means that pallet IDs will be unique.
When pallet enters "zone", add this scan to buffer. When leaves - pull from buffer.
That way you can easily check for double scans (check FIFO content) to improve reliability.
If you are interested only in count, have some variable - add 1 on entry, subtract 1 on departure.
If pallets are handled in parallel, basic idea stays the same, but FIFO buffer should be replaced with array or some other collection.
Not enough information, but ...
If process is sequential - it looks like FIFO buffer to me.
If You have RFID that means that pallet IDs will be unique.
When pallet enters "zone", add this scan to buffer. When leaves - pull from buffer.
That way you can easily check for double scans (check FIFO content) to improve reliability.
If you are interested only in count, have some variable - add 1 on entry, subtract 1 on departure.
If pallets are handled in parallel, basic idea stays the same, but FIFO buffer should be replaced with array or some other collection.
When the CurrentPallet <> LastScannedPallet ADD +1. Unless you mean, Count Pallet Position? (FIFO)I just want to count the pallets
Do you know "When to expect these pallets?". The PLC must know when they are missing. You may know if they were entered into a FIFO and had a signal to index them to the next position.and take notice of what pallet number was removed
How can i reset the count because if i use the pallet ID and they take out that pallet from assembly then how can i reset the pallet count to monitor these many pallets are there on the line.When the CurrentPallet <> LastScannedPallet ADD +1. Unless you mean, Count Pallet Position? (FIFO)
Do you know "When to expect these pallets?". The PLC must know when they are missing. You may know if they were entered into a FIFO and had a signal to index them to the next position.
Read @Grzegorz Osipiak and @geniusintraining discussion on sensor vs. RFID.
I'm only attempting to give clues since we still don't quite understand the process.