Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 954

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Clock Instructions
Description
Flags
Examples
3-26-2 CALENDAR SUBTRACT: CSUB(731)
Purpose
Ladder Symbol
CADD(730) adds the calendar data (words C through C+2) to the time data
(words T and T+1) and outputs the resulting calendar data to R through R+2.
C
Minutes
Seconds
C+1
Day
Hour
Year
Month
C+2
Minutes
Seconds
T
Hours
T+1
R
Minutes
Seconds
Day
Hour
R+1
Year
Month
R+2
Name
Label
Error Flag
ER
When CIO 0.00 turns ON in the following example, the calendar data in D100
through D102 (year, month, day, hour, minutes, seconds) is added to the time
data in D200 and D201 (hours, minutes, seconds) and the result is output to
D300 through D302.
0.00
C
D100
T
D200
D300
R
Subtracts time from the calendar data in the specified words.
CSUB(731)
C
T
R
Operation
ON if the calendar data in C through C+2 is not within the
specified ranges.
ON if the time data in T and T+1 is not within the specified
ranges.
OFF in all other cases.
C: D100
D101
99
D102
T: D200
06
D201
R: D300
04
D301
00
D302
C: First calendar word
T: First time word
R: First result word
Section 3-26
18:30:20
12
10 December, 1999
10 minutes, 15 seconds
00
600 hours
18:40:35
18
4 January, 2000
01
921

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents