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