4

Parameter Block Contents

Parameter block contents for the different data formats are shown on the following pages. For both data formats:

Hours are stored in 24-hour format.

Day of the week is a numeric value:

Value

Day of the Week

 

 

 

 

1

Sunday

 

 

2

Monday

 

 

3

Tuesday

 

 

4

Wednesday

 

 

5

Thursday

 

 

6

Friday

 

 

7

Saturday

 

 

To Change/Read Date and Time Using BCD Format:

In BCD format, each of the time and date items occupies a single byte. This format requires six words. The last byte of the sixth word is not used. When setting the date and time, this byte is ignored; when reading date and time, the function returns a null character (00).

High Byte

 

Low Byte

 

1 = change

or

0 = read

address

 

 

 

 

1

 

 

address + 1

 

 

 

 

month

 

year

address + 2

 

 

 

 

hours

 

day of month

address + 3

 

 

 

 

seconds

 

minutes

address + 4

 

 

 

 

(null)

 

day of week

address + 5

 

 

 

 

Example output parameter block: Read Date and Time in BCD format (Sun., July 3, 1988, at 2:45:30 p.m.)

 

0

 

 

 

 

1

 

 

 

07

 

88

 

 

 

14

 

03

 

 

 

30

 

45

 

 

 

00

 

01

 

 

 

GFK-0467K

Chapter 4 Series 90-30/20/Micro Instructions Set

4-147

Page 228
Image 228
GE 90-30/20/Micro manual Parameter Block Contents, To Change/Read Date and Time Using BCD Format