11 c (counter), C (counter) -31 – Delta DVP-ES2 User Manual

Page 63

Advertising
background image

2 . P r o g r a m m i n g C o n c e p ts

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.

T250

Y0

X0

TMR

T250

K100

X0

T2

Y0

K100

T1+T2=10sec

T250

T1

present
value

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 OFF

ON.

16 bits

32 bits counters

counters

Type General General

High

speed

Counters C0~C199 C200~C231(C232)

C232(C233)~C242,

C243, C244

C245~C254

Count
direction

Count up

Count up/down

Count up

Range 0~32,767 -2,147,483,648~+2,147,483,647 0~2,147,483,647

Preset
value
register

Constant K or
data register
D (Word)

Constant K or data register D (Dword)

Counter will keep on
counting when preset
value is reached. The
count value will
become 0 if one more
count is added to
+2,147,483,647

Counter will
stop when
preset value
reached

Counter will keep on counting when preset
value reached. The count value will become

Output
operation

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

2 - 3 1

Advertising
This manual is related to the following products: