Svcreq 7 Parameter Block Content: Bcd Format - Emerson PaCSystems VersaMax Series User Manual

Table of Contents

Advertisement

User Manual
GFK-1503F
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) to the end of the
parameter block are ignored on input.
11.8.2

SVCREQ 7 Parameter Block Content: BCD Format

In BCD format, each time and date item occupies one byte, so the parameter block has six
words.
2-Digit Year
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 00.
Parameter Block Format:
High Byte: Low Byte
1 = change or 0 = read
1 (BCD format)
month
hours
seconds
(null)
4-Digit Year
The parameter block has six words. All bytes are used.
Parameter Block Format:
High Byte: Low Byte
1 = change or 0 = read
81h (BCD format, 4-digit)
month
day of month
minutes
day of week
The Service Request Function
address
address + 1
year
address + 2
day of month
address + 3
minutes
address + 4
day of week
address + 5
address
address + 1
year
address + 2
month
address + 3
hours
address + 4
seconds
address + 5
Example:
Read Date and Time in BCD format
(Sun., July 3, 1998, at 2:45:30
p.m.)
0 (read)
1 (BCD format)
07 (July)
98 (year)
14 (hours)
03 (day)
30 (seconds)
45 (minutes)
0
06 (Friday)
Example:
Read Date and Time in BCD format
(Sun., July 3, 1998, at 2:45:30
p.m.)
0
00 (read)
0
81h (BCD, 4-digit)
19 (year)
98 (year)
03 (day)
07 (July)
45 (minutes)
14 (hours)
06 (Friday)
30 (seconds)
Chapter 11
Jan 2020
185

Advertisement

Table of Contents
loading

Table of Contents