Output of transmitter is in current signals which is 4-20mA.
When output is 4mA, Analog Input Module converts it into 16bit equivalent hex numbers. Hence when input
at I:3 to Analog module is 4mA, it moves 0000h into register and when 20mA, it moves FFFFh into register. Here
register N7:0.
Here height of the tank is 3m or 300cm. By converting it into equivalent hex, change in value per centimeter
is 218.
Value of N7:0 is then multiplied with 234 because when Level reaches 280cm, output is 61167 in decimal
(EEEFh). So when output at 280cm is multiplied with 234, we get full FFFFh at N7:2 to operate valve to fully
close.
This multiplication is stored into N7:2 register. Digital to Analog conversion of value stored in N7:2 is
performed inside the processor and equivalent mA current is received from terminal O:3.
Current to Pneumatic converter then converts current signals into equivalent 3-15psi pneumatic signal and
adjusts valve opening.
Runtime Test Cases
Inputs
Outputs
Physical Elements
I:3 = 0000h
O:3 = 0000h
Valve fully open
I:3 = EEEFh
O:3 = FFFFh
Valve fully closed
I3 = 7778h
O:3 = 8000h
Valve 50% open
PLC Program to Maintain Level of a Tank
This is a PLC Program to Maintain Level of a Tank.
Problem Description
By using a control valve which is operated with standard pneumatic signal 3-15psi, level of a tank is to be
maintained. Implement automation of this tank level system in PLC using Ladder Diagram programming
language.
Dostları ilə paylaş: