For counting pieces or worktime with relay we need to find a empty slot for relay in the electrical cabinet and mount it to the din rail.
Correct connection should be found on the electrical cabinet
Logic Block Diagram of connection (intermittent) relay:
Logic Block Diagram of PLC connection of dedicated signal:
About dedicated signal read more Counting pieces or worktime from existing sensor