Compare commits

57 Commits
1.1 ... master

Author SHA1 Message Date
Joshua Fine
41b9dd4736 Fixed High Pressure Switch Alarm Latch
Changed routine R005_Alarm Rung 4, second branch to OTE from OTL.
2018-09-18 16:29:09 -05:00
Trev1919
1bb1355c21 Unknown 2018-09-04 09:59:05 -05:00
Patrick McDonagh
3ee9930fd5 Fix for E300 not resetting in combined PLC program 2018-06-12 15:01:43 -05:00
Patrick McDonagh
3623c22a6e Fixes missing IO in PLC Program 2018-06-11 13:41:33 -05:00
Patrick McDonagh
60b8fec16c Organizes files 2018-05-22 12:00:33 -05:00
Patrick McDonagh
603f73f234 Merge branch 'master' of https://github.com/Henry-Pump/MaxWaterSystem-PWM 2018-05-01 13:18:45 -05:00
Patrick McDonagh
ef2a9c0766 Fix High Pressure Alarm Latch
was using OTL instead of OTE
2018-05-01 13:18:40 -05:00
Patrick McDonagh
df9399b982 Merge branch 'master' of https://github.com/Henry-Pump/Pioneer-IPP 2018-04-24 17:01:24 -05:00
Patrick McDonagh
8c9db06624 More fixes for broken buttons 2018-04-24 17:01:18 -05:00
Patrick McDonagh
3b7418fb13 Merge branch 'master' of https://github.com/Henry-Pump/MaxWaterSystem-PWM 2018-04-24 16:59:33 -05:00
Patrick McDonagh
8869c9a054 Adds backup file for radio, fixes for first WW install 2018-04-24 16:59:24 -05:00
Patrick McDonagh
1beb395dd7 Fix broken buttons 2018-04-24 15:27:51 -05:00
Patrick McDonagh
67afba71da Updates NAT file 2018-04-23 15:20:07 -05:00
Patrick McDonagh
88c5d423c8 A few changes after testing.
- disables HMI stuff for DH sensor if DH sensor disabled
2018-03-23 16:33:06 -05:00
Patrick McDonagh
8df6c024d5 Set theme jekyll-theme-slate 2018-03-21 11:59:57 -05:00
Patrick McDonagh
7695b80f42 Add docs folder for github pages 2018-03-21 11:56:26 -05:00
Patrick McDonagh
f7018d40c5 Completes MAXH2O-33, MAXH2O-40, MAXH2O-43, and MAXH2O-50. 2017-11-14 08:58:33 -06:00
Patrick McDonagh
6a108b5a64 MAXH2O-30, MAXH2O-31, MAXH2O-34, MAXH2O-35, MAXH2O-36, MAXH2O-39, MAXH2O-43 complete. Work on MAXH2O-33, MAXH2O-42, MAXH2O-40. 2017-11-07 18:33:54 -06:00
Patrick McDonagh
0108c1a459 adds ability to enable analog dh sensor 2017-10-03 16:09:21 -05:00
Patrick McDonagh
a736ba6c52 Fixes a few errors in scaling 2017-10-03 15:52:38 -05:00
Patrick McDonagh
2cc56b4b02 Removes empty rung 2017-06-27 16:34:35 -05:00
Patrick McDonagh
a3ae505db7 Add temporary registers to make troubleshooting and swapping easy 2017-06-27 16:07:59 -05:00
Patrick McDonagh
82bedc2cfc Adds initial file for testing Baker Hughes DH Probe 2017-06-27 16:00:05 -05:00
Patrick McDonagh
4ae3ab9253 Adds new All Analog program for testing 2017-05-31 14:43:53 -05:00
Patrick McDonagh
fbd2b41b52 Moves cfg_Flowmeter type to Controller Scope 2017-04-03 16:02:58 -05:00
Patrick McDonagh
d1e3e56393 Updated file to fix security issue 2017-03-29 17:49:47 -05:00
Patrick McDonagh
2c84acae4a Merge remote-tracking branch 'origin/master'
# Conflicts:
#	PWM_Water_Meter_Skid_Rev_HP.ACD
2017-03-29 12:47:58 -05:00
Patrick McDonagh
a358501870 Updated to add modbus flowmeter logic 2017-03-29 12:46:23 -05:00
Patrick McDonagh
5aa8089ceb Changes Downhole Sensor Node ID to 234
For default out-of-box configuration
2017-03-10 13:37:05 -06:00
Patrick McDonagh
bc60b1ce48 Fixes a few graphics issues 2016-10-17 17:19:25 -05:00
Patrick McDonagh
e36171770a Corrects analog calculation for Tubing Pressure 2016-10-13 11:18:28 -05:00
Patrick McDonagh
093112e716 Removes old NAT config file 2016-10-06 16:42:50 -05:00
Patrick McDonagh
18896abfc6 Creates new Freshwater Well program 2016-09-27 10:23:31 -05:00
Patrick McDonagh
926b2dcaf6 Fix for IPP-163, adds 30 second delay to lightning arrestor trip 2016-09-26 16:47:49 -05:00
Patrick McDonagh
3f159ceb9a Fixes IPP-160 and IPP-161
Tubing pressure failure was using wrong channel, alarms were looking at wrong tubing pressure value
2016-09-22 14:40:58 -05:00
Patrick McDonagh
e1f538d108 Adds default NAT config with firewall disabled 2016-09-20 10:30:31 -05:00
Patrick McDonagh
79a6ad4ec5 Updated files and added files for automatic configuration of PLC and HMI 2016-09-15 16:54:43 -05:00
Patrick McDonagh
d43d4ebc30 Fixes Tubing Pressure Start Permissive text overflow and missing animation 2016-09-13 13:12:03 -05:00
Patrick McDonagh
1b917792b2 Completes IPP-145. Device will show indication of Tubing Pressure holding out start when pressure switch is tripped 2016-09-09 14:49:26 -05:00
Patrick McDonagh
38f834c0f4 Completes IPP-142, smart calculation of Tubing Pressure 2016-09-08 18:06:04 -05:00
Patrick McDonagh
bd0b90a867 Merge branch 'master' of http://bitbucket.poconsole.net/scm/ipp/pioneer-ipp 2016-08-31 12:55:32 -05:00
Patrick McDonagh
1499823707 Updated NAT rules
Set default NAT address to 192.168.1.39, change DL Port mapping to 8022 from 22
2016-08-31 11:19:31 -05:00
Patrick McDonagh
2423970939 Revert "Updates NAT config file"
This reverts commit a43f80cd2e.
2016-08-30 09:42:55 -05:00
Patrick McDonagh
a43f80cd2e Updates NAT config file 2016-08-26 15:11:08 -05:00
Patrick McDonagh
226fa60bd3 adds Minutes and Seconds until startup 2016-08-19 17:10:04 -05:00
Patrick McDonagh
cabd5046c8 Fixes DH Status always reading 0 2016-08-18 16:18:15 -05:00
Patrick McDonagh
a038f783df Completes IPP-129 2016-08-18 14:16:52 -05:00
Patrick McDonagh
94204c1958 Fixes Pioneer IPP-125, IPP-126, IPP-127, IPP-128 2016-08-17 17:03:43 -05:00
Patrick McDonagh
e3198efa7e Adds Overall_Trip_Status_Timestamp per IPP-124 2016-08-15 18:27:05 -05:00
Patrick McDonagh
373a8bdfda Sets the starting flow totalizing values to 0 2016-08-15 16:36:21 -05:00
Patrick McDonagh
5573de4a88 Adds default configuration file for NAT 2016-08-11 14:51:49 -05:00
Patrick McDonagh
6e03647d38 Completes IPP-110, IPP-111, IPP-112. Display for %FLA, Fix for not reading Frequency or Phase Rotation 2016-08-10 19:22:30 -05:00
Patrick McDonagh
ed19a7d91e Tag Cleanup 2016-08-10 15:13:31 -05:00
Patrick McDonagh
40d02118a5 Updates IP Address in PLC program for behind NAT 2016-08-10 14:14:38 -05:00
Patrick McDonagh
ae150eb329 Updates IP Address in HMI program for behind NAT 2016-08-10 14:03:19 -05:00
Patrick McDonagh
df6a720806 Merge branch 'master' of http://bitbucket.poconsole.net/scm/ipp/pioneer-ipp
# Conflicts:
#	PWM_Water_Meter_Skid_Rev_HP.ACD
2016-08-10 12:00:22 -05:00
Patrick McDonagh
6eb942c83c Completes IPP-108, adding 30 second delay timer for High Pressure Switch 2016-08-10 11:59:08 -05:00
35 changed files with 44762 additions and 18460 deletions

