Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 291

Table of Contents

Advertisement

=DT, <>DT, <DT, <=DT, >DT, >=DT
Instruction
Time Comparison Instructions
LD
Symbol
Symbol
C
S
1
S
2
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
Control word
S1
First word of present time
S2
First word of comparison time
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.
15
C
0
0
0
0
0
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
=DT
<>DT
<DT
---
<=DT
>DT
>=DT
AND
C: Control word
S
: First word of present time
1
S
: First word of comparison time
2
Block program areas
Step program areas
OK
OK
Description
8
7
6
5
4
3
2
0
0
0
0
0
Function
code
341
342
Time comparison instructions compare two BCD
343
time values and create an ON execution condition
344
when the comparison condition is true.
345
346
=DT, <>DT, <DT, <=DT, >DT, >=DT
Symbol
C: Control word
C
S
: First word of present time
1
S
1
S
: First word of comparison time
2
S
2
Subroutines
OK
i
1
0
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.
3. Instructions
Function
OR
Symbol
C: Control word
C
S
: First word of present time
1
S
1
S
: First word of comparison time
2
S
2
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
WORD
WORD
WORD
3
1
3
3
253

Advertisement

Table of Contents
loading

Table of Contents