beautypg.com

Delta DVP-ES2 User Manual

Page 282

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 1 6 6

128. If ON duration of X0 is T sec, the relation between D0, D1 and n are shown as the table below.

n

D0 (unit: sec)

D1 (unit: 100 ms)

K0

T (sec) ×1

D1 = D0×10

K1

T (sec) ×10

D1 = D0

K2

T (sec) ×100

D1 = D0/10

Program Example 2:

129. Use TMR instruction to write in 10 groups of set time.

130. Write the set values into D100 ~ D109 in advance

131. The timer resolution is 0.1 sec for timers T0 ~ T9 and 1 sec for the teaching timer.

132. Connect the 1-bit DIP switch to X0 ~ X3 and use BIN instruction to convert the set value of the

switch into a bin value and store it in E.

133. The ON duration (in sec) of X20 is stored in D200.

134. M0 is a pulse for one scan cycle generated when the teaching timer button X20 is released.

135. Use the set number of the DIP switch as the index pointer and send the content in D200 to

D100E (D100 ~ D109).

M10

TMR

T0

D100

M11

TMR

T1

D101

M19

TMR

T9

D109

M1000

BIN

K1X0

E

X20

TTMR

D200

K0

X20

PLF

M0

M0

MOV

D100

D200E

Note:

The TTMR instruction can only be used 8 times in a program. If TTMR is used in a CALL subroutine

or interrupt subroutine, it only can be use once.

This manual is related to the following products: