Problem Description



Yüklə 2,74 Mb.
Pdf görüntüsü
səhifə85/98
tarix23.07.2023
ölçüsü2,74 Mb.
#137216
1   ...   81   82   83   84   85   86   87   88   ...   98
PLC-4

Runtime Test Cases
Master Window
Motion
Alarm
Switch
0
x
x
0
0
x x 0


0
x x 0
0
x
x 0
1
0 0 1
1
0 1 1
1
1 0
0
1
1 1
1
PLC Program to Latch and Unlatch Output With Time Delay
This is a PLC Program to Latch and Unlatch Output With Time Delay.
Problem Description
Implement Latching and Unlatching of output with a particular time delay in PLC using Ladder Diagram.
Problem Solution

After solving previous problem, we know how to Latch and unlatch a coil.

Previous problem can be modified to solve this problem.

There are total three types of Timers available known as TON, TOFF and RTO timers.

TON -Timer On

TOFF -Timer Off

RTO -Retentive Timer On

TON timer is used here to solve this problem.
PLC Program
Here is PLC program to Latch and Unlatch Output With Time Delay, along with program explanation and
run time test cases.
List of Inputs and Outputs
I:1/0
= Start Push Button
(Input)
T4:0/DN = Timer 4.0 done bit
(Input)
O:2/0
=
(Output)
T4:0
=
(Timer)
Ladder
 
Diagram
 
to
 
solve
 
this
 
problem
Program Description



Latching is done the same way as in previous program. The only difference in this program is that Timer On
is added to unlatch the output after 10secs. And to operate unlatching of output, instead of using stop PB, Timer
On done bit passed to Stop XIO contact which operates automatically.

Time Delay to turn output off can be decided by operator in terms of Multiplication of Time Base and Preset.
It means if time base is 0.1 and we want to generate 10secs of time delay then Preset value must be set to 100
so that “100 * 0.1 = 10secs”.

When input I:1/0 is pressed momentarily, output goes true and it is latched.

When output is latched, Timer T4:0 is enabled and EN bit goes high.

As long as O:2/0 is true, Timer T4:0 is active and accumulator value is incremented.

When Timer count (Accumulator value) is equal to Preset value, Timer Done Bit T4:0/DN goes high which
works as a Stop PB of previous problem causing output to go false.

Important thing to note here is that when timer is ON and you press Start PB as soon as Time delay is over,
output is latched again. So during those 10secs, Start PB has no effect on output at all.

Yüklə 2,74 Mb.

Dostları ilə paylaş:
1   ...   81   82   83   84   85   86   87   88   ...   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