4 |
SVCREQ #7: Change/Read Time-of-Day Clock
Use the SVCREQ function with function number 7 to read and set the
Note
This function is available only in 331 or higher
Successful execution will occur unless:
1.Some number other than 0 or 1 is entered as the requested operation (see below).
2.An invalid data format is specified.
3.The data provided is not in the expected format.
For the date/time functions, the length of the parameter block depends on the data format. BCD format requires 6 words; packed ASCII requires 12 words.
0 = read time and date
1 = set time and date
1 = BCD format
3 = packed ASCII format
data
address
address + 1
address + 2 to end
In word 1, specify whether the function should read or change the values.
0 = read
1 = change
In word 2, specify a data format:
1 | = | BCD |
3 | = | packed ASCII with embedded spaces and colons |
Words 3 to the end of the parameter block contain output data returned by a read function, or new data being supplied by a change function. In both cases, format of these data words is the same. When reading the date and time, words (address + 2) through (address + 8) of the parameter block are ignored on input.
Chapter 4 Series |