Tml, tim, tmh, and tms (timer) – IDEC MicroSmart User Manual

Page 191

Advertising
background image

7: B

ASIC

I

NSTRUCTIONS

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

7-7

TML, TIM, TMH, and TMS (Timer)

Four types of timedown timers are available; 1-sec timer TML, 100-ms timer TIM, 10-ms timer TMH, and 1-ms timer
TMS. A total of 32 timers (all-in-one 10-I/O type CPU module) or 100 timers (other CPU modules) can be programmed in
a user program. Each timer must be allocated to a unique number T0 through T31 or T99.

The valid operand range depends on the CPU module type. For details, see pages 6-1 and 6-2.
The preset value can be 0 through 65535 and designated using a decimal constant or data register.

TML (1-sec Timer)

TIM (100-ms Timer)

TMH (10-ms Timer)

TMS (1-ms Timer)

Timer

Allocation Number

Range

Increments

Preset Value

TML (1-sec timer)

T0 to T99

0 to 65535 sec

1 sec

Constant:

0 to 65535

Data registers: D0 to D1299

D2000 to D7999

TIM (100-ms timer)

T0 to T99

0 to 6553.5 sec

100 ms

TMH (10-ms timer)

T0 to T99

0 to 655.35 sec

10 ms

TMS (1-ms timer)

T0 to T99

0 to 65.535 sec

1 ms

I1

I0

T0

Ladder Diagram (TML)

TML
4

T0

I0

ON

OFF

T0

ON

OFF

I1

ON

OFF

Q0

ON

OFF

Timing Chart

4 sec

Instruction

Data

LOD
TML

LOD
AND
OUT

I0
T0
4
I1
T0
Q0

Program List

Q0

I1

I0

T1

Ladder Diagram (TIM)

TIM
20

T1

I0

ON

OFF

T1

ON

OFF

I1

ON

OFF

Q1

ON

OFF

Timing Chart

Instruction

Data

LOD
TIM

LOD
AND
OUT

I0
T1
20
I1
T1
Q1

Program List

2 sec

Q1

I1

I0

T2

Ladder Diagram (TMH)

TMH
100

T2

I0

ON

OFF

T2

ON

OFF

I1

ON

OFF

Q2

ON

OFF

Timing Chart

Instruction

Data

LOD
TMH

LOD
AND
OUT

I0
T2
100
I1
T2
Q2

Program List

1 sec

Q2

I1

I0

T3

Ladder Diagram (TMS)

TMS
500

T3

I0

ON

OFF

T3

ON

OFF

I1

ON

OFF

Q3

ON

OFF

Timing Chart

Instruction

Data

LOD
TMS

LOD
AND
OUT

I0
T3
500
I1
T3
Q3

Program List

0.5 sec

Q3

Advertising