How to connect a flow meter to a PLC system?