Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 342

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Comparison Instructions
Flags
Precautions
Example
302
Name
Error Flag
ER
Greater Than
>
Flag
Greater Than or
> =
Equal Flag
Equal Flag
=
Not Equal Flag
=
Less Than Flag
<
Less Than or
< =
Equal Flag
Negative Flag
N
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.
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 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.
000000
C
S
S
7
6
D00000
-
-
15
8
7
Minute
Second
A351
A352
Day of month
Year
Month
A353
Label
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.
Unchanged (See note.)
005000
=DT
D00000
A352
1
D00100
2
5
4
3
2
1
0
1
1
1
0
0
0
Seconds compared.
Minutes compared.
Hours compared.
Day masked.
Month masked.
Year masked.
Shaded data is compared.
0
S
:
D00100
2
Hour
S
+1: D00101
2
S
+2: D00102
2
Conditions Flags set as soon as
execution condition is turned ON.
Section 3-7
Operation
D00000 set to 0038 hex
15
8
7
0
00
00
-
13
-
-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents