Svcreq 7: Read Or Change The Time-Of-Day Clock; Parameter Block Format For Svcreq 7 - Emerson PaCSystems VersaMax Series User Manual

Table of Contents

Advertisement

User Manual
GFK-1503F
Figure 185
11.8
SVCREQ 7: Read or Change the Time-of-Day
Clock
Use SVCREQ 7 to read or change the time of day clock in the PLC. The data can be either BCD
or ASCII. Either 2-digit-year or 4-digit-year format is available. The function is successful
unless some number other than 0 (read) or 1 (change) is entered for the requested
operation, or an invalid data format is specified, or data is provided in an unexpected format.
11.8.1

Parameter Block Format for SVCREQ 7

For the date/time functions, the length of the parameter block depends on the data format.
The data block is either BCD or ASCII. BCD format requires 6 words; packed ASCII requires
12 words (13 words for 4-digit year). For both data types:
Hours are stored in 24-hour format.
Day of the week is a numeric value from 1 (Sunday) to 7 (Saturday).
address
address + 1
address + 2 to
end
The Service Request Function
2-Digit Year Format
0 = read time and date
1 = set time and date
1 = BCD format
3 = packed ASCII format
data
4-Digit Year Format
0 = read time and date
1 = set time and date
81h = BCD format
83h = packed ASCII format
data
Chapter 11
Jan 2020
184

Advertisement

Table of Contents
loading

Table of Contents