Chapter 6. Service Request Function286 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C6.8 SVC_REQ 7: Read or Change the Time-of-Day ClockUse SVC_REQ 7 to read or change the time of day clock in the CPU. The function is successful unless:▪ An invalid number is entered for the requested operation.▪ An invalid data format is specified.▪ Data is provided in an unexpected format.6.8.1 Parameter Block FormatsIn the first two words of the parameter block, you specify whether to read or set the time and date,and which format to use.Address 2-Digit Year Format 4-Digit Year FormatAddress(word 1)0 = read time and date 0 = read time and date1 = set time and date 1 = set time and dateAddress+1(word 2)0 = numeric data format 80h – numeric data format1 = BCD format 81h = BCD format2 = unpacked BCD format 82h = unpacked BCD format3 = packed ASCII format (with embedded spaces and colons) 83h = packed ASCII format4 = POSIX format n/aAddress+2(word 3)to the endData DataWords 3 to the end of the parameter block contain output data returned by a read function, or newdata 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) to the end of the parameter block are ignoredon input.The format and length of the parameter block depends on the data format and number of digitsrequired for the year:Data Format and N-digit Year Length of parameter block(number of words)BCD, 2-digit year 6BCD, 4-digit year 6POSIX format 6Unpacked BCD 2 9Unpacked BCD 4 10Numeric (2 and 4 digit years) 9Packed ASCII, 2-digit year 12Packed ASCII, 4-digit year 13