beautypg.com

Dt, <>dt, dt, >=dt, Applicable program areas operands, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 127: C: control word

background image

2-91

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

Co

mp

ari
s

on I

n

stru

ctio

ns

2

=DT

, <>DT

,

, <=DT

, >DT

, >=DT

=DT, <>DT, DT, >=DT

Applicable Program Areas

Operands

C: Control Word

Bits 00 to 05 of C specify whether or not the time data will be masked for the comparison. Bits 00 to 05
mask the seconds, minutes, hours, day, month, and year, respectively. If all 6 values are masked, the
instruction will not be executed, the execution condition will be OFF, and the Error Flag will be turned
ON.

i

Instruction

Mnemonic

Variations

Function

code

Function

Time Comparison Instructions

=DT
<>DT
<=DT
>DT
>=DT

---

341
342
343
344
345
346

Time comparison instructions compare two BCD
time values and create an ON execution condition
when the comparison condition is true.

Symbol

=DT, <>DT, DT, >=DT

LD

AND

OR

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

OK

Operand

Description

Data type

Size

C

Control word

WORD

1

S1

First word of present time

WORD

3

S2

First word of comparison time

WORD

3

S

1

C

S

2

Symbol

C: Control word
S

1

: First word of present time

S

2

: First word of comparison time

S

1

C

S

2

Symbol

C: Control word
S

1

: First word of present time

S

2

: First word of comparison time

S

1

C

S

2

Symbol

C: Control word
S

1

: First word of present time

S

2

: First word of comparison time

0

1

2

3

4

5

6

7

8

15

0

0

0

0

0

0

0

0

0

0

C

Masks seconds data when ON.
Masks minutes data when ON.
Masks hours data when ON.
Masks day data when ON.
Masks month data when ON.
Masks year data when ON.

This manual is related to the following products: