EasyManua.ls Logo

Omron CP1E - INTRODUCTION

Omron CP1E - INTRODUCTION
182 pages
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...
A
Appendix
A-4 CP1L Programming Examples
136 SYSMAC CP1L/CP1E Introduction Manual
INFO
Time Data on CP1L/CP1E
The clock’s PV is output to the following auxiliary areas.
Time Comparison Instructions
Time comparison instructions allow for easy comparisons of time.
E.g. If 0.00 is ON and the time is 13:00:00, turn 100.00 ON.
The hour, minute, and second of the current time in the CPU unit's built-in
clock (A351 to A352) and set time (D100 to D102) will be compared.
Name Address Content
Time data A351.00 to A351.07 Second: 00 to 59 (BCD)
A351.08 to A351.15 Minute: 00 to 59 (BCD)
A352.00 to A352.07 Hour: 00 to 23 (BCD)
A352.08 to A352.15 Day of the month: 01 to 31 (BCD)
A353.00 to A353.07 Month: 01 to 12 (BCD)
A353.08 to A353.15 Year: 00 to 99 (BCD)
A354.00 to A354.07 Day of the week: 00 to 06 (BCD)
00: Sunday, 01: Monday, 02: Tuesday, 03: Wednesday,
04: Thursday, 05: Friday, 06: Saturday
- - 1 1 1 0 0 0
D100
=DT
D0
A351
100.00
0.00
S2
C
S1
Set D0=0038Hex
7 6 5 4 3 2 1 0
D0
Compare seconds
Mask years
Mask months
Mask days
Compare hours
Compare minutes
Compare highlighted data
A351
A353
A352
15 9 7 0
Minute
Year
S2 :D100
S2+2:D102
S2+1:D101
15 9 7 0
Reflected on condition flag when power is turned ON
Hour
Day
Second
Month

Table of Contents

Related product manuals