Problem Description



Yüklə 2,74 Mb.
Pdf görüntüsü
səhifə12/98
tarix23.07.2023
ölçüsü2,74 Mb.
#137216
1   ...   8   9   10   11   12   13   14   15   ...   98
PLC-4

Ladder
 
diagram
 
showing
 
conversion
 
of
 
input


Ladder diagram to display level of different tanks on the same display
Program Description

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 register N7:1.

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.

Similarly output of remaining two tanks are processed.

Work of timers here is just to change the input register address from which data is to be moved to output
display after every 5secs.

After completion of each cycle, timers are reset by RUNG008.

Ladder diagram shows operation timers for just two tanks, one more timer should be added to display level
of third tank.

This problem can also be solved by using Sequential Output instruction SQO.


Runtime Test Cases
Inputs
Outputs Physical Elements
O:2/0 = 1
O:6 = N7:1
Display level of Tank1
T4:0/DN = 1
O:6 = N7:3
Display level of Tank2
T4:1/DN = 1
O:6 = N7:5
Display level of Tank3
T4:2/DN = 1
O:6 = N7:1
Switch back to display level of Tank1
PLC Program to Display Level of a Tank
This is a PLC Program to Display Level of a Tank.

Yüklə 2,74 Mb.

Dostları ilə paylaş:
1   ...   8   9   10   11   12   13   14   15   ...   98




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin