Graco 332564B Paint Sprayer User Manual


 
Operation Using
a Programmable Logic Controller (PLC)
Read Alarm Info
The Read Alarm Info command allows remote access to any of the last 200 alarms logged by the ProMix
PD2K. The argument is the
chronological index
of the alarm log, where 0 is the most recent alarm and 199 is
the 200
th
most recent.
The date is ret
urned as a four-byte packet with each byte holding a two-digit value for (from MSB to LSB) year,
month, day, a
nd day of the week (Monday = 01).
Thetimeisreturnedasathree-bytepacketwitheachbyteholdingatwo-digit value. Starting from the MSB,
the first byte can be ignored, then hour, minute, and second.
The alarm code is a four-character little endian ASCII string
See System E
rrors, page 88, for more details on these Event Types.
An example decoding algorithm is provided below.
Example: Read back the second most recent alarm, which was a Position Pump 1 (DK01) recorded on
Tuesday June 3, 2014 at 8:11 AM.
DCS Regis
ter
Parameter Description Data
Type
Units Value Range
DCS
Command
Read Alarm Info
uint32
NONE
15 0 - 16
Argument 0 Alarm Index uint32
NONE
10-199
Acknowledge
Command Acknowledged
uint32
NONE 2 = ACK
0-4
Return
0
Alarm D
ate
uint32 [YY:MM
:DD:DW]
0x0E06
0302 =
[14:06
:03:02]
N/A
Return 1 Alarm Time uint32
[xx:HH:MM:SS]
0x080B0B =
[08:11:11]
N/A
Return 2
Alar
m Code Char[3:0]
uint32
NONE 0x31
304B44 = [‘1’,
’0’,
’K’, ’D’]
N/A
Exam
ple ASCII Character String Decode Algorithm:
character_str[0] = Return_2 & 0xFF;
character_str[1] = (Return_2 >> 8) & 0xFF;
character_str[2] = (Return_2 >> 16) & 0xFF;
character_str[3] = (Return_2 >> 24) & 0xFF;
character_str[4] = ‘\0’;
332564B 55