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 PD3K+.
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
15
0 - 19
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 Gun
Gun
Gun Potlife
Potlife
Potlife Time
Time
Time
The Read Gun Potlife Time command returns the remaining potlife time, in seconds, for a selected
gun if it is currently loaded and mixed. This command is particularly useful if Multiple Guns is enabled.
See
Appendix B: Multiple Guns, page 118
.
NOTE:
NOTE:
NOTE: This command will return 0xFFFFFFFF if there is no potlife time associated with the recipe or the timer has
not started.
Example: Read Gun 1 potlife time remaining that is currently “12 minutes” for Stage 1 and “15 minutes” for Stage 2.
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 Gun Potlife Time
uint32
NONE
16
0 - 19
Argument 0
Gun Number
uint32
NONE
1
1 - 3
Acknowledge
Command Acknowledged
uint32
NONE
2 = ACK
0 - 4
Return 0
Gun Number
uint32
NONE
1
1 - 3
Return 1
Potlfe Time Remaining
Stage 1
uint32
sec
720
0 - 60000
Return 2
Potlfe Time Remaining
Stage 2
uint32
sec
900
0 - 60000
Return 3
Potlfe Time Remaining
Stage 3
uint32
sec
0xFFFFFFFF
0 - 60000
54
3A6287E