Graco 332564B Read Alarm Info, Yymmdddw, Example Ascii Character String Decode Algorithm

Page 55

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 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 alarm code is a four-character little endian ASCII string

See System Errors, 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 Register

Parameter Description

Data

Units

Value

Range

 

 

Type

 

 

 

DCS

Read Alarm Info

uint32

NONE

15

0 - 16

Command

 

 

 

 

 

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 =

N/A

 

 

 

 

[14:06:03:02]

 

Return 1

Alarm Time

uint32

[xx:HH:MM:SS]

0x080B0B =

N/A

 

 

 

 

[08:11:11]

 

Return 2

Alarm Code Char[3:0]

uint32

NONE

0x31304B44 = [‘1’,

N/A

 

 

 

 

’0’, ’K’, ’D’]

 

Example 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

Image 55
Contents ProMix PD2K Proportioner for Automatic Spray Applications Important Safety InstructionsContents Manual No Description Related ManualsManual No ECB Labels Models0359 Model AC2000 High Pressure Identification Label Fire and Explosion Hazard Intrinsic Safety Personal Protective Equipment Moisture Sensitivity of Isocyanates Important Isocyanate ISO InformationIsocyanate Conditions Keep Components a and B SeparateGeneral Information Advanced Display Module ADM USB Download ProcedureADM Display USB Upload Procedure ADM Keys and Indicators Function ADM Keys and IndicatorsSoft Key Functions Soft Key IconsKey Function Key Function Screen Icons Navigating the ScreensPower On Pre-operation ChecklistPre-Operation Tasks Flush Before Using Equipment Initial System SetupValve Settings With Color Change Without Color ChangePrime and Fill the System Operation Using Automatic Display Module ADMSpraying Flush Mixed Material PurgingColor Change System ShutdownFlush the System Single Color SystemPD2K Discrete I/O Connections Operation Using a Programmable Logic Controller PLCNetwork Communications and Discrete I/O Discrete I/OAnalog Inputs Digital InputsKEY Discrete I/O Connections on EfcmCGM Overview Communication Gateway Module CGM DetailsCGM Kits ProMix PD2K Network Outputs Output Register 00 Current System ModeNumber Operation Mode Description Network Communication I/O Data MapOutput Register 06 Actual Mix Ratio Output Registers 01, 02, 03, and 04 Pump StatusPump States for Output Registers Description Ber Output Register 05 Actual Mix FlowOutput Register 12 Active Recipe Material B Flush Sequence Output Register 14 Active Recipe Potlife Timeout Set PointOutput Register 27 Safety Interlock Input Status Output Registers 28 36 DCS Command StructureOutput Register 38 40 Software Version Output Register 37 TimeOperation Using a Programmable Logic Controller PLC None Network Output Data Map Read OnlyPSI = ERR = Busy= ACK = NAKProMix PD2K Network Inputs Input Register 00 System Mode CommandInput Register 03 Mix Pump 1 Control Set Point Input Register 02 Flush/Prime Pump CommandInput Register 07 Go to Recipe Number Input Register 10 Gun 1 Trigger Input Register 08 Clear Active AlarmInput Registers 14 21 DCS Command Structure Input Register 09 Job CompleteOperation Using a Programmable Logic Controller PLC Network Input Data Map Write/Read 40180 Gun 3 Trigger Uint32 Purge Mode Sequence Operation Flow ChartsInactive Pump Flush and Prime Sequences Flush Pump CommandChange Color Change SequenceStandby Mix Ready? no Mixing SequenceClear Active Alarm Alarm Clearing SequenceDynamic Command Description Network Communication Dynamic Command Structure DCSDCS List of DCS CommandsDynamic Commands with Command ID Write User IDWrite Recipe Write Flush Sequence Read User ID Write Fluid Control ModeRead Flush Sequence Read RecipeRead Fluid Control Mode Yymmdd Read Job InfoYymmdddw Read Alarm InfoExample Ascii Character String Decode Algorithm Read Event Info Flow Control System Opening Screen Run Mode ScreensHome Screen See Advanced Screen 1, page 82, to set Home Screen Key Description DetailsKey Description Key Description Spray Screen Spray Screen, in Standby ModeFill Screen, Color a Selected Fill ScreenUsage Screen Usage ScreenJobs Screen Errors ScreenEvents Screen Password Screen Setup Mode ScreensSystem Screen Mix Pressure Tolerance Mix Idle TimeoutMix No Flow Timeout Low Flow TimeoutHose Length and Diameter Gun Hose LengthGun Hose Diameter Mix At WallGateway ID EnableManual Override Gun Trigger SignalFlow Control Setpoint Signal Fluid ControlRecipe Screen Flush Screen Pump Screen Default Settings Not Selected Default Settings SelectedPump Screen 3, Pressure Monitoring Disabled Pressure Alarm and Deviation LimitsCalibrate Screen Calibration ScreensVolume Check Screen Enter Measured Volume of Solvent Maintenance Screen Maintenance ScreensMaintenance Screen 4, Color Valve Resets Advanced Screen Download Depth Enable USB Downloads/UploadsLog 90% Full Advisory Enabled Display UnitsPump Pressure Check Calibration ChecksPerform the pressure check Pump Volume Check Scroll to Calibrate Screen 3, Solvent Meter CalibrationSingle Color Systems Color ChangeMultiple Color Systems To Clear Error and Restart System ErrorsGun Trigger Input Function Purge Errors Code Type Description Problem Cause Solution Error CodesMix Errors Code Type Description Problem Cause Solution Pumping Errors Code Type Description Problem Cause Solution EBH# Code Type Description Problem Cause SolutionSAD1 Pressure Errors Code Type Description Problem Cause Solution Qbdx QadxCAC# System Errors Code Type Description Problem Cause SolutionEmix CA0XCDC# CagxCddx USB Errors Code Type Description Problem Cause Solution USB WxudWxuu B9BX B9AXB9SX ENT# Calibration Errors Code Type Name DescriptionEND# ENS0Code Type Name Description Maintenance ErrorsFlushing MaintenancePreventive Maintenance Schedule Cleaning the ADMPositive Displacement Metric Proportioner Technical DataGraco Information Graco Standard WarrantyFor Graco Canada Customers