924
Clock Instructions Section 3-26
Description CSUB(731) subtracts the time data (words T and T+1) from the calendar data
(words C through C+2) to and outputs the resulting calendar data to R
through R+2.
Flags
Examples When CIO 0.00 turns ON in the following example, the time data in D200 and
D201 (hours, minutes, seconds) is subtracted from the calendar data in D100
through D102 (year, month, day, hour, minutes, seconds) and the result is out-
put to D300 through D302.
3-26-3 HOURS TO SECONDS: SEC(065)
Purpose Converts time data in hours/minutes/seconds format to an equivalent time in
seconds only.
Ladder Symbol
C+1
C
C+2
T+1
T
R+1
R
R+2
Hours
Minutes Seconds
Minutes Seconds
Day Hour
Year Month
Minutes Seconds
Day Hour
Year Month
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
16:20:05
C
T
R
0.00
D100
D200
D300
C: D100
D101
D102
T: D200
D201
R: D300
D301
D302
10 July, 1998
50 hours, 10 minutes, 15 seconds
8 July, 1998
SEC(065)
S
D
S: First source word
D: First destination word