EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 248

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
215
Comparison Instructions Section 3-6
3-6-2 Time Comparison Instructions (341 to 346)
Purpose Time comparison instructions compare two BCD time values and create an
ON execution condition when the comparison condition is true.
The time comparison instructions are treated just like the LD, AND, and OR
instructions to control the execution of subsequent instructions.
Ladder Symbol
Variations
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 exe-
cuted, the execution condition will be OFF, and the Error Flag will be turned
ON.
S1
C
S2
LD
S1
C
S2
S1
C
S2
AND
OR
Symbol
Symbol
Symbol
C: Control word
S
1: First word of present time
S
2: First word of comparison tim
e
C: Control word
S
1: First word of present time
S
2: First word of comparison tim
e
C: Control word
S
1: First word of present time
S
2: First word of comparison tim
e
Variations Creates ON Each Cycle Comparison is True Time compari-
son instruction
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
01234567815
0000000000
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.

Table of Contents

Related product manuals