Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(EOD).Mechatronics.pdf
Скачиваний:
81
Добавлен:
23.08.2013
Размер:
5.07 Mб
Скачать

page 300

When more than one event should happen in a sequence, timers can be cascaded. This means that the end of the first timer starts the next.

As an example,

write a short ladder logic program that will turn a light on/off every 10 seconds.

22.2.4 Counters

• Count up/count down counters will track input events.

page 301

• An allen Bradley PLC-5 counter is shown below

 

 

 

 

a count up counter

 

 

 

CTU

 

 

 

A

 

 

counter C5:0

 

 

(EN)

 

 

 

 

 

 

 

Preset 4

 

 

 

 

 

 

 

 

 

 

 

 

Accum. 2

 

 

(DN)

 

 

 

 

 

 

 

 

 

 

 

 

1.Each time A turns on (then off) the accumulated value increases (here from 2to3, then 3to4, and so on)

2.When the accumulated value reaches the preset value the ‘DN’ flag is set.

C5:0

DN

3. We can set the accumulated value to zero with. C5:0

RES

Count down counters are similar but can be used for convenience.

Consider the example below for a SLC-150,

page 302

001

 

 

 

901

 

 

 

 

 

 

 

CTU

 

 

 

 

002

 

 

 

 

PR 0003

 

 

 

901

 

 

 

 

 

 

 

CTD

 

 

 

 

 

003

 

 

 

 

PR 0003

 

 

 

901

 

 

 

 

 

 

 

RST

901

 

 

 

 

 

 

 

111

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

001

002

003

901

111

• Write a simple program that will,

Соседние файлы в предмете Электротехника