3. Instruction Set

API

Mnemonic

Operands

Function

Controllers

65

STMR

 

Special 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

STMR: 7 steps

S

 

 

 

 

 

*

 

 

 

 

 

m

 

 

 

 

*

*

 

 

 

 

 

D

 

*

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

16-bit

 

32-bit

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

SE

SE

SE

Operands:

S: No. of timer (T0~T183) m: Set value in timer (m = 1~32,767, unit: 100ms)

D: Start No. of output devices (occupies 4 consecutive devices)

Explanations:

136.STMR instruction is specifically used for delay-OFF, ON/OFF triggered timer and flashing circuit.

137.The timer number (S) specified by STMR instruction can be used only once

Program Example:

138.When X20 = ON, STMR sets T0 as the 5 sec special timer.

139.Y0 is the delay-OFF contact. When X20 is triggered, Y0 = ON; When X20 is OFF, Y0 = OFF after a 5 sec delay.

140.When X20 goes from ON to OFF, Y1 = ON for 5 seconds.

141.When X20 goes from OFF to ON, Y2 = ON for 5 seconds.

142.When X20 goes from OFF to ON, Y3 = ON after a 5 second delay. When X20 turns from ON to OFF, Y3 = OFF after a 5 second delay.

 

X20

 

STMR

T0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X20

 

 

 

 

 

Y0

 

 

 

 

 

 

 

 

 

 

 

 

5 sec

 

 

 

 

 

 

Y1

 

 

 

 

 

 

 

 

 

 

 

 

5 sec

 

 

 

 

 

 

Y2

 

 

 

 

 

5 sec

 

 

 

 

 

 

 

 

Y3

 

 

 

 

 

 

 

 

 

 

 

 

5 sec

 

 

 

 

 

 

 

 

 

 

 

K50 Y0

5sec

5sec

3 - 1 6 7

Page 283
Image 283
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Stmr, Special Timer