Tmhh/tmhhx, Applicable program areas operands, Flags function – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 108: 2 instructions, N: timer number, S: set value, Operand specifications

Advertising
background image

2 Instructions

2-72

CP1E CPU Unit Instructions Reference Manual(W483)

TMHH/TMHHX

Applicable Program Areas

Operands

N: Timer Number

The timer must be between 0000 and 0015 decimal.

S: Set Value

TMHH (BCD): #0000 to #9999

TMHHX (Binary): &0 to &65535 (decimal) or #0000 to #FFFF (hex)

Operand Specifications

Flags

Function

When the timer input is OFF, the timer specified by N is reset, i.e., the timer’s PV is reset to the SV

and its Completion Flag is turned OFF.

When the timer input goes from OFF to ON, TMHH(540)/TMHHX(552) starts decrementing the PV.

The PV will continue timing down as long as the timer input remains ON and the timer’s Completion
Flag will be turned ON when the PV reaches 0000.

The status of the timer’s PV and Completion Flag will be maintained after the timer times out. To

restart the timer, the timer input must be turned OFF and then ON again or the timer’s PV must be
changed to a non-zero value (by MOV(021), for example).

Instruction

Mnemonic

Variations

Function

code

Function

ONE-MS TIMER

TMHH

---

540

TMHH(540)/TMHHX(552) operates a decrement-
ing timer with units of 1-ms.

TMHHX

---

552

Symbol

TMHH

TMHHX

BCD

Binary

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

Not allowed

Operand

Description

Data type

Size

TMHH

TMHHX

N

Timer Number

TIMER

TIMER

1

S

Set Value

WORD

UINT

1

Area

Word addresses

Indirect DM addresses

Constants

CF

Pulse bits

TR bits

CIO

WR

HR

AR

T

C

DM

@DM

*DM

N

---

---

---

---

OK

---

---

---

---

---

---

---

---

S

OK

OK

OK

OK

OK

OK

OK

OK

OK

Name

Label

Operation

Error Flag

P_ER

ON if in BCD mode and S does not contain BCD data.

OFF in all other cases.

TMHH(540)

N

S

S: Set value

N: Timer number

TMHHX(552)

N

S

S: Set value

N: Timer number

Advertising
This manual is related to the following products: