beautypg.com

Delta DVP-ES2 User Manual

Page 283

background image

3 . I n s t r u c t i o n S e t

3 - 1 6 7

API Mnemonic

Operands

Function

65

STMR

Special Timer

Controllers

ES2/EX2 SS2 SA2

SE

SX2

Bit Devices

Word devices

Program Steps

Type

OP

X Y

M S K H KnX KnY KnM KnS T C D E F

S

*

m

*

*

D

*

*

*

STMR: 7 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

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

K50

Y0

X20

Y0

Y1

Y2

Y3

5 sec

5 sec

5 sec

5 sec

5 sec

5 sec

This manual is related to the following products: