Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual KnX KnY KnM KnS T C Ttmr 5 steps

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

1 702
Download 702 pages 56.54 Kb
Page 281
Image 281

 

 

 

 

 

 

 

 

 

 

 

 

3. Instruction

Set

API

Mnemonic

 

Operands

Function

 

 

 

Controllers

 

64

 

TTMR

 

 

 

 

Teaching Timer

 

 

 

ES2/EX2 SS2 SA2 SX2

 

 

 

 

 

 

 

 

SE

 

 

Type

Bit Devices

 

 

Word devices

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T C

D

E

F

TTMR: 5 steps

 

D

 

 

 

 

 

 

 

*

 

 

 

 

 

n

 

 

 

 

*

*

 

 

 

 

 

 

 

PULSE

 

16-bit

 

 

 

32-bit

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

 

SE

SE

SE

Operands:

 

 

 

 

 

 

 

 

 

 

D: Device No. for storing the ON time of the input

n: setting of multiple (n: K0~K2)

 

 

Explanations:

123.The ON time of the external button switch is measured and stored in D + 1(unit: 100ms). Value

in D + 1 is multiplied with a multiple specified by n and stored in D (unit: sec).

124.When n = K0, the value in D + 1(unit: 100ms) is multiplied with 1 and converted to D (unit: sec).

When n = K1, the value in D + 1(unit: 100ms) is multiplied with 10 and converted to D (unit:

sec). When n = K2, the value in D + 1(unit: 100ms) is multiplied with 100 and converted to D

(unit: sec).

125.TTMR instruction can be used max 8 times in a program.

Program Example 1:

126.The duration that input X0 is pressed (ON duration of X0) will be stored in D1. The value in D1, multiplied by a multiple specified by n, is then moved to D0. In this case, the button switch can be used to adjust the set value of a timer.

127.When X0 = OFF, the content of D1 will be reset but the content of D0 remains.

X0

TTMR D0 K0

X0

 

 

 

 

 

 

 

 

 

 

 

 

D1

D1

 

 

D0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T

 

 

 

 

T

 

 

 

 

 

 

 

 

On time (sec)

On time (sec)

D0

3 - 1 6 5

Page 281
Image 281
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual KnX KnY KnM KnS T C Ttmr 5 steps