Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 252

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Comparison Instructions
Flags
Precautions
Example
Code Mnemonic
346
LD>=DT
LOAD GREATER THAN OR EQUAL
AND>=DT
AND GREATER THAN OR EQUAL
OR>=DT
OR GREATER THAN OR EQUAL
Name
Label
Error Flag
ER
Greater Than
>
Flag
Greater Than or
> =
Equal Flag
Equal Flag
=
Not Equal Flag
=
Less Than Flag
<
Less Than or
< =
Equal Flag
Time comparison instructions cannot be used as right-hand instructions, i.e.,
another instruction must be used between them and the right bus bar.
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.00
=DT
C
S
A351
1
S
D100
2
7
6
5
4
D0
-
-
1
1
Shaded data is compared.
15
8
7
0
Minute
Second
A351
Hour
A352
Day of month
Year
Month
A353
Name
Operation
ON if all 6 of the mask bits (C bits 00 to 05) are ON.
OFF in all other cases.
ON if S
> S
.
1
2
OFF in all other cases.
ON if S
S
.
1
2
OFF in all other cases.
ON if S
= S
.
1
2
OFF in all other cases.
ON if S
S
.
1
2
OFF in all other cases.
ON if S
< S
.
1
2
OFF in all other cases.
ON if S
S
.
1
2
OFF in all other cases.
100.00
D0
3
2
1
0
1
0
0
0
Seconds compared.
Minutes compared.
Hours compared.
Day masked.
Month masked.
Year masked.
15
00
S
:
D100
2
-
S
+1: D101
2
-
S
+2: D102
2
Conditions Flags set as soon as
execution condition is turned ON.
Section 3-6
Function
True if
S1
S2
D0 set to 0038 hex
8
7
0
00
13
-
219

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents