beautypg.com

Precautions, Sample program, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 130

background image

2 Instructions

2-94

CP1E CPU Unit Instructions Reference Manual(W483)

Precautions

Time comparison instructions cannot be used as right-hand instructions, i.e., another instruction must

be used between them and the right bus bar.

E-type CP1E CPU Unit (CP1E-E

- ) does not have the clock function.

The clock data inside the CPU Unit is always 01-01-01 01:01:01.

Sample program

When CIO 0.00 is ON and the time is 13:00:00, CIO 100.00 is turned ON. The contents of A351 to
A353 (the CPU Unit’s internal calendar/clock data) are used as the present time data and the contents
of D100 to D102 are used as the comparison time data. The year, month, and day values are masked,
so only the hour, minute, and second data are compared.

0

1

2

3

4

5

6

7

-

1

1

1

0

0

0

-

D0

0.00

C

S

1

S

2

100.00

=DT

D0

A352

D100

A351

A352

A353

0

7

8

15

S

2

:

D100

S

2

+1:D101

S

2

+2:D102

00

00

13

0

7

8

15

-

-

-

D0 set to 0038 hex

Shaded data is compared.

Minute

Second

Day of month

Hour

Year

Month

Conditions Flags set as soon as
execution condition is turned ON.

Seconds compared.
Minutes compared.
Hours compared.
Day masked.
Month masked.
Year masked.

This manual is related to the following products: