Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Accumulative Timer, Bits Bits counters Counters

Models: DVP-ES2/EX2/SS2/SA2/SX2/SE

1 702
Download 702 pages 56.54 Kb
Page 63
Image 63

2. Programming Concepts

Accumulative Timer

The timer executes once when the program reaches END instruction. When TMR instruction is executed, the timer coil will be ON when the current value reaches its preset value. For accumulative timers, current value will not be cleared when timing is interrupted.

Timer T250 will be driven when X0 = ON. When X0 = OFFor the power is off, timer T250 will pause and retain the current value. When X0 is ON again, T250 resumes timing from where it was paused.

X0

TMR T250 K100

T250

Y0

T1T2 T1+T2=10sec

X0

 

present

 

 

K100

 

 

 

 

 

 

 

T250 value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y0

 

 

 

 

 

 

 

 

 

 

 

 

Timers for Subroutines and Interrupts

Timers for subroutines and interrupts count once when END instruction is met. The associated output coils will be ON if the set value is achieved when End instruction executes. T184~T199 are the only timers that can be used in subroutines or interrupts. Generals timers used in subroutines and interrupts will not work if the subroutines or interrupts are not executing.

2.11 C (Counter)

Counters will increment their present count value when input signals are triggered from OFFON.

 

16 bits

 

 

 

 

 

 

32 bits counters

 

 

 

counters

 

 

 

 

 

 

 

 

Type

General

General

High speed

 

 

 

 

C232(C233)~C242,

 

 

Counters

C0~C199

C200~C231(C232)

C243, C244

 

C245~C254

 

 

 

 

 

 

Count

Count up

Count up/down

Count up

 

direction

 

 

 

 

 

 

Range

0~32,767

-2,147,483,648~+2,147,483,647

0~2,147,483,647

 

 

 

 

 

 

 

Preset

Constant K or

Constant K or data register D (Dword)

 

value

data register

 

register

D (Word)

 

 

 

 

 

 

 

 

Counter will keep on

 

 

Counter will

Counter will keep on counting when preset

counting when preset

 

 

value is reached. The

 

Output

stop when

value reached. The count value will become

 

operation

preset value

-2,147,483,648 if one more count is added

count value will

 

become 0 if one more

 

 

reached

to +2,147,483,647

 

 

 

 

count is added to

 

 

 

 

 

 

 

 

 

 

+2,147,483,647

 

2 - 31

Page 63
Image 63
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Counter, Accumulative Timer, Timers for Subroutines and Interrupts