Tmh: 0.01-s timer – KEYENCE Visual KV Series User Manual
Page 92

2.4 Instruction Details
3-68
2
Chapter 2 Instructions
Example
Coding
Description
•
0500 and 0501 turn ON 0.1-s after 0000 turns ON.
•
TMH 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 TMH000 is reset.
Note 1: The TMH 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 TMH 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 TMH 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.01 sec. + (1 scan time) (max.)
Operand
Key operations
TMH: 0.01-s Timer
Sets a 16-bit on-delay timer that
counts down in 0.01-s decrements.
*1 0.01 s x 10 = 0.1 s
LDB
4
O R
9
FUN
#ddddd
T
xxx
T
H
0000
T000
0500
#00010
T
000
T
H
Line No.
Instruction
Operand
0000
LD
0000
0001
TMH
000 #00010*
1
0002
LD
T000
0003
OUT
0500
FUN
LDB
4
O R
9
Operand
(Preset value)
Operand
(TMH No.)
ENT
R-SRCH
ENT
R-SRCH
:
TMH
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
68