Hi, I got a project that need to use the count empty function in certain array set that I need use it to determine the gap between an object to another object. For example: Length of a conveyor is 1000mm and I use array of create a set of 10mm gap between each cell array[1..100]of bool and in front of a object detection sensor to indicate the object coming in. The next object come in and also detected by this sensor in line. Now I want to use this empty gap to identify the faulty object which mean if the 1st object and the 2nd object stick too near within the gap i set then this both object will be shown fault. Need help from expert. Thanks.