I'm not sure what communication interface that the system used...but I'm using a load cell brand dacell(CB1-K015)which give the signal to PLC either high or low.Here is the sequence process that i have to do.
1)A valve opens, allowing for the milk to flow into the bottle.
2)As milk flows into the bottle, an accurate balance will continuously measure the weight of the bottle and the milk filling it. The output from the balance will serve as an indication of the milk level present in the bottle. The milk will continue to flow until the desired milk level (1L) is obtained.
3)When the desired level of milk has been filled into the plastic bottle the balance alerts the system that the desired level of milk has been reached. Consequently, the PLC sends a stop milk signal to the valve controlling the flow of milk, thus stopping the flow of milk to the bottle.