Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Jack H.Integration and automation of manufacturing systems.2001.pdf
Скачиваний:
80
Добавлен:
23.08.2013
Размер:
3.84 Mб
Скачать

page 151

7.5 TIMERS/COUNTERS/LATCHES

• There are some devices and concepts that are temporal/sequential (time based) or sequential. This means that they keep track of events over time, as opposed to conditional logic that decides based on instantaneous conditions.

e.g. A light activating push button push button

 

+V

 

 

 

 

 

 

 

light

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

On/Off

button

 

 

 

 

 

 

 

 

button

pushed

 

 

 

 

 

 

 

 

 

released

 

 

 

 

 

 

 

 

 

 

 

 

here

 

 

 

 

 

 

 

 

 

here

 

Push Button

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

simple light

toggled light

(Conditional Control)

(Temporal Control)

time

Note: As we follow this graph from left to right we are going through time. When the line moves up (on) or down (off) we can see how inputs and outputs

Controls that have states or time dependence will require temporal controls (also known as sequential).

Some devices that are temporal are:

Flip-Flops - These can be latched on or off.

Latches - Will stay on until reset (Similar to flip-flops) Counters - Keeps a count of events

Timers - Allows inputs and outputs to be delayed or prolonged be a known amount

page 152

7.6 LATCHES

- Will stay on when set, until unlatched.

A D

L

A C

B D

U

• We can show how these latches respond with a simple diagram.

A

B

C

D

• As an example consider the ladder logic:

page 153

A

 

 

 

 

 

 

 

A

 

 

 

 

 

 

 

 

 

B

 

 

 

 

 

 

 

 

 

A

 

Note: this effects of this rung are

 

 

 

 

B

 

overwritten by the rung below.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A

B

X

Y

Z

X

Y

L

Y

U

Z

Z

• In most PLCs, latches will keep their last state even when the PLC is turned off and back on.

(Note: In some other PLCs latches are only used for keeping the state of the PLC when it was turned off, they don’t ‘stick’ on or off)

7.7 TIMERS

• We use timers to do some or all of the following:

page 154

-Delay turning on

-Delay turning off

-Accumulate time passed (retentive)

e.g. An On Timer (TON)

 

 

 

 

TON

 

 

 

A

 

 

Timer T4:0

 

(DN)

 

 

 

 

 

 

 

 

 

 

 

 

 

Time Base 1.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Preset 4

 

(EN)

 

 

 

 

 

 

 

 

 

Accum. 0

 

 

 

 

 

 

 

 

 

 

 

 

 

A

 

 

 

 

 

 

 

T4:0 EN

 

 

 

 

 

 

 

T4:0 DN

 

 

 

 

 

 

 

 

 

3

 

4

 

 

2

 

 

 

 

 

 

T4:0 Accum.

0

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

6

9

13

14

17

19

page 155

e.g. A Retentive On Timer (RTO)

 

 

 

 

RTO

 

 

 

A

 

 

Timer T4:0

 

(DN)

 

 

 

 

 

 

 

 

 

 

 

 

 

Time Base 1.0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Preset 4

 

(EN)

 

 

 

 

 

 

 

 

 

Accum. 0

 

 

 

 

 

 

 

 

 

 

 

 

 

A

 

 

 

 

 

 

 

T4:0 EN

 

 

 

 

 

 

 

T4:0 DN

 

 

 

 

 

 

 

 

 

3

4

 

 

 

 

 

 

 

 

 

 

 

T4:0 Accum.

0

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

6

9

10

14

17

19

page 156

e.g. An Off Timer (TOF)

 

 

 

 

TOF

 

 

 

A

 

 

Timer T4:0

 

(DN)

 

 

 

 

 

 

 

 

 

 

 

 

 

Time Base 0.01

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Preset 350

 

(EN)

 

 

 

 

 

 

 

 

 

Accum. 0

 

 

 

 

 

 

 

 

 

 

 

 

 

A

 

 

 

 

 

 

 

T4:0 EN

 

 

 

 

 

 

 

T4:0 DN

 

 

 

 

 

 

 

 

3

 

3.5

 

 

 

 

 

 

 

 

 

 

 

T4:0 Accum.

0

 

 

 

 

 

 

 

 

 

 

 

 

 

0

3

6

9.5

10

16

18

20