Operation Using a Programmable Logic Controller (PLC)
Read
Read
Read Event
Event
Event Info
Info
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 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 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
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 Event Info
uint32
NONE
16
0 - 16
Argument 0
Event Number
uint32
NONE
4
0 - 199
Acknowledge
Command
Acknowledged
uint32
NONE
2 = ACK
0 - 4
Return 0
Event Date
uint32
[YY:MM:DD-
:DW]
0x0E060302 =
[14:06:03:02]
N/A
Return 1
Event Time
uint32
[xx:HH:MM:SS]
0x080B0B =
[08:11:11]
N/A
Return 2
Event Code Char[3:0]
uint32
NONE
0x30304345 = [‘0’,
’0’, ’C’, ’E’]
N/A
Read
Read
Read Grand
Grand
Grand Totals
Totals
Totals
The Read Grand Totals command allows remote access to the material grand total volume data. No arguments
are necessary for this command.
Example: Read current Grand Total usage data. A = 132 gal, B = 128 gal, A+B = 260 gal, Solvent = 11 gal
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 Grand Totals
uint32
NONE
22
0 – 22
Acknowledge
Command
Acknowledged
uint32
NONE
2 = ACK
0 – 4
Return 0
Grand Total A Material
uint32
Gallons
132
0 –
4,294,967,295
Return 1
Grand Total BMaterial
uint32
Gallons
128
0 –
4,294,967,295
Return 2
Grand Total A+B
uint32
Gallons
260
0 –
4,294,967,295
Return 2
Grand Total Solvent
uint32
Gallons
11
0 –
4,294,967,295
58
3A4486D