4

To Change/Read Date and Time using Packed ASCII with

Embedded Colons Format

In Packed ASCII format, each digit of the time and date items is an ASCII formatted byte. In addition, spaces and colons are embedded into the data to permit it to be transferred unchanged to a printing or display device. This format requires 12 words.

High Byte

 

Low Byte

 

1 = change

or

0 = read

address

 

 

 

 

3

 

 

address + 1

 

 

 

 

year

 

year

address + 2

 

 

 

 

month

 

(space)

address + 3

 

 

 

 

(space)

 

month

address + 4

 

 

 

 

day of month

 

day of month

address + 5

 

 

 

 

hours

 

(space)

address + 6

 

 

 

 

:

 

hours

address + 7

 

 

 

 

minutes

 

minutes

address + 8

 

 

 

 

seconds

 

:

address + 9

 

 

 

 

(space)

 

seconds

address + 10

 

 

 

 

day of week

 

day of week

address + 11

 

 

 

 

Example output parameter block:

Read Date and Time in Packed ASCII Format (Mon, Oct. 2, 1989 at 23:13:00)

 

0

 

 

 

 

3

 

 

 

39

 

38

 

 

 

31

 

20

 

 

 

20

 

30

 

 

 

32

 

30

 

 

 

32

 

20

 

 

 

3A

 

33

 

 

 

33

 

31

 

 

 

30

 

3A

 

 

 

20

 

30

 

 

 

32

 

30

 

 

 

4-148

Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998

GFK-0467K

Page 229
Image 229
GE 90-30/20/Micro manual