Bradley Smoker PLC-5 user manual Counter Instructions, Rto, Res, Ctu

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 304
Image 304

D-4Instruction Set Quick Reference

Instruction

Description

 

 

RTO

RETENTIVE TIMER ON

Timer

T4:10

Time Base

1.0

Preset

10

Accum

0

Retentive Timer On

RTO

Status Bits:

EN - Enable

TT- Timer Timing DN - Done

If the input conditions go true, timer T4:10 starts incrementing i 1-second intervals as long as the rung remains true. When the rung goes false, the timer stops. If the rung goes true again, th timer continues. When the accumulated value is greater than o equal to the preset (10), the timer stops and sets the timer don bit.

 

Rung

EN

TT

DN

ACC

RTO

 

 

 

 

 

 

 

Condition

15

14

13

Value

Status

 

 

 

 

 

 

 

False

0

0

0

0

Disabled

 

 

 

 

 

 

 

 

True

1

1

0

increase

Timing

 

 

 

 

 

 

 

 

False

0

0

0

maintains

Disabled

 

 

 

 

 

 

 

 

True

1

0

1

>= preset

Done

 

 

T4:1

 

Timer Reset

If the input conditions go true, timer T4:1 is reset. This

 

 

( RES

)

RES

instruction resets timers and counters, as well as control

 

 

 

blocks. This is necessary to reset the RTO accumulated value.

 

 

 

 

 

 

 

 

 

 

 

Counter Instructions

Instruction

Description

 

 

CTU

COUNT UP

Counter C5:1

Preset10

Accum0

Count Up

CTU

Status Bits:

CU-Count Up CD-Count Down DN-Count Up done OV-Overflow UN-Underflow

If the input conditions go true, counter C5:1 starts counting, incrementing by 1 every time the rung goes from false-to-true. When the accumulated value is greater than or equal to the preset value (10), the counter sets the counter

Rung

CU

DN

OV

ACC

CTU

 

 

 

 

 

Condition

15

13

12

Value

Status

 

 

 

 

 

 

False

0

0

0

0

Disabled

 

 

 

 

 

 

Toggle True

1

0

0

incr by 1

Counting

True

1

1

0

>= preset

Done

 

 

 

 

 

 

True

1

1

1

>32767

Overflow

See page F-8 for a description of prescan operation for this instruction.

Publication 1785-UM012D-EN-P - July 2005

Page 304
Image 304
Bradley Smoker PLC-5 user manual Counter Instructions, Rto, Res, Ctu