921
Clock Instructions Section 3-26
Description 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.
Flags
Examples 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.
3-26-2 CALENDAR SUBTRACT: CSUB(731)
Purpose Subtracts time from the calendar data in the specified words.
Ladder Symbol
C+1
C
C+2
T+1
T
R+1
R
R+2
Minutes Seconds
Day Hour
Year Month
Minutes Seconds
Minutes Seconds
Day Hour
Year Month
Hours
Name Label Operation
Error Flag ER 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.
18:30:20
18:40:35
99 12
06 00
04 18
00 01
C
T
R
0.00
D100
D200
D300
C: D100
D101
D102
T: D200
D201
R: D300
D301
D302
10 December, 1999
10 minutes, 15 seconds
600 hours
4 January, 2000
CSUB(731)
C
T
R
C: First calendar word
T: First time word
R: First result word