This gives output such as 0000h when input is 4mA and FFFFh when output is 20mA. Determine the level of
tank to be maintained. Convert preset value to be the maximum output that means if the level to be maintained is
370cm, then convert value such that output is FFFFh when level is 370cm.
At low level, valve must be fully open, so air to close valve is used here to maintain the inlet flow.
Program
Here is PLC program to Maintain Level of a Tank, along with program explanation and run time test
cases.
List of Inputs and Outputs
I:1/0
= Start
(Input)
I:1/1
= Stop
(Input)
O:2/0
= Latching Coil
(Output)
DIV
= Division block
(Compute)
MUL
= Multiplication block
(Compute)
MOV
= Move instruction to move data
(Logical)
N7:0
= Input from transmitter in Hex form
(Register)
N7:2
= Storing conversion FFFFh into equivalent 400cms (Register)
N7:3
= Conversion of preset cms into equivalent hex
(Register)
O:3
= Output to which I-P converter is connected
(Output)
Dostları ilə paylaş: