beautypg.com

7 numbering and functions of counters [c, 2 functions of devices in dvp-plc – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 42

background image

2 Functions of Devices in DVP-PLC

DVP-PLC Application Manual

2-14

T 250

Y0

X0

T MR

T 250

K100

X0

T 2

Y0

PV

SV K100

T 1+ T2=10sec

T 250

T 1

When X0 = On, The PV in timer T250 will count up

by 100ms. When the PV = SV K100, the output coil

T0 will be On.

When X0 = Off or the power is off, timer T250 will

temporarily stop the timing and the PV remain

unchanged. When X0 is On again, the timing will

resume and the PV will count up and when the PV =

SV K100, the output coil T0 will be On.

3. Subrountine timer:

Timer T192 ~ T199 are used in subrountines or interruption subroutines.

For SA series MPU: The timer executes once when the program reaches END instruction. When END instruction

is executed, the output coil will be On when the timing reaches its target.

For EH/EH2/SV series MPU: The timer executes once when the program reaches TMR or END instruction. When

TMR or END instruction is executed, the output coil will be On when the PV equals SV.

If the general purpose timer is used in a subroutine or interruption subroutine but the subroutine is not being

executed, the timer will not be able to time correctly.

How to designate SV: The actual set time in the timer = timing unit × set value

a) Designating constant K: SV is a constant K

b) Indirectly

designating

D: SV is data register D

2.7 Numbering and Functions of Counters [C]

No. of counters (in decimal)

ES/EX/SS series MPU:

16-bit counting up, for
general purpose

C0 ~ C111, 112 points. Fixed to be non-latched.

Counter C

16-bit counting up, for
latched

C112 ~ C127, 16 points. Fixed to be latched.

1-phase 1 input

C235 ~ C238, C241, C242, C244, 7 points. Fixed to be
latched.

1-phase 2 inputs

C246, C247, C249, 3 points. Fixed to be latched.

32-bit counting up/down

high-speed counter C

2-phase 2 inputs

C251, C252, C254, 3 points. Fixed to be latched.

Total

141 points

SA/SX/SC series MPU:

16-bit counting up, for
general purpose

C0 ~ C95, 96 points. Fixed to be non-latched.

16-bit counting up, for
latched

C96 ~ C199, 104 points. Can be modified to be non-latched
by setting up parameters.

32-bit counting
up/down, for general
purpose

C200 ~ C215, 16 points. Fixed to be non-latched.

Counter C

32-bit counting
up/down, for latched

C216 ~ C234, 19 points. Can be modified to be non-latched
by setting up parameters.

Total

235 points