Panasonic PLC Filling Control -Application Note-
PLC Filling Control
In this application, a valve must be open for some period of time, and close exactly when the tank is full- not before or after- to avoid waste (Figure No.1). This requirement implies accuracy through the filling process. A classic solution is to use a PID algorithm. However, the valve’s mechanical lifetime could be compromised when the PID keeps the valve opening and closing frequently.
Panasonic Technical Support presents two options that can be used to omit the PID program. The valve could be controlled by a PLC using an analog or digital signal. In the case of an analog signal, the PLC could use a voltage level to keep the valve full open , close (0 V) or in between . For the digital approach, it is possible to estimate the total filling time and mass flow rate, knowing the tank volume and using a sensor with one PLC discrete input.
1. Analog Control
The voltage is the output of a Digital to Analog converter (e.g. PLC application cassette AFPX-DA2 –Figure No. 3- ). The implementation of these formulas in a Panasonic PLC is showed next (e.g. structure text -FPWINPRO PLC programming software).
2. Digital Control
At the filling process will start, and the valve is open. The Sensor Level A will provide a control signal to a timer used to measure the process time at Sensor Level A ( –This is the variable level_A_time in the PLC program showed bellow-). This time can be used to calculate the actual flow rate since you know the tank volume at this time:
PLC program implementation: