A-67
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-27 Clock Instructions
A-1-27 Clock Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
CALENDAR
ADD
CADD
@CADD
730 Output Required
CALENDAR
SUBTRACT
CSUB
@CSUB
731 Output Required
HOURS TO
SECONDS
SEC
@SEC
065 Output Required
SECONDS
TO HOURS
HMS
@HMS
066 Output Required
C: 1st calendar
word
T: 1st time word
R: 1st result word
CADD(730)
C
T
R
C+1
C
C+2
T+1
T
R+1
R
R+2
Hours
Adds time to the calendar data in the specified words.
Minutes
Seconds
Minutes Seconds
Day
Hour
Year
Month
Minutes
Seconds
Day
Hour
Year
Month
C: 1st calendar
word
T: 1st time word
R: 1st result word
CSUB(731)
C
T
R
C+1
C
C+2
T+1
T
R+1
R
R+2
−
Hours
Subtracts time from the calendar data in the specified words.
Minutes
Minutes
Seconds
Seconds
Day
Hour
Year
Month
Minutes
Seconds
Day
Hour
Year
Month
SEC(065)
S
D
S: 1st source
word
D: 1st destination
word
Hours
Seconds
Converts time data in hours/minutes/seconds format
to an equivalent time in seconds only.
Minutes
Seconds
HMS(066)
S
D
S: 1st source
word
D: 1st destination
word
Hours
Seconds
Minutes Seconds
Converts seconds data to an equivalent time in
hours/minutes/seconds format.