Graco 332564B important safety instructions Read Job Info, Yymmdd

Models: 332564B

1 104
Download 104 pages 58.79 Kb
Page 54
Image 54

Operation Using a Programmable Logic Controller (PLC)

Read Job Info

The Read Job Info command is used to access data from any of the most recent 200 job logs. The argument is the chronological index of the job log, where 0 is the most recent job log and 199 is the 200th most recent.

The date is returned as four-byte packet with each byte holding a two-digit value for (from MSB to LSB) year, month, day, and day of the week (Monday = 01).

The time is returned as a three-byte packet with each byte holding a two-digit value. Starting from the MSB, the first byte can be ignored, then hour, minute, and second.

NOTE: The argument is an index not a job number. The actual job number will, however, be one of the returned parameters. These records will match what is reported on the Jobs screen of the ADM.

(See Usage Screen, page 64, for more details on Job Log)

Example: Read back the most recent job log, job 25, which ran recipe 2 for a total of 1234 cc’s of material under User ID “John Doe”. The job was logged on Thursday May 29, 2014 at 11:22:14 AM.

DCS Register

Parameter Description

Data Type

Units

Value

Range

 

 

 

 

 

 

 

DCS

Read Job Info

uint32

NONE

14

0

- 16

Command

 

 

 

 

 

 

Argument 0

Job Index

uint32

NONE

0

0

– 199

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Acknowledge

Command

uint32

NONE

2 = ACK

0

- 4

 

Acknowledged

 

 

 

 

 

Return 0

Job Date

uint32

[YY:MM:DD-

0x0E051D04 =

N/A

 

 

 

:DW]

[14:05:29:04]

 

 

Return 1

Job Time

uint32

[xx:HH:MM-

0x0B160E =

N/A

 

 

 

:SS]

[11:22:14]

 

 

Return 2

Job Number

uint32

NONE

25

0

- 9999

 

 

 

 

 

 

 

Return 3

Recipe #

uint32

NONE

2

0

- 60

Return 4

A+B Volume

uint32

cc

1234

N/A

 

 

 

 

 

 

Return 5

User ID [3:0] (ASCII)

uint32

NONE

0x6E686F4A = [‘n’,

N/A

 

 

 

 

’h’, ’o’, ’J’]

 

 

Return 6

User ID [7:4] (ASCII)

uint32

NONE

0x656F4420 = [‘e’,

N/A

 

 

 

 

’o’, ’D’ ‘ ’]

 

 

Return 7

User ID [9:8] (ASCII)

uint32

NONE

0

N/A

54

332564B

Page 54
Image 54
Graco 332564B important safety instructions Read Job Info, Yymmdd