Tuesday, October 2, 2012

Time Comparison Instructions of Omron PLC




Time comparison instructions ( DT(341) to DT(346) ) 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:
Ladder Symbol Time Comparison Instructions


Symbol: DT(341 to 346)

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.
Control Word

S1: First word of present time
S1 through S1+2: Present Time Data
S1 through S1+2 contain the present time data. S1 through S1+2 must be in the same data area.
When using the CPU Unit's internal clock data for the comparison, set S1 to A351 to specify the CPU Unit's internal clock data (A351 to A353).
First word of present time

S2: First words of comparison time
S2 through S2+2: Comparison Time Data
S2 through S2+2 contain the comparison time data. S2 through S2+2 must be in the same data area.
First words of comparison time

Source: www.omron.com


Labels:


Newer Post Older Post Home

You may also like these ebook:

Get Free PLC eBook directly sent to your email,
and email subscription to program-plc.blogspot.com




We hate SPAM. Your information is never sold or shared with anyone.

Your Email Will Be 100% Secured !

Your email is stored safely on Google FeedBurner