beautypg.com

Tmr: 0.1-s timer – KEYENCE Visual KV Series User Manual

Page 91

background image

2.4 Instruction Details

1

2

3-67

Chapter 2 Instructions

Example

Coding

Timing diagram (TMR000 #00010 and 0500 in the above example)

0500 and 0501 turn ON 1 second and 3.5 seconds respectively after 0000 turns
ON.

TMR000 is a subtraction timer. When the current value reaches "#00000",
contact T000 turns ON, and then output relay 0500 turns ON.

When input relay 0000 turns OFF, contact T000 and T001 turn OFF and the
current values of TMR000 and TMR001 are reset.

Note 1: The TMR number cannot be the same as any other TMS, TMH, TMR, C, or UDC
instructions in the same program.
Note 2: The current value of TMR is not retained but is reset to the preset value if a power
failure occurs or if power is turned OFF.

Tips

When the number specified by TMR is used as a contact (T000 in the above
example), this contact can be used as many times as desired. It can also be
used as both N.O. and N.C. contacts.

Timer accuracy = 0.1 sec. + (1 scan time) (max.)

Operands

Key operation

TMR: 0.1-s Timer

Sets a 16-bit on-delay timer that counts
down in 0.1-s decrements.

*1 0.1 s x 10 = 1 s
*2 0.1 s x 35 = 3.5 s

TMR

(

T

)

#ddddd

Txxx

0000

T000

T001

0500

0501

#00010

T000

#00035

T001

Preset value: 1 s

Preset value: 3.5 s

Line No.

Instruction

Operand

0000

LD

0000

0001

TMR

000 #00010*

1

0002

TMR

001 #00035*

2

0003

LD

T000

0004

OUT

0500

0005

LD

T001

0006

OUT

0501

OFF

ON

ON

#00010

#00000

Output 0500

Scan

Input 0000

Current

value of

TMR000

TMR

(

T

)

Operand

(TMR No.)

Operand

(Preset value)

ENT

R-SRCH

:

TMR

Visual KV

KV-300

KV-10/16

KV-24/40/80

No.: 000 to 249

No.: 000 to 249

No.: 000 to 063

No.: 000 to 119

Preset value:

Preset value:

Preset value:

Preset value:

#00000 to #65535

#00000 to #65535

#00000 to #65535

#00000 to #65535

KVNKA Chap 02_4aP.p65

08.3.11, 11:57 AM

67