![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030342.webp)
302
Comparison Instructions
Section 3-7
Flags
Note In CS1-H, CJ1-H, CJ1M, and CS1D (for Single-CPU System) CPU Units,
these Flags are left unchanged.
In CS1 and CJ1 CPU Units, these Flags are turned OFF.
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.
Example
When CIO 000000 is ON and the time is 13:00:00, CIO 005000 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 D00100 to D00102 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.
Name
Label
Operation
Error Flag
ER
ON if all 6 of the mask bits (C bits 00 to 05) are ON.
OFF in all other cases.
Greater Than
Flag
>
ON if S
1
> S
2
.
OFF in all other cases.
Greater Than or
Equal Flag
> =
ON if S
1
≥
S
2
.
OFF in all other cases.
Equal Flag
=
ON if S
1
= S
2
.
OFF in all other cases.
Not Equal Flag
=
ON if S
1
≠
S
2
.
OFF in all other cases.
Less Than Flag
<
ON if S
1
< S
2
.
OFF in all other cases.
Less Than or
Equal Flag
< =
ON if S
1
≤
S
2
.
OFF in all other cases.
Negative Flag
N
Unchanged (See note.)
0
1
2
3
4
5
6
7
-
1
1
1
0
0
0
-
D00000
000000
C
S
1
S
2
005000
=DT
D00000
A352
D00100
A351
A352
A353
0
7
8
15
S
2
:
D00100
S
2
+1: D00101
S
2
+2: D00102
00
00
13
0
7
8
15
-
-
-
D00000 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.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...