Operation Using a Programmable Logic Controller (PLC)

Read Event Info

The Read Event Info command allows remote access to any of the last 200 events logged by the ProMix PD2K. The argument is the chronological index of the events log, where 0 is the most recent event and 199 is the 200th most recent.

The date is returned as a 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.

The event code is a four-character little endian ASCII string.

The example decoding algorithm provided above for the Alarm Code may be used for Events equivalently.

Example: Read back the fifth most recent event, which was a Setup Value(s) Changed (EC00) recorded on Tuesday June 3, 2014 at 8:11 AM.

DCS Register

Parameter Description

Data

Units

Value

Range

 

 

Type

 

 

 

 

 

 

 

 

 

 

 

DCS

Read Event Info

uint32

NONE

16

0

- 16

Command

 

 

 

 

 

 

Argument 0

Event Number

uint32

NONE

4

0

- 199

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Acknowledge

Command

uint32

NONE

2 = ACK

0

- 4

 

Acknowledged

 

 

 

 

 

Return 0

Event Date

uint32

[YY:MM:DD-

0x0E060302 =

N/A

 

 

 

:DW]

[14:06:03:02]

 

 

Return 1

Event Time

uint32

[xx:HH:MM:SS]

0x080B0B =

N/A

 

 

 

 

[08:11:11]

 

 

Return 2

Event Code Char[3:0]

uint32

NONE

0x30304345 = [‘0’,

N/A

 

 

 

 

’0’, ’C’, ’E’]

 

 

56

332564B

Page 56
Image 56
Graco 332564B important safety instructions Read Event Info