![background image](http://html.mh-extra.com/html/graco/promix-pd3k-plus/promix-pd3k-plus_operation_2251575053.webp)
Operation Using a Programmable Logic Controller (PLC)
Read
Read
Read Alarm
Alarm
Alarm Info
Info
Info
The Read Alarm Info command allows remote access to any of the last 200 alarms logged by the ProMix PD3K+. 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 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 alarm code is a four-character little endian ASCII string
See
, 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
DCS
DCS Register
Register
Register
Parameter
Parameter
Parameter Description
Description
Description
Data
Data
Data
Type
Type
Type
Units
Units
Units
Value
Value
Value
Range
Range
Range
DCS
Command
Read Alarm Info
uint32
NONE
14
0 - 19
Argument 0
Alarm Index
uint32
NONE
1
0 - 199
Acknowledge
Command Acknowledged
uint32
NONE
2 = ACK
0 - 4
Return 0
Alarm Date
uint32
[YY:MM:DD:DW]
0x0E060302 =
[14:06:03:02]
N/A
Return 1
Alarm Time
uint32
[xx:HH:MM:SS]
0x080B0B =
[08:11:11]
N/A
Return 2
Alarm Code Char[3:0]
uint32
NONE
0x31304B44 = [‘1’,
’0’, ’K’, ’D’]
N/A
Example
Example
Example ASCII
ASCII
ASCII Character
Character
Character String
String
String Decode
Decode
Decode Algorithm:
Algorithm:
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’;
3A6287E
53