View File

@@ -0,0 +1 @@
PV800_DHMonitor_Pioneer;2711R-T4T;\\Mac\Home\GitHub\Henry-Pump\MaxWaterSystem-PWM\Pioneer_IPP_CCW\PVc Project

Binary file not shown.

9481
PLC/PWM_Freshwater_Well.ACD Normal file

File diff suppressed because one or more lines are too long

10226
PLC/PWM_SantaRosa_WW.ACD Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
PV800_DHMonitor;2711R-T4T;C:\Users\Patrick\Documents\Henry_Pump\pioneer_ipp\Pioneer_IPP_CCW\PVc Project

450
README.md
View File

@@ -1,450 +1,10 @@
# Pioneer Natural Resources Intelligent Pump Panel
## Developed by Patrick McDonagh, Henry Pump
# PWM Intelligent Pump Panel
# Wiring Guide
Pump Panel for controlling Santa Rosa Water Wells.
## Digital Inputs
| Input | Device |
|---------- | --------------------- |
| 0 | Legacy Contactor |
| 1 | Legacy HOA Auto |
| 2 | Legacy Start Button |
| 3 | High Pressure Switch |
| 4 | UPS Ready |
| 5 | UPS Buffering |
| 6 | UPS Replace Battery |
| 7 | Lightning Arrestor |
For detailed information see the [project documentation](https://henry-pump.github.io/PWM-IPP).
## Digital Outputs
## Contributors
| Output | Device |
|---------- | --------------------- |
| 0 | Legacy Contactor |
## Analog Inputs
| Input | Device |
|---------- | --------------------- |
| 0 | Pressure Transmitter |
| 1 | Flowmeter |
## E300 Inputs
| Input | Device |
|---------- | --------------------- |
| 0 | Contactor |
| 1 | Start Button |
| 2 | Auto Mode Switch |
| 3 | Hand Mode Switch |
## E300 Outputs
| Output | Device |
|---------- | --------------------- |
| 0 | Contactor |
# Integer Status Mappings
## Device Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Unknown |
| 1 | Startup |
| 2 | Not Ready to Start |
| 3 | Lost Run Permissive |
| 4 | Running |
| 5 | Contactor Failure, Recovering |
| 6 | Waiting to attempt restart |
| 7 | Waiting to restart after overload |
| 8 | User stopped |
## Downhole Tool Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | OK |
| 1 | Connecting |
| 2 | Open Circuit |
| 3 | Shorted |
| 4 | Cannot Decode |
| 5 | Unknown |
| 6 | Disabled |
## HOA Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Auto |
| 1 | Hand |
| 2 | Off |
## UPS Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Ready |
| 1 | Charging |
| 2 | Active |
| 3 | Bad Battery |
## Current Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | OK |
| 0 | Overload |
| 1 | Phase Loss |
| 2 | Ground Fault |
| 3 | Stall |
| 4 | Jam |
| 5 | Underload |
| 6 | Current Imbalance |
| 7 | L1 Undercurrent |
| 8 | L2 Undercurrent |
| 9 | L3 Undercurrent |
| 10 | L1 Overcurrent |
| 11 | L2 Overcurrent |
| 12 | L3 Overcurrent |
| 13 | L1 Line Loss |
| 14 | L2 Line Loss |
| 15 | L3 Line Loss |
## Voltage Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | OK |
| 0 | Undervoltage |
| 1 | Overvoltage |
| 2 | Voltage Imbalance |
| 3 | Phase Rotation |
| 4 | Underfrequency |
| 5 | Overfrequency |
## Control Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | Test |
| 0 | PTC |
| 1 | DeviceLogix |
| 2 | Operator Station |
| 3 | Remote |
| 4 | Blocked Start |
| 5 | Hardware Fault |
| 6 | Config |
| 7 | Option Match |
| 8 | DeviceLogix FB Timeout |
| 9 | Expansion Bus |
| 10 | Reserved |
| 11 | Reserved |
| 12 | Non-Volatile Storage |
| 13 | Test Mode |
## Power Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | OK |
| 0 | Under kW |
| 1 | Over kW |
| 2 | Under kVAR Consumed |
| 3 | Over kVAR Consumed |
| 4 | Under kVAR Generated |
| 5 | Over kVAR Generated |
| 6 | Under kVA |
| 7 | Over kVA |
| 8 | Under PF Lagging |
| 9 | Over PF Lagging |
| 10 | Under PF Leading |
| 11 | Over PF Leading |
## Overall Device Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Running |
| 1 | HOA in Off |
| 2 | Remote Stop |
| 3 | Local Stop |
| 4 | Timer Stop |
| 5 | Downhole Pressure |
| 6 | Downhole Temperature |
| 7 | Tubing Pressure |
| 8 | Low Flow |
| 9 | Current: Overload |
| 10 | Current: Phase Loss |
| 11 | Current: Ground Fault |
| 12 | Current: Stall |
| 13 | Current: Jam |
| 14 | Current: Underload |
| 15 | Current: Current Imbalance |
| 16 | Current: L1 Undercurrent |
| 17 | Current: L2 Undercurrent |
| 18 | Current: L3 Undercurrent |
| 19 | Current: L1 Overcurrent |
| 20 | Current: L2 Overcurrent |
| 21 | Current: L3 Overcurrent |
| 22 | Current: L1 Line Loss |
| 23 | Current: L2 Line Loss |
| 24 | Current: L3 Line Loss |
| 25 | Voltage: Undervoltage |
| 26 | Voltage: Overvoltage |
| 27 | Voltage: Voltage Imbalance |
| 28 | Voltage: Phase Rotation |
| 29 | Voltage: Underfrequency |
| 30 | Voltage: Overfrequency |
| 31 | E300 Hardware Fault |
| 32 | E300 Config |
| 33 | E300 Option Match |
| 34 | E300 Non-Volatile Storage |
| 35 | Power: Under kW |
| 36 | Power: Over kW |
| 37 | Power: Under kVAR Consumed |
| 38 | Power: Over kVAR Consumed |
| 39 | Power: Under kVAR Generated |
| 40 | Power: Over kVAR Generated |
| 41 | Power: Under kVA |
| 42 | Power: Over kVA |
| 43 | Power: Under PF Lagging |
| 44 | Power: Over PF Lagging |
| 45 | Power: Under PF Leading |
| 46 | Power: Over PF Leading |
# SCADA Tags
| TYPE | CATEGORY | NAME | DESCRIPTION | DATATYPE |
|-------|------------------|------------------------------------|--------------------------------------------------------------------------|----------|
| TAG | Command | cfg_READ | Read configuration from Energy Monitor | BOOL |
| TAG | Command | cfg_WRITE | Write configuration to Energy Monitor | BOOL |
| TAG | Command | SCADA_ALM_RESET | Reset All Alarms | BOOL |
| TAG | Command | SCADA_START_PUMP_BIT | Start from SCADA | BOOL |
| TAG | Command | SCADA_STOP_PUMP_BIT | Stop from SCADA | BOOL |
| TAG | Command | Set_Default_E300_Configuration | Set E300 to Default Configurations | BOOL |
| TAG | Command | Set_PLC_Time | Command to set PLC time | BOOL |
| TAG | Command | Start_Command | Start Command | BOOL |
| TAG | Command | Stop_Command | Stop Command | BOOL |
| ALIAS | Command | TripResetCmd | Trip Reset Command | BOOL |
| TAG | Device Config | cfg_DHSensorDistToIntake | Feet from Sensor to Pump Intake | REAL |
| TAG | Device Config | cfg_E300_Disabled | Energy Monitor is Disabled | BOOL |
| TAG | Device Config | cfg_SpecificGravity | Fluid Specific Gravity | REAL |
| TAG | Device Config | DH_Pressure_Shutdown | | REAL |
| TAG | Device Config | DH_Pressure_Shutdown_Enabled | | BOOL |
| TAG | Device Config | DH_Pressure_Startup | | REAL |
| TAG | Device Config | DH_Pressure_Startup_Enabled | | BOOL |
| TAG | Device Config | DH_Temp_Shutdown | | REAL |
| TAG | Device Config | DH_Temp_Shutdown_Enabled | | BOOL |
| TAG | Device Config | DH_Temp_Startup | | REAL |
| TAG | Device Config | DH_Temp_Startup_Enabled | | BOOL |
| TAG | Device Config | Downtime_Time_Parameter | Seconds to wait while tripped for any reason other than Overload | DINT |
| TAG | Device Config | Downtime_Time_Parameter_OL | Seconds to wait while tripped for Overload | DINT |
| TAG | Device Config | HI_PSI_ALM_SETPOINT | High Tubing Pressure Alarm Setpoint | REAL |
| TAG | Device Config | Input_DateTime.Day | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Hour | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Microsecond | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Minute | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Month | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Second | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Year | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | LO_FLOW_ALM_SETPOINT | Low Flow Alarm Setpoint | REAL |
| TAG | Device Config | LO_PSI_ALM_SETPOINT | Low Tubing Pressure Alarm Setpoint | REAL |
| TAG | Device Status | Auto_Mode | Auto Mode | BOOL |
| TAG | Device Status | Contactor_Status | Contactor Status | BOOL |
| TAG | Device Status | DATETIME.Day | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Hour | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Microsecond | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Minute | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Month | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Second | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Year | Current Controller Datetime | DINT |
| TAG | Device Status | Device_Status | Device Status String | STRING |
| TAG | Device Status | Device_Status_INT | Integer for Device Status Indication | DINT |
| TAG | Device Status | DH_DownholeStatus | Downhole Monitor Status | STRING |
| TAG | Device Status | DH_DownholeStatus_INT | Integer for Downhole Monitor Status | INT |
| TAG | Device Status | Downhole_Tool_Enabled | Downhole Monitor is Enabled | BOOL |
| ALIAS | Device Status | E300_Auto_Mode_Switch | Auto Mode Switch Input 02 on E300 | BOOL |
| ALIAS | Device Status | E300_Contactor_Input | Contactor Status Input 00 on E300 | BOOL |
| ALIAS | Device Status | E300_Hand_Mode_Switch | Hand Mode Switch Input 03 on E300 | BOOL |
| ALIAS | Device Status | E300_Start_Button | Start Button Input 01 on E300 | BOOL |
| TAG | Device Status | Hand_Mode | Hand Mode | BOOL |
| TAG | Device Status | HI_PSI_SHUTDOWN_ALM | High Tubing Pressure Alarm Active | BOOL |
| ALIAS | Device Status | High_Pressure_Switch | High Pressure Switch, Fail-Low, (1 = OK) | BOOL |
| TAG | Device Status | HOA_Status | HOA position (0 = Auto, 1 = Hand, 2 = Off) | BOOL |
| TAG | Device Status | Lightning_Arrestor_Tripped | Lighning Arrestor is Tripped | BOOL |
| TAG | Device Status | LO_FLOW_ALM | Low Flow Alarm Active | BOOL |
| TAG | Device Status | LO_PSI_SHUTDOWN_ALM | Low Tubing Pressure Alarm Active | BOOL |
| TAG | Device Status | Off_Mode | Off Mode | BOOL |
| TAG | Device Status | Overall_Trip_Status | Overall Trip Status (Mapped from Overall_Trip_Status_INT) | STRING |
| TAG | Device Status | Overall_Trip_Status_INT | Overall Trip Status Integer | DINT |
| TAG | Device Status | Overall_Warning_Status | Overall Warning Status (Mapped from Overall_Warning_Status) | STRING |
| TAG | Device Status | Overall_Warning_Status_INT | Overall Warning Status Integer | DINT |
| TAG | Device Status | Time_Until_Startup | Seconds until device startup | DINT |
| TAG | Device Status | TubingPressure | Scaled Tubing Pressure Measurment | REAL |
| ALIAS | Device Status | UPS_Buffering | UPS is Buffering. | BOOL |
| ALIAS | Device Status | UPS_Ready | UPS is Ready | BOOL |
| ALIAS | Device Status | UPS_ReplaceBattery | UPS Battery needs Replacing | BOOL |
| TAG | Device Status | UPS_Status_INT | UPS Status Integer | DINT |
| TAG | Device Status | UPS_Status | UPS Status String (mapped from UPS_Status_INT) | STRING |
| TAG | Downhole Monitor | DH_Fluid_Level | Fluid Level above the Pump Intake | REAL |
| TAG | Downhole Monitor | DH_IntakePressure | Pump Intake Pressure (measured at sensor) | REAL |
| TAG | Downhole Monitor | DH_IntakeTemperature | Pump Intake Temperature | REAL |
| TAG | Downhole Monitor | DH_Pressure_Offset | Ambient Pressure Offset | REAL |
| TAG | Downhole Monitor | DH_PSIRating | PSI Rating of Instrument (/1000) | DINT |
| TAG | Energy Config | cfg_GF_GroundFaultInhibitTime | Ground Fault Inhibit Time | SINT |
| TAG | Energy Config | cfg_GF_GroundFaultTripDelay | Ground Fault Trip Delay | REAL |
| TAG | Energy Config | cfg_GF_GroundFaultTripLevel | Ground Fault Trip Level | REAL |
| TAG | Energy Config | cfg_GF_GroundFaultWarningDelay | Ground Fault Warning Delay | REAL |
| TAG | Energy Config | cfg_GF_GroundFaultWarningLevel | Ground Fault Warning Level | REAL |
| TAG | Energy Config | cfg_I_CTPrimary | Current Transformer Primary Ratio | INT |
| TAG | Energy Config | cfg_I_CTSecondary | Current Transformer Secondary Ratio | INT |
| TAG | Energy Config | cfg_I_CurrentImbalanceInhibitTime | Current Imbalance Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_CurrentImbalanceTripDelay | Current Imbalance Trip Delay | REAL |
| TAG | Energy Config | cfg_I_CurrentImbalanceTripLevel | Current Imbalance Trip Level | SINT |
| TAG | Energy Config | cfg_I_CurrentImbalanceWarningLevel | Current Imbalance Warning Level | SINT |
| TAG | Energy Config | cfg_I_FLASetting | Motor FLA | REAL |
| TAG | Energy Config | cfg_I_JamInhibitTime | Jam Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_JamTripDelay | Jam Trip Delay | REAL |
| TAG | Energy Config | cfg_I_JamTripLevel | Jam Trip Level | INT |
| TAG | Energy Config | cfg_I_JamWarningLevel | Jam Warning Level | INT |
| TAG | Energy Config | cfg_I_LineLossInhibitTime | Line Loss Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_LineLossTripDelay | Line Loss Trip Delay | REAL |
| TAG | Energy Config | cfg_I_OvercurrentInhibitTime | Overcurrent Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_OvercurrentTripDelay | Overcurrent Trip Delay | REAL |
| TAG | Energy Config | cfg_I_OvercurrentTripLevel | Overcurrent Trip Level | SINT |
| TAG | Energy Config | cfg_I_OvercurrentWarningLevel | Overcurrent Warning Level | SINT |
| TAG | Energy Config | cfg_I_StallEnabledTime | Stall Enabled Time | SINT |
| TAG | Energy Config | cfg_I_StallTripLevel | Stall Trip Level | INT |
| TAG | Energy Config | cfg_I_UndercurrentInhibitTime | Undercurrent Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_UndercurrentTripDelay | Undercurrent Trip Delay | REAL |
| TAG | Energy Config | cfg_I_UndercurrentTripLevel | Undercurrent Trip Level | SINT |
| TAG | Energy Config | cfg_I_UndercurrentWarningLevel | Undercurrent Warning Level | SINT |
| TAG | Energy Config | cfg_I_UnderloadInhibitTime | Underload Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_UnderloadTripDelay | Underload Trip Delay | REAL |
| TAG | Energy Config | cfg_I_UnderloadTripLevel | Underload Trip Level | SINT |
| TAG | Energy Config | cfg_I_UnderloadWarningLevel | Underload Warning Level | SINT |
| TAG | Energy Config | cfg_PL_PhaseLossInhibitTime | Phase Loss Inhibit Time | SINT |
| TAG | Energy Config | cfg_PL_PhaseLossTripDelay | Phase Loss Trip Delay | REAL |
| TAG | Device Config | cfg_PressureSwitchDisabled | High Pressure Switch is Disabled | BOOL |
| TAG | Energy Config | cfg_TCU_OLResetLevel | Thermal Capacity Utilization Overload Reset Level | SINT |
| TAG | Energy Config | cfg_TCU_OLWarningLevel | Thermal Capacity Utilization Overload Warning Level | SINT |
| TAG | Energy Config | cfg_TCU_TripClass | Thermal Capacity Utilization Trip Class | SINT |
| TAG | Energy Config | cfg_V_OverfrequencyInhibitTime | Overfrequency Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_OverfrequencyTripDelay | Overfrequency Trip Delay | REAL |
| TAG | Energy Config | cfg_V_OverfrequencyTripLevel | Overfrequency Trip Level | SINT |
| TAG | Energy Config | cfg_V_OverfrequencyWarningLevel | Overfrequency Warning Level | SINT |
| TAG | Energy Config | cfg_V_OvervoltageInhibitTime | Overvoltage Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_OvervoltageTripDelay | Overvoltage Trip Delay | REAL |
| TAG | Energy Config | cfg_V_OvervoltageTripLevel | Overvoltage Trip Level | REAL |
| TAG | Energy Config | cfg_V_OvervoltageWarningLevel | Overvoltage Warning Level | REAL |
| TAG | Energy Config | cfg_V_PhaseRotationInhibitTime | Phase Rotation Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_PhaseRotationTripType | Phase Rotation Trip Type (0 = ABC, 1 = ACB) | SINT |
| TAG | Energy Config | cfg_V_PTPrimary | Potential Transformer Primary Ratio | INT |
| TAG | Energy Config | cfg_V_PTSecondary | Potential Transformer Secondary Ratio | INT |
| TAG | Energy Config | cfg_V_UnderfrequencyInhibitTime | Underfrequency Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_UnderfrequencyTripDelay | Underfrequency Trip Delay | REAL |
| TAG | Energy Config | cfg_V_UnderfrequencyTripLevel | Underfrequency Trip Level | SINT |
| TAG | Energy Config | cfg_V_UnderfrequencyWarningLevel | Underfrequency Warning Level | SINT |
| TAG | Energy Config | cfg_V_UndervoltageInhibitTime | Undervoltage Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_UndervoltageTripDelay | Undervoltage Trip Delay | REAL |
| TAG | Energy Config | cfg_V_UndervoltageTripLevel | Undervoltage Trip Level | REAL |
| TAG | Energy Config | cfg_V_UndervoltageWarningLevel | Undervoltage Warning Level | REAL |
| TAG | Energy Config | cfg_V_VoltageImbalanceInhibitTime | Voltage Imbalance Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_VoltageImbalanceTripDelay | Voltage Imbalance Trip Delay | REAL |
| TAG | Energy Config | cfg_V_VoltageImbalanceTripLevel | Voltage Imbalance Trip Level | SINT |
| TAG | Energy Config | cfg_V_VoltageImbalanceWarningLevel | Voltage Imalance Warning Level | SINT |
| TAG | Energy Config | cfg_V_VoltageMode | Voltage Mode ( ) | SINT |
| TAG | Energy Config | TripEnable_I_CurrentImbalance | Current Imbalance Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_GroundFault | Ground Fault Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Jam | Jam Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_LineLoss | Line Loss Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Overcurrent | Overcurrent Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Overload | Overload Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_PhaseLoss | Phase Loss Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Stall | Stall Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Undercurrent | Undercurrent Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Underload | Underload Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Overfrequency | Overfrequency Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Overvoltage | Overvoltage Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_PhaseRotation | Phase Rotation Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Underfrequency | Underfrequency Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Undervoltage | Undervoltage Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_VoltageUnbalance | Voltage Imbalance Trip Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_CurrentImbalance | Current Imbalance Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_GroundFault | Ground Fault Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Jam | Jam Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_LineLoss | Line Loss Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Overcurrent | Overcurrent Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Overload | Overload Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Undercurrent | Undercurrent Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Underload | Underload Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Overfrequency | Overfrequency Wanring Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Overvoltage | Overvoltage Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_PhaseRotation | Phase Rotation Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Underfrequency | Underfrequency Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Undervoltage | Undervoltage Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_VoltageUnbalance | Voltage Imbalance Warning Enabled | BOOL |
| TAG | Energy Status | E300_AverageCurrent | Average Current | REAL |
| TAG | Energy Status | E300_AverageLLVoltage | Average Line-to-Line Voltage | REAL |
| TAG | Energy Status | E300_ControlTripBit | Control Trip Status Integer (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_ControlTripStatus | Control Trip Status | STRING |
| TAG | Energy Status | E300_ControlWarningBit | Control Warning Status Integer (-1 = No Warning) | DINT |
| TAG | Energy Status | E300_ControlWarningStatus | Control Warning Status | STRING |
| TAG | Energy Status | E300_CurrentTripBit | Current Trip Status Integers (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_CurrentTripStatus | Current Trip Status | STRING |
| TAG | Energy Status | E300_CurrentWarningBit | Current Warning Status Integer (-1= No Warning) | DINT |
| TAG | Energy Status | E300_CurrentWarningStatus | Current Warning Status | STRING |
| TAG | Energy Status | E300_L1Current | L1 Current | REAL |
| TAG | Energy Status | E300_L1L2Voltage | L1-L2 Voltage | REAL |
| TAG | Energy Status | E300_L2Current | L2 Current | REAL |
| TAG | Energy Status | E300_L2L3Voltage | L2-L3 Voltage | REAL |
| TAG | Energy Status | E300_L3Current | L3 Current | REAL |
| TAG | Energy Status | E300_L3L1Voltage | L3-L1 Voltage | REAL |
| TAG | Energy Status | E300_LineFrequency | Line Frequency | REAL |
| TAG | Energy Status | E300_PercentCurrentUnbalance | Percent Current Imbalance | REAL |
| TAG | Energy Status | E300_PercentVoltageUnbalance | Percent Voltage Imbalance | REAL |
| TAG | Energy Status | E300_PhaseRotation | Phase Rotation (String) | STRING |
| TAG | Energy Status | E300_PhaseRotation_INT | Phase Rotation Integer | DINT |
| TAG | Energy Status | E300_PowerTripBit | Power Trip Status Integer (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_PowerTripStatus | Power Trip Status | STRING |
| TAG | Energy Status | E300_PowerWarningBit | Power Warning Status Integer (-1 = No Warning) | DINT |
| TAG | Energy Status | E300_PowerWarningStatus | Power Warning Status | STRING |
| TAG | Energy Status | E300_ThreePhaseTruePowerFactor | True 3-Phase Power Factor | REAL |
| TAG | Energy Status | E300_TotalApparentPower | Total Apparent Power (kVA) | REAL |
| TAG | Energy Status | E300_TotalReactivePower | Total Reactive Power (kVAR) | REAL |
| TAG | Energy Status | E300_TotalRealPower | Total Real Power (kW) | REAL |
| TAG | Energy Status | E300_VoltageTripBit | Voltage Trip Status Integer (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_VoltageTripStatus | Voltage Trip Status | STRING |
| TAG | Energy Status | E300_VoltageWarningBit | Voltage Warning Status Integer (-1 = No Warning) | DINT |
| TAG | Energy Status | E300_VoltageWarningStatus | Voltage Warning Status | STRING |
| ALIAS | Energy Status | TripStatus | Trip Present | BOOL |
| TAG | Energy Status | VoltageOK | Voltage is within the tolerable Limits | BOOL |
| TAG | Flow | FlowRate | Scaled Flow Rate | REAL |
| ALIAS | Flow | Flowmeter_HART_Failure | Communication Failure between HART card and Flowmeter | BOOL |
| TAG | Flow | LASTMONTH_TOTAL_BBL | Last Month Total BBL | REAL |
| TAG | Flow | LASTMONTH_TOTAL_RUN_TIME_HOURS | Last Month Total Runtime Hours | REAL |
| TAG | Flow | THISMONTH_TOTAL_BBL | This Month Total BBL | REAL |
| TAG | Flow | THISMONTH_TOTAL_RUN_TIME_HOURS | This Month Total Runtime Hours | REAL |
| TAG | Flow | TODAY_TOTAL_BBL | Today's Total BBL | REAL |
| TAG | Flow | TODAY_TOTAL_RUN_TIME_HOURS | Today's Total Runtime Hours | REAL |
| TAG | Flow | YESTERDAY_TOTAL_BBL | Yesterday's Total BBL | REAL |
| TAG | Flow | YESTERDAY_TOTAL_RUN_TIME_HOURS | Testerday's Total Runtime Hours | REAL |
| TAG | Permissive | RP_Flow | Run not prevented by Flow | BOOL |
| TAG | Permissive | RP_Mode | Run not prevented by Mode | BOOL |
| TAG | Permissive | RP_Pressure | Run not prevented by Downhole Pressure | BOOL |
| TAG | Permissive | RP_Remote | Run not prevented by Remote Trip | BOOL |
| TAG | Permissive | RP_Temperature | Run not prevented by Downhole Temperature | BOOL |
| TAG | Permissive | RP_Trip | Run not prevented by Energy Trip | BOOL |
| TAG | Permissive | RP_TubingPressure | Run not prevented by Tubing Pressure | BOOL |
| TAG | Permissive | Run_Permissive | Run not prevented | BOOL |
| TAG | Permissive | SP_Mode | Startup not prevented by Mode | BOOL |
| TAG | Permissive | SP_Pressure | Startup not prevented by Downhole Pressure | BOOL |
| TAG | Permissive | SP_Remote | Startup not prevented by Remote Trip | BOOL |
| TAG | Permissive | SP_Temperature | Startup not prevented by Downhole Temperature | BOOL |
| TAG | Permissive | SP_Trip | Startup not prevented by Energy Trip | BOOL |
| TAG | Permissive | SP_Voltage | Startup not prevented by Voltage | BOOL |
| TAG | Permissive | Start_Permissive | Startup not prevented | BOOL |
| TAG | Watchdog | datalogger_watchdog | DataLogger Handshake: Datalogger will write 1 to this tag when it sees 0 | BOOL |
| TAG | Watchdog | Datalogger_Watchdog_Timeout | The datalogger is not communicating with the PLC | BOOL |
- [Patrick McDonagh](https://github.com/patrickjmcd)

Binary file not shown.

BIN
SDCARD.zip Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Controller>
<ExecutiveLoadOption>
<ExecFile>\Logix\CurrentApp\Executive.bin</ExecFile>
<OtherExecFile>\Logix\CurrentApp\Netlinx.bin</OtherExecFile>
</ExecutiveLoadOption>
<ProgramLoadOption>
<ProgramLoadMode>ALWAYS_EU_ENET_RESTORE</ProgramLoadMode>
<LoadFile>\Logix\CurrentApp\PWM_METER_SKIDS_REV_HP.p5k</LoadFile>
</ProgramLoadOption>
<ControllerModeOption>
<ControllerMode>RUN</ControllerMode>
</ControllerModeOption>
<VersionControl>
<Version>03.027.011.020</Version>
</VersionControl>
<FirmwareSupervisor>
<UpdateMode>ALWAYS_EU_ENET_RESTORE</UpdateMode>
</FirmwareSupervisor>
</Controller>

8
SDCard/Logix/Load.xml Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CurrentApplication>
<ControlFile>\Logix\CurrentApp\PWM_METER_SKIDS_REV_HP.xml</ControlFile>
<HWCompatibility>
<MinimumRevision>1</MinimumRevision>
<MaximumRevision>3</MaximumRevision>
</HWCompatibility>
</CurrentApplication>

168
docs/Mapping.md Normal file
View File

@@ -0,0 +1,168 @@
# Integer Status Mappings
## Device Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Unknown |
| 1 | Startup |
| 2 | Not Ready to Start |
| 3 | Lost Run Permissive |
| 4 | Running |
| 5 | Contactor Failure, Recovering |
| 6 | Waiting to attempt restart |
| 7 | Waiting to restart after overload |
| 8 | User stopped |
## Downhole Tool Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | OK |
| 1 | Connecting |
| 2 | Open Circuit |
| 3 | Shorted |
| 4 | Cannot Decode |
| 5 | Unknown |
| 6 | Disabled |
## HOA Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Auto |
| 1 | Hand |
| 2 | Off |
## UPS Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Ready |
| 1 | Charging |
| 2 | Active |
| 3 | Bad Battery |
## Current Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | OK |
| 0 | Overload |
| 1 | Phase Loss |
| 2 | Ground Fault |
| 3 | Stall |
| 4 | Jam |
| 5 | Underload |
| 6 | Current Imbalance |
| 7 | L1 Undercurrent |
| 8 | L2 Undercurrent |
| 9 | L3 Undercurrent |
| 10 | L1 Overcurrent |
| 11 | L2 Overcurrent |
| 12 | L3 Overcurrent |
| 13 | L1 Line Loss |
| 14 | L2 Line Loss |
| 15 | L3 Line Loss |
## Voltage Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | OK |
| 0 | Undervoltage |
| 1 | Overvoltage |
| 2 | Voltage Imbalance |
| 3 | Phase Rotation |
| 4 | Underfrequency |
| 5 | Overfrequency |
## Control Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | Test |
| 0 | PTC |
| 1 | DeviceLogix |
| 2 | Operator Station |
| 3 | Remote |
| 4 | Blocked Start |
| 5 | Hardware Fault |
| 6 | Config |
| 7 | Option Match |
| 8 | DeviceLogix FB Timeout |
| 9 | Expansion Bus |
| 10 | Reserved |
| 11 | Reserved |
| 12 | Non-Volatile Storage |
| 13 | Test Mode |
## Power Trip/Warning Status
| Integer | String |
|---------- | --------------------------------- |
| -1 | OK |
| 0 | Under kW |
| 1 | Over kW |
| 2 | Under kVAR Consumed |
| 3 | Over kVAR Consumed |
| 4 | Under kVAR Generated |
| 5 | Over kVAR Generated |
| 6 | Under kVA |
| 7 | Over kVA |
| 8 | Under PF Lagging |
| 9 | Over PF Lagging |
| 10 | Under PF Leading |
| 11 | Over PF Leading |
## Overall Device Status
| Integer | String |
|---------- | --------------------------------- |
| 0 | Running |
| 1 | HOA in Off |
| 2 | Remote Stop |
| 3 | Local Stop |
| 4 | Timer Stop |
| 5 | Downhole Pressure |
| 6 | Downhole Temperature |
| 7 | Tubing Pressure |
| 8 | Low Flow |
| 9 | Current: Overload |
| 10 | Current: Phase Loss |
| 11 | Current: Ground Fault |
| 12 | Current: Stall |
| 13 | Current: Jam |
| 14 | Current: Underload |
| 15 | Current: Current Imbalance |
| 16 | Current: L1 Undercurrent |
| 17 | Current: L2 Undercurrent |
| 18 | Current: L3 Undercurrent |
| 19 | Current: L1 Overcurrent |
| 20 | Current: L2 Overcurrent |
| 21 | Current: L3 Overcurrent |
| 22 | Current: L1 Line Loss |
| 23 | Current: L2 Line Loss |
| 24 | Current: L3 Line Loss |
| 25 | Voltage: Undervoltage |
| 26 | Voltage: Overvoltage |
| 27 | Voltage: Voltage Imbalance |
| 28 | Voltage: Phase Rotation |
| 29 | Voltage: Underfrequency |
| 30 | Voltage: Overfrequency |
| 31 | E300 Hardware Fault |
| 32 | E300 Config |
| 33 | E300 Option Match |
| 34 | E300 Non-Volatile Storage |
| 35 | Power: Under kW |
| 36 | Power: Over kW |
| 37 | Power: Under kVAR Consumed |
| 38 | Power: Over kVAR Consumed |
| 39 | Power: Under kVAR Generated |
| 40 | Power: Over kVAR Generated |
| 41 | Power: Under kVA |
| 42 | Power: Over kVA |
| 43 | Power: Under PF Lagging |
| 44 | Power: Over PF Lagging |
| 45 | Power: Under PF Leading |
| 46 | Power: Over PF Leading |

BIN
docs/SCADA Tags.xlsx Normal file

Binary file not shown.

235
docs/SCADA.md Normal file
View File

@@ -0,0 +1,235 @@
# SCADA Tags
| TYPE | CATEGORY | NAME | DESCRIPTION | DATATYPE |
|-------|------------------|------------------------------------|--------------------------------------------------------------------------|----------|
| TAG | Command | cfg_READ | Read configuration from Energy Monitor | BOOL |
| TAG | Command | cfg_WRITE | Write configuration to Energy Monitor | BOOL |
| TAG | Command | SCADA_ALM_RESET | Reset All Alarms | BOOL |
| TAG | Command | SCADA_START_PUMP_BIT | Start from SCADA | BOOL |
| TAG | Command | SCADA_STOP_PUMP_BIT | Stop from SCADA | BOOL |
| TAG | Command | Set_Default_E300_Configuration | Set E300 to Default Configurations | BOOL |
| TAG | Command | Set_PLC_Time | Command to set PLC time | BOOL |
| TAG | Command | Start_Command | Start Command | BOOL |
| TAG | Command | Stop_Command | Stop Command | BOOL |
| ALIAS | Command | TripResetCmd | Trip Reset Command | BOOL |
| TAG | Device Config | cfg_DHSensorDistToIntake | Feet from Sensor to Pump Intake | REAL |
| TAG | Device Config | cfg_E300_Disabled | Energy Monitor is Disabled | BOOL |
| TAG | Device Config | cfg_SpecificGravity | Fluid Specific Gravity | REAL |
| TAG | Device Config | DH_Pressure_Shutdown | | REAL |
| TAG | Device Config | DH_Pressure_Shutdown_Enabled | | BOOL |
| TAG | Device Config | DH_Pressure_Startup | | REAL |
| TAG | Device Config | DH_Pressure_Startup_Enabled | | BOOL |
| TAG | Device Config | DH_Temp_Shutdown | | REAL |
| TAG | Device Config | DH_Temp_Shutdown_Enabled | | BOOL |
| TAG | Device Config | DH_Temp_Startup | | REAL |
| TAG | Device Config | DH_Temp_Startup_Enabled | | BOOL |
| TAG | Device Config | Downtime_Time_Parameter | Seconds to wait while tripped for any reason other than Overload | DINT |
| TAG | Device Config | Downtime_Time_Parameter_OL | Seconds to wait while tripped for Overload | DINT |
| TAG | Device Config | HI_PSI_ALM_SETPOINT | High Tubing Pressure Alarm Setpoint | REAL |
| TAG | Device Config | Input_DateTime.Day | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Hour | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Microsecond | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Minute | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Month | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Second | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | Input_DateTime.Year | Datetime for setting PLC Datetime from SCADA | DINT |
| TAG | Device Config | LO_FLOW_ALM_SETPOINT | Low Flow Alarm Setpoint | REAL |
| TAG | Device Config | LO_PSI_ALM_SETPOINT | Low Tubing Pressure Alarm Setpoint | REAL |
| TAG | Device Status | Auto_Mode | Auto Mode | BOOL |
| TAG | Device Status | Contactor_Status | Contactor Status | BOOL |
| TAG | Device Status | DATETIME.Day | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Hour | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Microsecond | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Minute | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Month | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Second | Current Controller Datetime | DINT |
| TAG | Device Status | DATETIME.Year | Current Controller Datetime | DINT |
| TAG | Device Status | Device_Status | Device Status String | STRING |
| TAG | Device Status | Device_Status_INT | Integer for Device Status Indication | DINT |
| TAG | Device Status | DH_DownholeStatus | Downhole Monitor Status | STRING |
| TAG | Device Status | DH_DownholeStatus_INT | Integer for Downhole Monitor Status | INT |
| TAG | Device Status | Downhole_Tool_Enabled | Downhole Monitor is Enabled | BOOL |
| ALIAS | Device Status | E300_Auto_Mode_Switch | Auto Mode Switch Input 02 on E300 | BOOL |
| ALIAS | Device Status | E300_Contactor_Input | Contactor Status Input 00 on E300 | BOOL |
| ALIAS | Device Status | E300_Hand_Mode_Switch | Hand Mode Switch Input 03 on E300 | BOOL |
| ALIAS | Device Status | E300_Start_Button | Start Button Input 01 on E300 | BOOL |
| TAG | Device Status | Hand_Mode | Hand Mode | BOOL |
| TAG | Device Status | HI_PSI_SHUTDOWN_ALM | High Tubing Pressure Alarm Active | BOOL |
| ALIAS | Device Status | High_Pressure_Switch | High Pressure Switch, Fail-Low, (1 = OK) | BOOL |
| TAG | Device Status | HOA_Status | HOA position (0 = Auto, 1 = Hand, 2 = Off) | BOOL |
| TAG | Device Status | Lightning_Arrestor_Tripped | Lighning Arrestor is Tripped | BOOL |
| TAG | Device Status | LO_FLOW_ALM | Low Flow Alarm Active | BOOL |
| TAG | Device Status | LO_PSI_SHUTDOWN_ALM | Low Tubing Pressure Alarm Active | BOOL |
| TAG | Device Status | Off_Mode | Off Mode | BOOL |
| TAG | Device Status | Overall_Trip_Status | Overall Trip Status (Mapped from Overall_Trip_Status_INT) | STRING |
| TAG | Device Status | Overall_Trip_Status_INT | Overall Trip Status Integer | DINT |
| TAG | Device Status | Overall_Trip_Status_Timestamp | Overall Trip Status Timestamp | STRING |
| TAG | Device Status | Overall_Warning_Status | Overall Warning Status (Mapped from Overall_Warning_Status) | STRING |
| TAG | Device Status | Overall_Warning_Status_INT | Overall Warning Status Integer | DINT |
| TAG | Device Status | Time_Until_Startup | Seconds until device startup | DINT |
| TAG | Device Status | TubingPressure | Scaled Tubing Pressure Measurment | REAL |
| ALIAS | Device Status | UPS_Buffering | UPS is Buffering. | BOOL |
| ALIAS | Device Status | UPS_Ready | UPS is Ready | BOOL |
| ALIAS | Device Status | UPS_ReplaceBattery | UPS Battery needs Replacing | BOOL |
| TAG | Device Status | UPS_Status_INT | UPS Status Integer | DINT |
| TAG | Device Status | UPS_Status | UPS Status String (mapped from UPS_Status_INT) | STRING |
| TAG | Downhole Monitor | DH_Fluid_Level | Fluid Level above the Pump Intake | REAL |
| TAG | Downhole Monitor | DH_IntakePressure | Pump Intake Pressure (measured at sensor) | REAL |
| TAG | Downhole Monitor | DH_IntakeTemperature | Pump Intake Temperature | REAL |
| TAG | Downhole Monitor | DH_Pressure_Offset | Ambient Pressure Offset | REAL |
| TAG | Downhole Monitor | DH_PSIRating | PSI Rating of Instrument (/1000) | DINT |
| TAG | Energy Config | cfg_GF_GroundFaultInhibitTime | Ground Fault Inhibit Time | SINT |
| TAG | Energy Config | cfg_GF_GroundFaultTripDelay | Ground Fault Trip Delay | REAL |
| TAG | Energy Config | cfg_GF_GroundFaultTripLevel | Ground Fault Trip Level | REAL |
| TAG | Energy Config | cfg_GF_GroundFaultWarningDelay | Ground Fault Warning Delay | REAL |
| TAG | Energy Config | cfg_GF_GroundFaultWarningLevel | Ground Fault Warning Level | REAL |
| TAG | Energy Config | cfg_I_CTPrimary | Current Transformer Primary Ratio | INT |
| TAG | Energy Config | cfg_I_CTSecondary | Current Transformer Secondary Ratio | INT |
| TAG | Energy Config | cfg_I_CurrentImbalanceInhibitTime | Current Imbalance Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_CurrentImbalanceTripDelay | Current Imbalance Trip Delay | REAL |
| TAG | Energy Config | cfg_I_CurrentImbalanceTripLevel | Current Imbalance Trip Level | SINT |
| TAG | Energy Config | cfg_I_CurrentImbalanceWarningLevel | Current Imbalance Warning Level | SINT |
| TAG | Energy Config | cfg_I_FLASetting | Motor FLA | REAL |
| TAG | Energy Config | cfg_I_JamInhibitTime | Jam Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_JamTripDelay | Jam Trip Delay | REAL |
| TAG | Energy Config | cfg_I_JamTripLevel | Jam Trip Level | INT |
| TAG | Energy Config | cfg_I_JamWarningLevel | Jam Warning Level | INT |
| TAG | Energy Config | cfg_I_LineLossInhibitTime | Line Loss Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_LineLossTripDelay | Line Loss Trip Delay | REAL |
| TAG | Energy Config | cfg_I_OvercurrentInhibitTime | Overcurrent Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_OvercurrentTripDelay | Overcurrent Trip Delay | REAL |
| TAG | Energy Config | cfg_I_OvercurrentTripLevel | Overcurrent Trip Level | SINT |
| TAG | Energy Config | cfg_I_OvercurrentWarningLevel | Overcurrent Warning Level | SINT |
| TAG | Energy Config | cfg_I_StallEnabledTime | Stall Enabled Time | SINT |
| TAG | Energy Config | cfg_I_StallTripLevel | Stall Trip Level | INT |
| TAG | Energy Config | cfg_I_UndercurrentInhibitTime | Undercurrent Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_UndercurrentTripDelay | Undercurrent Trip Delay | REAL |
| TAG | Energy Config | cfg_I_UndercurrentTripLevel | Undercurrent Trip Level | SINT |
| TAG | Energy Config | cfg_I_UndercurrentWarningLevel | Undercurrent Warning Level | SINT |
| TAG | Energy Config | cfg_I_UnderloadInhibitTime | Underload Inhibit Time | SINT |
| TAG | Energy Config | cfg_I_UnderloadTripDelay | Underload Trip Delay | REAL |
| TAG | Energy Config | cfg_I_UnderloadTripLevel | Underload Trip Level | SINT |
| TAG | Energy Config | cfg_I_UnderloadWarningLevel | Underload Warning Level | SINT |
| TAG | Energy Config | cfg_PL_PhaseLossInhibitTime | Phase Loss Inhibit Time | SINT |
| TAG | Energy Config | cfg_PL_PhaseLossTripDelay | Phase Loss Trip Delay | REAL |
| TAG | Device Config | cfg_PressureSwitchDisabled | High Pressure Switch is Disabled | BOOL |
| TAG | Energy Config | cfg_TCU_OLResetLevel | Thermal Capacity Utilization Overload Reset Level | SINT |
| TAG | Energy Config | cfg_TCU_OLWarningLevel | Thermal Capacity Utilization Overload Warning Level | SINT |
| TAG | Energy Config | cfg_TCU_TripClass | Thermal Capacity Utilization Trip Class | SINT |
| TAG | Energy Config | cfg_V_OverfrequencyInhibitTime | Overfrequency Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_OverfrequencyTripDelay | Overfrequency Trip Delay | REAL |
| TAG | Energy Config | cfg_V_OverfrequencyTripLevel | Overfrequency Trip Level | SINT |
| TAG | Energy Config | cfg_V_OverfrequencyWarningLevel | Overfrequency Warning Level | SINT |
| TAG | Energy Config | cfg_V_OvervoltageInhibitTime | Overvoltage Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_OvervoltageTripDelay | Overvoltage Trip Delay | REAL |
| TAG | Energy Config | cfg_V_OvervoltageTripLevel | Overvoltage Trip Level | REAL |
| TAG | Energy Config | cfg_V_OvervoltageWarningLevel | Overvoltage Warning Level | REAL |
| TAG | Energy Config | cfg_V_PhaseRotationInhibitTime | Phase Rotation Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_PhaseRotationTripType | Phase Rotation Trip Type (0 = ABC, 1 = ACB) | SINT |
| TAG | Energy Config | cfg_V_PTPrimary | Potential Transformer Primary Ratio | INT |
| TAG | Energy Config | cfg_V_PTSecondary | Potential Transformer Secondary Ratio | INT |
| TAG | Energy Config | cfg_V_UnderfrequencyInhibitTime | Underfrequency Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_UnderfrequencyTripDelay | Underfrequency Trip Delay | REAL |
| TAG | Energy Config | cfg_V_UnderfrequencyTripLevel | Underfrequency Trip Level | SINT |
| TAG | Energy Config | cfg_V_UnderfrequencyWarningLevel | Underfrequency Warning Level | SINT |
| TAG | Energy Config | cfg_V_UndervoltageInhibitTime | Undervoltage Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_UndervoltageTripDelay | Undervoltage Trip Delay | REAL |
| TAG | Energy Config | cfg_V_UndervoltageTripLevel | Undervoltage Trip Level | REAL |
| TAG | Energy Config | cfg_V_UndervoltageWarningLevel | Undervoltage Warning Level | REAL |
| TAG | Energy Config | cfg_V_VoltageImbalanceInhibitTime | Voltage Imbalance Inhibit Time | SINT |
| TAG | Energy Config | cfg_V_VoltageImbalanceTripDelay | Voltage Imbalance Trip Delay | REAL |
| TAG | Energy Config | cfg_V_VoltageImbalanceTripLevel | Voltage Imbalance Trip Level | SINT |
| TAG | Energy Config | cfg_V_VoltageImbalanceWarningLevel | Voltage Imalance Warning Level | SINT |
| TAG | Energy Config | cfg_V_VoltageMode | Voltage Mode ( ) | SINT |
| TAG | Energy Config | TripEnable_I_CurrentImbalance | Current Imbalance Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_GroundFault | Ground Fault Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Jam | Jam Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_LineLoss | Line Loss Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Overcurrent | Overcurrent Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Overload | Overload Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_PhaseLoss | Phase Loss Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Stall | Stall Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Undercurrent | Undercurrent Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_I_Underload | Underload Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Overfrequency | Overfrequency Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Overvoltage | Overvoltage Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_PhaseRotation | Phase Rotation Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Underfrequency | Underfrequency Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_Undervoltage | Undervoltage Trip Enabled | BOOL |
| TAG | Energy Config | TripEnable_V_VoltageUnbalance | Voltage Imbalance Trip Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_CurrentImbalance | Current Imbalance Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_GroundFault | Ground Fault Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Jam | Jam Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_LineLoss | Line Loss Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Overcurrent | Overcurrent Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Overload | Overload Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Undercurrent | Undercurrent Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_I_Underload | Underload Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Overfrequency | Overfrequency Wanring Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Overvoltage | Overvoltage Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_PhaseRotation | Phase Rotation Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Underfrequency | Underfrequency Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_Undervoltage | Undervoltage Warning Enabled | BOOL |
| TAG | Energy Config | WarningEnable_V_VoltageUnbalance | Voltage Imbalance Warning Enabled | BOOL |
| TAG | Energy Status | E300_AverageCurrent | Average Current | REAL |
| TAG | Energy Status | E300_AverageLLVoltage | Average Line-to-Line Voltage | REAL |
| TAG | Energy Status | E300_ControlTripBit | Control Trip Status Integer (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_ControlTripStatus | Control Trip Status | STRING |
| TAG | Energy Status | E300_ControlWarningBit | Control Warning Status Integer (-1 = No Warning) | DINT |
| TAG | Energy Status | E300_ControlWarningStatus | Control Warning Status | STRING |
| TAG | Energy Status | E300_CurrentTripBit | Current Trip Status Integers (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_CurrentTripStatus | Current Trip Status | STRING |
| TAG | Energy Status | E300_CurrentWarningBit | Current Warning Status Integer (-1= No Warning) | DINT |
| TAG | Energy Status | E300_CurrentWarningStatus | Current Warning Status | STRING |
| TAG | Energy Status | E300_L1Current | L1 Current | REAL |
| TAG | Energy Status | E300_L1L2Voltage | L1-L2 Voltage | REAL |
| TAG | Energy Status | E300_L2Current | L2 Current | REAL |
| TAG | Energy Status | E300_L2L3Voltage | L2-L3 Voltage | REAL |
| TAG | Energy Status | E300_L3Current | L3 Current | REAL |
| TAG | Energy Status | E300_L3L1Voltage | L3-L1 Voltage | REAL |
| TAG | Energy Status | E300_LineFrequency | Line Frequency | REAL |
| TAG | Energy Status | E300_PercentCurrentUnbalance | Percent Current Imbalance | REAL |
| TAG | Energy Status | E300_PercentVoltageUnbalance | Percent Voltage Imbalance | REAL |
| TAG | Energy Status | E300_PhaseRotation | Phase Rotation (String) | STRING |
| TAG | Energy Status | E300_PhaseRotation_INT | Phase Rotation Integer | DINT |
| TAG | Energy Status | E300_PowerTripBit | Power Trip Status Integer (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_PowerTripStatus | Power Trip Status | STRING |
| TAG | Energy Status | E300_PowerWarningBit | Power Warning Status Integer (-1 = No Warning) | DINT |
| TAG | Energy Status | E300_PowerWarningStatus | Power Warning Status | STRING |
| TAG | Energy Status | E300_ThreePhaseTruePowerFactor | True 3-Phase Power Factor | REAL |
| TAG | Energy Status | E300_TotalApparentPower | Total Apparent Power (kVA) | REAL |
| TAG | Energy Status | E300_TotalReactivePower | Total Reactive Power (kVAR) | REAL |
| TAG | Energy Status | E300_TotalRealPower | Total Real Power (kW) | REAL |
| TAG | Energy Status | E300_VoltageTripBit | Voltage Trip Status Integer (-1 = No Trip) | DINT |
| TAG | Energy Status | E300_VoltageTripStatus | Voltage Trip Status | STRING |
| TAG | Energy Status | E300_VoltageWarningBit | Voltage Warning Status Integer (-1 = No Warning) | DINT |
| TAG | Energy Status | E300_VoltageWarningStatus | Voltage Warning Status | STRING |
| ALIAS | Energy Status | TripStatus | Trip Present | BOOL |
| TAG | Energy Status | VoltageOK | Voltage is within the tolerable Limits | BOOL |
| TAG | Flow | FlowRate | Scaled Flow Rate | REAL |
| ALIAS | Flow | Flowmeter_HART_Failure | Communication Failure between HART card and Flowmeter | BOOL |
| TAG | Flow | LASTMONTH_TOTAL_BBL | Last Month Total BBL | REAL |
| TAG | Flow | LASTMONTH_TOTAL_RUN_TIME_HOURS | Last Month Total Runtime Hours | REAL |
| TAG | Flow | THISMONTH_TOTAL_BBL | This Month Total BBL | REAL |
| TAG | Flow | THISMONTH_TOTAL_RUN_TIME_HOURS | This Month Total Runtime Hours | REAL |
| TAG | Flow | TODAY_TOTAL_BBL | Today's Total BBL | REAL |
| TAG | Flow | TODAY_TOTAL_RUN_TIME_HOURS | Today's Total Runtime Hours | REAL |
| TAG | Flow | YESTERDAY_TOTAL_BBL | Yesterday's Total BBL | REAL |
| TAG | Flow | YESTERDAY_TOTAL_RUN_TIME_HOURS | Testerday's Total Runtime Hours | REAL |
| TAG | Permissive | RP_Flow | Run not prevented by Flow | BOOL |
| TAG | Permissive | RP_Mode | Run not prevented by Mode | BOOL |
| TAG | Permissive | RP_Pressure | Run not prevented by Downhole Pressure | BOOL |
| TAG | Permissive | RP_Remote | Run not prevented by Remote Trip | BOOL |
| TAG | Permissive | RP_Temperature | Run not prevented by Downhole Temperature | BOOL |
| TAG | Permissive | RP_Trip | Run not prevented by Energy Trip | BOOL |
| TAG | Permissive | RP_TubingPressure | Run not prevented by Tubing Pressure | BOOL |
| TAG | Permissive | Run_Permissive | Run not prevented | BOOL |
| TAG | Permissive | SP_Mode | Startup not prevented by Mode | BOOL |
| TAG | Permissive | SP_Pressure | Startup not prevented by Downhole Pressure | BOOL |
| TAG | Permissive | SP_Remote | Startup not prevented by Remote Trip | BOOL |
| TAG | Permissive | SP_Temperature | Startup not prevented by Downhole Temperature | BOOL |
| TAG | Permissive | SP_Trip | Startup not prevented by Energy Trip | BOOL |
| TAG | Permissive | SP_Voltage | Startup not prevented by Voltage | BOOL |
| TAG | Permissive | Start_Permissive | Startup not prevented | BOOL |
| TAG | Watchdog | datalogger_watchdog | DataLogger Handshake: Datalogger will write 1 to this tag when it sees 0 | BOOL |
| TAG | Watchdog | Datalogger_Watchdog_Timeout | The datalogger is not communicating with the PLC | BOOL |

43
docs/Wiring.md Normal file
View File

@@ -0,0 +1,43 @@
# Wiring Guide
## Digital Inputs
| Input | Device |
|---------- | --------------------- |
| 0 | Legacy Contactor |
| 1 | Legacy HOA Auto |
| 2 | Legacy Start Button |
| 3 | High Pressure Switch |
| 4 | UPS Ready |
| 5 | UPS Buffering |
| 6 | UPS Replace Battery |
| 7 | Lightning Arrestor |
## Digital Outputs
| Output | Device |
|---------- | --------------------- |
| 0 | Legacy Contactor |
## Analog Inputs
| Input | Device |
|---------- | --------------------- |
| 0 | Pressure Transmitter |
| 1 | Flowmeter |
## E300 Inputs
| Input | Device |
|---------- | --------------------- |
| 0 | Contactor |
| 1 | Start Button |
| 2 | Auto Mode Switch |
| 3 | Hand Mode Switch |
## E300 Outputs
| Output | Device |
|---------- | --------------------- |
| 0 | Contactor |

1
docs/_config.yml Normal file
View File

@@ -0,0 +1 @@
theme: jekyll-theme-slate

14
docs/index.md Normal file
View File

@@ -0,0 +1,14 @@
# PWM Intelligent Pump Panel
Pump Panel for controlling Santa Rosa Water Wells.
## Links
- [Wiring Guide](Wiring.md)
- [Integer Mappings](Mapping.md)
- [SCADA Tags](SCADA.md)
## Contributors
- [Patrick McDonagh](https://github.com/patrickjmcd)

BIN
edgeos_ubnt_20180423.tar.gz Normal file

Binary file not shown.