4

SVCREQ #7: Change/Read Time-of-Day Clock

Use the SVCREQ function with function number 7 to read and set the time-of-day clock in the PLC.

Note

This function is available only in 331 or higher 90-30 CPUs and on the 28-point Series 90 Micro PLC CPUs (that is, IC693UDR005, IC693UAA007, and IC693UDR010) and the 23-point Series 90 Micro PLC CPUs (IC693UAL006).

Successful execution will occur unless:

1.Some number other than 0 or 1 is entered as the requested operation (see below).

2.An invalid data format is specified.

3.The data provided is not in the expected format.

For the date/time functions, the length of the parameter block depends on the data format. BCD format requires 6 words; packed ASCII requires 12 words.

0 = read time and date

1 = set time and date

1 = BCD format

3 = packed ASCII format

data

address

address + 1

address + 2 to end

In word 1, specify whether the function should read or change the values.

0 = read

1 = change

In word 2, specify a data format:

1

=

BCD

3

=

packed ASCII with embedded spaces and colons

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) through (address + 8) of the parameter block are ignored on input.

GFK-0467K

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

4-145

Page 226
Image 226
GE 90-30/20/Micro manual Svcreq #7 Change/Read Time-of-Day Clock