Ladder
diagram
to
display
level
of
tank
Program Description
There is no any input is given to start the process since we want continuous displaying of tank level.
When level in tank rises, output of sensor increases accordingly.
Suppose we have a tank with height 1000cm which is 10m.
Converting 16bit data into 1000cm height, 65 is the answer which means, increment of 65 is obtained per
centimeter rise in tank level.
Input data from I:1 is continuously moved to N7:0 which means data in N7:0 register continuously varies.
Value stored in N7:0 is divided by 65 and stored in N7:1 register to display tank level in Centimeters.
Value stored in N7:1 register is first converted into equivalent BCD number before feeding it to display which
is connected with output module at address O:6.
Accuracy of this method for 1000cm is ±0.8%.
Dostları ilə paylaş: