Tms: 1-ms timer – KEYENCE Visual KV Series User Manual

Page 93

Advertising
background image

2.4 Instruction Details

1

2

3-69

Chapter 2 Instructions

Example

Coding

Description

•

0500 and 0501 turn ON 0.1-s after 0000 turns ON.

•

TMS is a subtraction timer. When the current value reaches "#00000", the
contact of the timer No. turns ON.

•

When input relay 0000 turns OFF, contact T000 turns OFF and the current value
of TMS000 is reset.

Note 1: The TMS 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 TMS is not retained but is reset to the preset value if
power failure occurs or if power is turned OFF.

•

When the number specified by TMS 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.001 sec. + (1 scan time) (max.)

Operand

Key operations

TMS: 1-ms Timer

Sets a 16-bit on-delay timer that
counts down in 0.01 ms decrements.

*1 0.001 s x 100 = 0.1 s

SET

1

ANB

5

FUN

#ddddd

T

xxx

T
S

0000

T000

0500

#00100

T

000

T

S

Preset value: 0.1 s

Line No.

Instruction

Operand

0000

LD

0000

0001

TMS

000 #00010*

1

0002

LD

T000

0003

OUT

0500

SET

1

ANB

5

FUN

ENT

R-SRCH

ENT

R-SRCH

Operand

(Preset value)

Operand

(TMS No.)

:

TMS

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:58 AM

69

Advertising