sxj1988
Member
Hi guys,
I have a small project that I am working on, I have this station that a unit enters, an RFID reads the unit's serial ID then it starts its operation.
The objective of this project is that if that same unit (serial ID) has arrived to this station 5 times then I want to latch an output bit.
Currently I have setup an FIFO array to store the unit's serial ID and used the FSC instruction to search within the FIFO array in which it works fine, however, it only checks for 1 match. I want something that can check that unit serial ID within the array and if the counter is equal to 5 (for that same serial ID) then latch an output bit.
I was wondering if its possible to do it with ladder or do I need to use structured text?
I have a small project that I am working on, I have this station that a unit enters, an RFID reads the unit's serial ID then it starts its operation.
The objective of this project is that if that same unit (serial ID) has arrived to this station 5 times then I want to latch an output bit.
Currently I have setup an FIFO array to store the unit's serial ID and used the FSC instruction to search within the FIFO array in which it works fine, however, it only checks for 1 match. I want something that can check that unit serial ID within the array and if the counter is equal to 5 (for that same serial ID) then latch an output bit.
I was wondering if its possible to do it with ladder or do I need to use structured text?