The Counter block counts the number of entities that pass through it. If the OutCount value port has any connections to it, the Counter block pushes its count value to the port every time it changes.
After an entity enters the Counter block, the block determines whether any block downstream of the Counter block’s OutEntity port can accept the entity before pushing the entity out the OutEntity port. If this acceptance fails, the entity is either pushed out the OutBalk port or destroyed if there are no connections to the OutBalk port.
When a true Boolean value arrives at the InClear port, it will be used as a signal to reset the current count value to zero. If the InClear port receives a false value, the signal will be ignored and the count will not be cleared.
Input entity port for entities to enter the Counter block.
Input Boolean port that is used to reset the current count value to zero.
Output entity port for entities that can be accepted by a downstream block.
Output entity port for entities that cannot leave using the OutEntity port.
Output integer port for the number of entities that have passed through the Counter block.
None
Count (integer)