Svcreq 7 Parameter Block Content: Bcd Format - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Parameter Block Format:
High Byte: Low Byte
1 = change or 0 = read
1 (BCD format)
month
hours
seconds
(null)
Parameter Block Format:
High Byte: Low Byte
1 = change or 0 = read
81h (BCD format, 4-digit)
year
day of
month
minutes
day of week
206
GFK-1503E
For public disclosure
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.
11.8.2.1 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.
address
address + 1
year
address + 2
day of month
address + 3
minutes
address + 4
day of week
address + 5
11.8.2.2 4-Digit Year
The parameter block has six words. All bytes are used.
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
45 (minutes)
(seconds)
06 (Friday)
0
Example:
Read Date and Time in BCD format
(Sun., July 3, 1998, at 2:45:30 p.m.)
00 (read)
0
81h (BCD, 4-digit)
0
19 (year)
98 (year)
03 (day)
07 (July)
45 (minutes)
14 (hours)
06 (Friday)
30 (seconds)
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents