You are on page 1of 104

LUFKIN WELL MANAGER

MODBUS MAP
RPC APPLICATION

DATE: 1/30/2012

VERSION: 6.16
REVISION:
FIRMWARE VERSION: 6.16
Sam Modbus Map - RPC Lufkin Automation Page 2 of 104
Version 6.16 Revision History

Revision History
Revision Date Description
0.01 5/7/01 Created
0.02 5/8/01 Released
0.03 5/23/01 Modified for initial release
0.04 6/5/01 00005-00008 Added to the map for laptop/host calibration support
32520
42165-42166
41433-41434 Corrected Gauge Off Time Register. ( Changed from 1 Register to 2
Registers
32501 Added Well State Numbers
00010 Changed To Reserved ( DST is in Reg 4XXXX )
0.05 7/12/01 42198-42199 Corrected Typographical Error
42200-42201 Corrected Typographical Error
42206-42207 Corrected Typographical Error
31971-31986 3/19/2007
0.06 7/18/01 42221-42222 Corrected the bit numbers on this register
1.00 7/24/01 00003-00004 Removed recover from loss of programming and clear loss of
programming
00011-00012 Removed logic expression flags
11151-11156 6.08 R1
30039-30040 Corrected analog input raw reading size
30359-30360 Corrected analog ouput raw reading size
31203-31502 Removed alarm log information
31503-31682 Removed common stamp event, last occurrence
31823-31847 Removed logic expression results
32501 Removed downtime high fluid level well state
32574 Removed yesterday's low RPM
32580 Removed yesterday's low power
41444-41781 Removed logic expression configuration
2.00 8/13/01 Changed this document to an Microsoft Excel File Type
30603-31202 Corrected the size of these Event Log and Event Time
2.01 8/14/01 32669-36624 Corrected the header organization for the pump card buffers
2.02 8/14/01 40018-40020 Added the enable/disable register for the analog inputs
10065-10320 Added Analog Input Alarm Section
30433-30452 Changed To Reserved
30573-30602 Changed To Reserved
2.03 8/20/01 32669-34704 Added description of card order in Card Buffers
42496-42499 Reversed the order of the pumpometer and rodometer registers
32605 Changed description to x10 from x100
32606 Changed description to x10 from x100
2.04 8/27/01 42009-42001 Reversed the order of these two registers
42071 Added the constant differential pressure register
42062 Changed the resolution of orifice diameter register
Sam Modbus Map - RPC Lufkin Automation Page 3 of 104
Version 6.16 Revision History

2.05 9/25/01 110 Added Load Valve Check Buffer 1 Command Function
111 Added Load Valve Check Buffer 2 Command Function
32582 Added Record Peak Polished Rod HP
32583 Added Yesterday's Peak Polished Rod HP
38365-38441 HISTORICAL BUFFERS - Register Address of this Section Changed
36665-36724 Added 60 Day Peak Polished Rod HP Buffer
38410 - 38441 Added Auto Downtime Buffer and Timestamp
42518-42519 Added VFD Peak and Min Working Speed
42178 Added Pump Depth
42346 Added Refrence Polished Rod HP Timestamp
42348 Added Reference Polished Rod HP
42349 Added Maximum Allowed Polished Rod HP
45001-47429 Added Valve Check Buffer
2.06 10/4/01 10001 - 10003 Added alarm registers
2.07 10/22/01 43250 Added Fill Base
100 Added Global Off Command Function
110-111 Redefined these definitions
38442-39801 Added Reserved Section
39801-39999 Added Special Application Registers
31603 Changed Event Log Descriptions
10001 - 10064 Added Dynamic and Latched Alarms
10321-10384 Added Digital Status
32501 Removed Counter Balance Check State
32501 Removed Downtime Power On Delay State
32614 Added Description of Pump Fillage
42209 Changed Description
2.08 11/26/01 31823-31847 Added Description for Logic Expression Error Codes
32607 Changed Size of this reserved section
32608-32609 Added Pump Cycle Registers
42190 Added IPA Control Enable/Disable
42191 Added IPA Control Reference
42211 Added HOA Switch Enable/Disable
42212 Added HOA Switch On Digital In
42213 Added HOA Switch Off Digital In
42351 Added Linear Pump Distance Between Sprockets
42154 Changed Description of Load Gain Register
42353 Added Linear Pump Sprocket Radius
42355 Added Linear Pump Malfunction Digital Out Channel
2.09 1/2/02 Campo Boscan Added the Campo Boscan Special Application Registers
32501 Added Main Board Diagnostic State
42276 Added Pumping Unit ID
2.10 2/15/02 42179 Added Generated Position Phase Synch
42213 Changed Description to HOA Auto Digital In
42217-42221 Added Violation Enable/Disable Strucutures for all operation modes
43001-45000 Added Pumping Unit Database Information
2.11 2/18/02 30603 Added Event Numbers 25,26,27
2.12 4/3/02 201 Changed Digital Output start address to 00225
10385-10392 Added Logic Expression Results
32522 Added VFD Run Scaled
43001-45000 Removed Pumping Unit Database Information
Sam Modbus Map - RPC Lufkin Automation Page 4 of 104
Version 6.16 Revision History

2.13 4/9/02 4XXXX Corrected the size of the Analog Output Configuration Section
thus correcting the addressing for the following 4XXXX registers
2.14 4/15/02 41431 Removed day of week ( Not supported )
2.15 4/16/02 42217-42221 Added Descriptions to all violation enable/disable structures
2.16 4/17/02 42276 Change Pumping Unit ID To Counter Balance Phase Angle
4.01 5/22/02 30603 Added Event Numbers 22,23
42219 Added Logic Expression Enable/Disable to Timed Mode
42356 Changed Output Ratio Calcualation
4.02 6/10/02 112-143 Added Coils to load 24 hour analog input historical buffers
144-175 Added Coils to load 60 day analog input historical buffers
30033-30352 Added Current 8 Minute Average to Analog Input Status Structures
30603 Removed Event Numbers 30,31,32,35,39
Added Event Numbers 43,44,45
38442-38801 Added a 180 floating point buffer to be loaded with special coils
38802-38921 Added a 60 floating point buffer to be loaded with special coils
4.03 7/15/02 41233-41424 Added support for the Alarm Registers
41175-41424 Moved Accumulator Config Section to 40983
32669-36624 Added Shutdown Causes to Dynagraph Card Headers
4.04 7/16/02 38005 Corrected Adress in Load Buffer Header
4.05 9/6/02 30453-30602 Added support for Accumulator Status
32669-36624 Changed Card Buffer to Generic Buffer ( See Generic Buffer Desc )
40983-41182 Added support for Accumulator Configuration
4.06 10/9/02 10393-10556 Added Register Alarm Alarm and Alert Section
32629 Added Tubing Movement Register
42170 Added Intrinsic Barrier Support Enable/Disable Register
42358-42495 Added Tubing Movement Configuration
4.07 10/30/02 40983-41182 Corrected the location of reserved registers in Accumulator Config
4.08 2/6/03 00481-00545 Added Support for Modbus Master
10457-10520 Added Digital Dynamic Alarms
10521-10584 Added Digital Latched Alarms
10585-10594 Added Modbus Master Communications Failure Dynamic Alarms
10595-10604 Added Modbus Master Communications Failure Latched Alarms
30453-30602 Added Support for 2 more Accumulators
31203-31502 Added Description for Alarm Log
32017-32142 Added Data Section for Modbus Master
40983-41182 Added Support for 2 more Accumulators
42073 Added Differential Pressure Zero Cutoff
45003-47432 Corrected Register Address Range from Valve Check Buffer
47430-49899 Added Modbus Master Support Registers
4.09 3/11/03 10385-10612 Corrected Coil Address in this range.
Sam Modbus Map - RPC Lufkin Automation Page 5 of 104
Version 6.16 Revision History

4.10 11/6/03 00545-00560 Added Load Alarm Tracking History Coils


00571-00580 Added Load Register Log 1440 Coils
01000-01002 Added Clear Log Coils
10032 Added Active Dynamic Alarm Coil
10064 Added Active Latched Alarm Coil
10603-10644 Added Well State Alarms
31503 Added New Event Counter to Alarm Log
32142-32161 Added Programmable Calculation Results
32342-32389 Added Alarm Tracking Status
32607 Added Accumulated Runtime Minutes Register
41171-41202 Added Well State Alarm Configuration
41203-41222 Added Alarm Tracking Configuration
41788-41790 Added Support for Separate Downtime Logic Expression
41818-41823 Separated Transmission Parameters For Laptop, Radio, Expansion
43104-44403 Added Notepad Configuration
44504-44623 Added Register Log Configuration
44674-44863 Added Register Calculation Configuration
49869 Added Modbus Master Poll Rate
Register Added Register Description Section To Map
Description
4.11 2/19/04 10602 - Corrected Addresses in this range
4.12 3/1/04 Logic Exp. Added Description to Logic Expression Action Registers
4.13 3/1/04 192 - 193 Added Load Notepad Coil
4.14 4/26/05 10 Added Reinitialize PIP Calculation
10009 - 10016 Added Cryout and VFD dynamic alarms
10037 - 10041 Added VFD latch alarms
38922-38952 Added VFD WF2 Status registers
39703-39800 Added PIP/SWT Resisters
42183 Added SWT % Water Cut
42187 Added SWT Leakage Adjustment
42214 Added External Malfunction Digital Input Channel
42215 Added Clear Alarm Digital Input Channel
42360 Added Descriptions for Tubing Sizes
42370-42495 Added PIP/SWT Configuration Registers
42520 - 42590 Added VFD Rod Float Mitigator Support
44883 - 44885 Added Active Alarm Action
49553-49688 Added Cryout Configuration Registers
44996-45001 Added Crank Sensor Installation Adjustment
Register Description
Corrected Structure for Modbus Register Type
Sam Modbus Map - RPC Lufkin Automation Page 6 of 104
Version 6.16 Revision History

4.15 8/5/05 Register Description


DI Configuration: Configuration 3
11 Added Initiate Reference Revolution Calibration
12 Added Abort Reference Revolution Calibration
13 Liner Loading Operation Terminate
10042 Malfunction Lockout detected
10657-10672 Added Coil Tracking Status
30453 Corrected from Float to Word
31743 Added Shutdown ID 131: Malfunction Lockout
32522 Added Ref Rev Calibration Status
32523-32524 Added Ref Rev Calibration Timestamp
32632 Liner Loading Prevention State
32633 Last Liner Loading Operation
32635 Nest Scheduled Liner Loading Operation
42252 Lockout feature Enable/disable
42253 Lockout allowable period hours
42254 Lockout allowable period minutes
42361 Liner Loading Option
42362 Liner Loading Timer Interval
42363 Liner Loading Operation Period
42364 Liner Loading Valve Control DO Channel
42365 Liner Loading Input:AI Analog Input Channel
42366 Liner Loading Input : AI Threshold limit
42367 Liner Loading Input: AI delay
42368 Liner Loading Valve Control Override
49713 Added Modbus Master Device Type
44994 Moved Switch Mounting Error Angle From 45000 to 44994
5.00 2/17/06 194 Added Coil to Load Last 24 Hour VFD Run Speed Data
201-207 Added Coils to Support SWT/PIP Historical Data Retrieval
650-652 Added Coils to Support VFD Commands
700-715 Added EFM Search Coils
31893-31951 Added EFM Status Registers
42078-42089 Added Additional AGA Configuration Registers to support Custody
Transfer
44404-44423 Added Custody Transfer Historical Data Request Criteria
41241 & 41262 Corrected Description to be x100 ms
Sam Modbus Map - RPC Lufkin Automation Page 7 of 104
Version 6.16 Revision History

5.02 6/6/06 10689 Added Host Logged In Flag


31951-31958 Extended EFM Status Registers
32527 Added Load/Position Transducer Status
38934-38936 Extended VFD Status Registers
40650-40651 Updated Analog Output Configuration
42090-42094 Extended AGA Configuration
42389 Added Tubing Head Pressure Source
42552-42553 Added HOA On Speed and Motor Overload Protection Level
42591 Added Enhanced Fixed Torque RFM Enable/Disable
5.03 7/5/06 42090-42094 Added descriptions to new AGA Configuration Registers
5.04 8/17/06 32527 Converted to Reserved
5.06 10/3/06 208 & 209 Added new PIP data coils
10705 Added Invalid Gas Mixture
32525 Added Strokes Per Minute
39729 Added PIP Average Since GOT
39730 Added Yesterday's Average PIP
42592 Added Alarm on Parameter Differences Enable/Disable
32563 Corrected Description to be x100
32564 Corrected Description to be x10
42267 Changed Name to Power Cutoff Mode Configuration
42276 Corrected Description of Register to be a signed x100 register
42536 Changed description to reflect x10 register
42541 Changed description to reflect x10 register
42542 Changed description to reflect x10 register
42548 Changed description to reflect x10 register
42384 Changed description to reflect x10 register
42180 Added Crank Start Detect
42255 Added Start Window
42400 Added PIP Control Override
42401 Added PIP Setpoint
42402 Added Num Consec Low PIP Strokes Allowed
42403 Added Consider Formation Producing Pressure
42404 Added Formation Depth
42640 Added AS1 DBR Installed
42641 Added AS1 RTC Enable/Disable
5.07 11/15/06 Generic Buffer Corrected coils used to load register log historical data
1/12/07 Notepad Added instructions to Notepad section
5.11 3/19/07 42095-42096 Added Contract Hour for EFM Applicatoin
31987-31996 Added Meter Run Name for EFM Application
31977-32001 Added Meter Run ID for EFM Application
5.14 4/16/07 42097 Fixed buffer size in map from 56 to 54
5.16 5/2/07 No changes to map
Sam Modbus Map - RPC Lufkin Automation Page 8 of 104
Version 6.16 Revision History

5.18 6/21/07 30603 Added AGA 8 Task Re-Executed to Event Log (8)
Added Custody Transfer Task Re-Executed to Event Log (9)
Added Return to Normal Control to Event Log (20)
Added Switch to Failure Control to Event Log (35)
Added Enter Programming Fault State to Event Log (88)
31743-31822 Added Shutdown Event ID's 132,133, 134
32516 Corrected Description
650-652 Added coils for VSD Support
201-209 Added coils for Historical SWT/PIP Support
30453-30602 Corrected description for User Defined Accumulator
Corrected description for Previous User Defined Accumulator
40001-40640 Corected Channel Configuration Register Description
40641-40790 Corected Channel Configuration Register Description
41444-41800 Added Motor Control Description for Logic Expression Actions
32636 Added Today's Average Strokes Per Minute
32637 Added Yesterday's Average Strokes Per Minute
1160-1161 Added coils for VSD Historical Support
1150-1151 Added coils for Pump Efficiency History
5.24 R1 12/10/08 32501 Added Downtime Logic Expression Well States
Added Mslfunction Logic Expression Well States
Added Malfunction Lockout Well State
Added Downtime PIP Control Override Well State
32627 Corrected Register Description
Generic Buffer Added Description for VFD History
32640 Added Average Gross Pump Efficiency
32642 Added Yesterday's Average Gross Pump Efficiency
32644 Added Average Net Pump Efficiency
32646 Added Yesterday's Average Net Pump Efficiency
44444 Added Display Unit Configuration
42484 Added User Defined Tubing Outer Diameter
42486 Added User Defined Tubing Inner Diameter
42596 Added VFD Drive Fault Bypass Digital
10017 Added Invalid Tubing Size Alarm
5.26 R1 1/15/09 No Changes Made
5.28 R1 5/15/09 42181 Added No Crank Timeout
800-801 Added Coils for Loading Malfunction Cards
5.28 R2 7/16/09 30603-31202 Added events to event log
6.00 03/16/10 10721 Added VSD Authorization Alarm
42747-42750 Added Linear Pumping Unit Cornering Support
42751 Added Reserved Section
42817 Added Reseverd Section
48000 Added Reserved Section
48600 Added Generic Buffer
48933 Added Debug Pump Load
49133 Added Debug Pump Position
49333 Added Debug Fill Base
49334 Added Debug Tubing Gradient
49336 Added Debug Tubing Head Pressure
49338 Added Debug Pump Depth
49340 Added Debug Last Rod Diameter
49342 Added Debug Consider Unachored
49343 Added Debug Tubing Size
Sam Modbus Map - RPC Lufkin Automation Page 9 of 104
Version 6.16 Revision History

49344 Added Debug Tubing Anchor Depth


49345 Added Debug Shallow Well
49346 Added PIP Version
49347 Added Newton vs. Bisection
49348 Added Fluid Load Filter Window
49350 Added Liquid Filter Window
49352 Added Gas Filter Window
49354 Added Debug Memory
6.02 5/5/10 --- No changes made
6.04 5/25/10 --- No changes made
6.06 6/28/10 --- No changes made
6.08 7/30/10 --- No changes made
6.08 R1 8/17/10 41819 Corrected Description
41821 Corrected Description
41823 Corrected Description
6.10 8/19/10 --- No changes made
6.12 3/2/11 10018 Added VFD Drive Bypass Switch Engaged
10019 Added VFD ABB IGBT Fans Not Configured
10020 Added VFD ABB IGBT Fans Conflict
10021 Adjusted Reserve Value
10043 Added VFD Drive BypassSwitchEngaged
10044 Added VFD ABB IGBT Fans Not Configured
10045 Added VFD ABB IGBT Fans Config Conflict
10046 Adjusted Reserve Value
38937 Added IGBT Temp
38938 Added Control Board Temp
38939 Added Output RPM
38940 Added Line Side Fault
38941 Adjusted Reserve Value
42597 Added VFD Drive Bypass Switch Enabled Disabled
42598 Added VFD Drive Bypass Switch Input Digital
42599 Added VFD IGBT Fans Enabled Disabled
42600 Added VFD IGBT Fans Output Digital
42601 Added VFD IGBT Fans Temp Threshold
42602 Added VFD IGBT Fans Min Run Time
42603 Adjusted Reserve Value
6.14 3/30/11 --- No changes made
6.14 R1 5/11/11 32618 Corrected Description
6.16 1/30/12 --- Well Test / PIP 'Advanced' mode now requires a Sec. Auth. Module
Sam Modbus Map - RPC Lufkin Automation Page 10 of 104
Version 6.16 00000 Registers

00000 Registers

Common Command Functions 00001 - 00100

Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


1 1 RESET_MAL Reset Malfunctions
2 1 CLEAR Clear Alarms Flag
3 1 Reserved Reserved
4 1 Reserved Reserved
5 1 Basic Calibration Basic Calibration
6 1 Horseshoe Calibration Calibration using horseshoe
7 1 Calibration Accepted Calibration Accepted
8 1 User Terminated Calibration Terminated by user
9 1 Reset To Default 3/19/2007
10 1 ReInitPip Reinitialize Pump Intake Pressure
11 1 InitiateRefRevCalibration Initiate Reference Revolution Calibration
12 1 AbortRefRevCalibration Abort Reference Revolution Calibration
13 1 Terminate Liner Loading 6.08 R1
Liner Loading Option( 4XXXX) is set to TIMER

Clear Logic Expression Functions 00017 - 00025

Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


17 1 Clear Logic Exp 1 Clear Logic Expression 1 Result
18 1 Clear Logic Exp 2 Clear Logic Expression 2 Result
19 1 Clear Logic Exp 3 Clear Logic Expression 3 Result
20 1 Clear Logic Exp 4 Clear Logic Expression 4 Result
21 1 Clear Logic Exp 5 Clear Logic Expression 5 Result
22 1 Clear Logic Exp 6 Clear Logic Expression 6 Result
23 1 Clear Logic Exp 7 Clear Logic Expression 7 Result
24 1 Clear Logic Exp 8 Clear Logic Expression 8 Result
25 1 Clear All Logic Exp Clear All Logic Expression Results
Sam Modbus Map - RPC Lufkin Automation Page 11 of 104
Version 6.16 00000 Registers

Motor Control Command Functions 00100-00102

Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


100 1 Global Off Global Off
101 1 Stop Motor Host Host Stop Motor
102 1 Start Motor Host Host Start Motor

Application Specific Command 00103-00200


Functions

Load Card Buffers


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits
If the controller is configured for downhole control, when loading cards with coils 103-109 the surface and
pump card buffers will both be loaded.
103 1 Load Stored Load Stored Cards into 5 Card Buffers
104 1 Load Shutdown 1 Load Shutdown Cards Set 1 Into 5 Card Buffers
105 1 Load Shutdown 2 Load Shutdown Cards Set 2 Into 5 Card Buffers
106 1 Load Standard Load Standard Card into Single Card Buffer
107 1 Load Start Load Start Card into Single Card Buffer
108 1 Load Pump Up Load Pump Up Card into Single Card Buffer
109 1 Load Last Stroke Load Last Stroke into Single Card Buffer

Load Valve Check Buffers


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits
The forcing of coils 110-111 invoke the storing of valve check buffers into the register range of 45001-
47429
110 1 Load Ref VC Load Reference Valve Check
111 1 Load Working VC Load Working Valve Check
Sam Modbus Map - RPC Lufkin Automation Page 12 of 104
Version 6.16 00000 Registers

Load Analog Input 24 Hour History


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits
There is a historical buffer for each analog input that holds a 24-hour 8 minute average.( Totalling 180
Floating Point Scaled Values) The forcing of a coil in the range of 112-143 invokes the requested buffer
to be loaded into the register range of 38442-38801
112 1 Analog Input 1 Load 24 Hour Analog Input History
113 1 Analog Input 2 Load 24 Hour Analog Input History
114 1 Analog Input 3 Load 24 Hour Analog Input History
115 1 Analog Input 4 Load 24 Hour Analog Input History
116 1 Analog Input 5 Load 24 Hour Analog Input History
117 1 Analog Input 6 Load 24 Hour Analog Input History
118 1 Analog Input 7 Load 24 Hour Analog Input History
119 1 Analog Input 8 Load 24 Hour Analog Input History
120 1 Analog Input 9 Load 24 Hour Analog Input History
121 1 Analog Input 10 Load 24 Hour Analog Input History
122 1 Analog Input 11 Load 24 Hour Analog Input History
123 1 Analog Input 12 Load 24 Hour Analog Input History
124 1 Analog Input 13 Load 24 Hour Analog Input History
125 1 Analog Input 14 Load 24 Hour Analog Input History
126 1 Analog Input 15 Load 24 Hour Analog Input History
127 1 Analog Input 16 Load 24 Hour Analog Input History
128 1 Analog Input 17 Load 24 Hour Analog Input History
129 1 Analog Input 18 Load 24 Hour Analog Input History
130 1 Analog Input 19 Load 24 Hour Analog Input History
131 1 Analog Input 20 Load 24 Hour Analog Input History
132 1 Analog Input 21 Load 24 Hour Analog Input History
133 1 Analog Input 22 Load 24 Hour Analog Input History
134 1 Analog Input 23 Load 24 Hour Analog Input History
135 1 Analog Input 24 Load 24 Hour Analog Input History
136 1 Analog Input 25 Load 24 Hour Analog Input History
137 1 Analog Input 26 Load 24 Hour Analog Input History
138 1 Analog Input 27 Load 24 Hour Analog Input History
139 1 Analog Input 28 Load 24 Hour Analog Input History
140 1 Analog Input 29 Load 24 Hour Analog Input History
141 1 Analog Input 30 Load 24 Hour Analog Input History
142 1 Analog Input 31 Load 24 Hour Analog Input History
143 1 Analog Input 32 Load 24 Hour Analog Input History
Sam Modbus Map - RPC Lufkin Automation Page 13 of 104
Version 6.16 00000 Registers

Load Analog Input 60 Day History


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

There is a 60 floating point historical buffer for each analog input that holds 60 days of daily average of
that inputs recorded at gauge off time. The forcing of a coil in the range of 144-175 invokes the requested
buffer to be loaded into the register range of 38802-38921.
144 1 Analog Input 1 Load 60 Day Analog Input History
145 1 Analog Input 2 Load 60 Day Analog Input History
146 1 Analog Input 3 Load 60 Day Analog Input History
147 1 Analog Input 4 Load 60 Day Analog Input History
148 1 Analog Input 5 Load 60 Day Analog Input History
149 1 Analog Input 6 Load 60 Day Analog Input History
150 1 Analog Input 7 Load 60 Day Analog Input History
151 1 Analog Input 8 Load 60 Day Analog Input History
152 1 Analog Input 9 Load 60 Day Analog Input History
153 1 Analog Input 10 Load 60 Day Analog Input History
154 1 Analog Input 11 Load 60 Day Analog Input History
155 1 Analog Input 12 Load 60 Day Analog Input History
156 1 Analog Input 13 Load 60 Day Analog Input History
157 1 Analog Input 14 Load 60 Day Analog Input History
158 1 Analog Input 15 Load 60 Day Analog Input History
159 1 Analog Input 16 Load 60 Day Analog Input History
160 1 Analog Input 17 Load 60 Day Analog Input History
161 1 Analog Input 18 Load 60 Day Analog Input History
162 1 Analog Input 19 Load 60 Day Analog Input History
163 1 Analog Input 20 Load 60 Day Analog Input History
164 1 Analog Input 21 Load 60 Day Analog Input History
165 1 Analog Input 22 Load 60 Day Analog Input History
166 1 Analog Input 23 Load 60 Day Analog Input History
167 1 Analog Input 24 Load 60 Day Analog Input History
168 1 Analog Input 25 Load 60 Day Analog Input History
169 1 Analog Input 26 Load 60 Day Analog Input History
170 1 Analog Input 27 Load 60 Day Analog Input History
171 1 Analog Input 28 Load 60 Day Analog Input History
172 1 Analog Input 29 Load 60 Day Analog Input History
173 1 Analog Input 30 Load 60 Day Analog Input History
174 1 Analog Input 31 Load 60 Day Analog Input History
175 1 Analog Input 32 Load 60 Day Analog Input History
Sam Modbus Map - RPC Lufkin Automation Page 14 of 104
Version 6.16 00000 Registers

Load Accumulator 1440 Buffer


176 1 Accumulator 1 Load 1440 Accumulator Buffer
177 1 Accumulator 2 Load 1440 Accumulator Buffer
178 1 Accumulator 3 Load 1440 Accumulator Buffer
179 1 Accumulator 4 Load 1440 Accumulator Buffer
180 1 Accumulator 5 Load 1440 Accumulator Buffer
181 1 Accumulator 6 Load 1440 Accumulator Buffer
182 1 Accumulator 7 Load 1440 Accumulator Buffer
183 1 Accumulator 8 Load 1440 Accumulator Buffer
Read Function Code: 01
Write Function Code: 05

Buffer Description:
Internally there is a 1440 buffer of floating point values for each accumulator. This buffer contains the last
1440 average rate values calculated at the user defined interval.
Buffer Size:
1440 Double Word values ( x100 ) ( 2880 16-bit registers )
Action:
Forcing a coil in the range of 176-183 will populate the Generic Buffer ( starting at register 32669 ) with
the values from the buffer corresponding to the coil.

Load Accumulator 60 Day Buffer


184 1 Accumulator 1 Load 60 Day Accumulator Buffer
185 1 Accumulator 2 Load 60 Day Accumulator Buffer
186 1 Accumulator 3 Load 60 Day Accumulator Buffer
187 1 Accumulator 4 Load 60 Day Accumulator Buffer
188 1 Accumulator 5 Load 60 Day Accumulator Buffer
189 1 Accumulator 6 Load 60 Day Accumulator Buffer
190 1 Accumulator 7 Load 60 Day Accumulator Buffer
191 1 Accumulator 8 Load 60 Day Accumulator Buffer
Read Function Code: 01
Write Function Code: 05

Buffer Description:
Internally there is a 60 data point buffer of long values for each accumulator. This buffer contains the
daily total accumulation of an accumulator stored at gauge off time.
Buffer Size:
60 32-bit integer values (x100) (120 16-bit registers)
Action:
Forcing a coil in the range of 184-191 loads the corresponding 60 day accumulator buffer into the Generic
Buffer ( starting register of 32669 ).
Sam Modbus Map - RPC Lufkin Automation Page 15 of 104
Version 6.16 00000 Registers

Notepad Support Coils 00192-00193


Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


192 1 Save Notepad
193 1 Load Notepad

VFD Historical Data Support Coils 00194


Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


194 1 Load VFD 1440 Speed

SWT/PIP Historical Support Coils 00201-00207


Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


201 1 Load 60 Day SWT Fluid
202 1 Load 60 Day SWT Water
203 1 Load 60 Day SWT Oil
204 1 Load 60 Day SWT Gas
205 1 Load 60 Day SWT All
206 1 Load 60 Day PIP Peak
207 1 Load 60 Day PIP Min
208 1 Load 2880 Avg PIP
209 1 Load 60 Day Avg PIP

Digital Outputs 00225-00288


Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


225 64 DO1-DO64 Physical Digital Outputs 1-64
Sam Modbus Map - RPC Lufkin Automation Page 16 of 104
Version 6.16 00000 Registers

Reserved 00289-00480
Note: Use Function Code 01 to Read these bits. Code 05/15 to Write these bits

REGISTER # Coils NAME DESCRIPTION


289 192 Reserved Reserved

Modbus Master Save Comm Config 00481-00496


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils NAME DESCRIPTION


481 1 Save_Comm_Config_1 Save Modbus Master Comm Config 1
482 1 Save_Comm_Config_2 Save Modbus Master Comm Config 2
483 1 Save_Comm_Config_3 Save Modbus Master Comm Config 3
484 1 Save_Comm_Config_4 Save Modbus Master Comm Config 4
485 1 Save_Comm_Config_5 Save Modbus Master Comm Config 5
486 1 Save_Comm_Config_6 Save Modbus Master Comm Config 6
487 1 Save_Comm_Config_7 Save Modbus Master Comm Config 7
488 1 Save_Comm_Config_8 Save Modbus Master Comm Config 8
489 1 Save_Comm_Config_9 Save Modbus Master Comm Config 9
490 1 Save_Comm_Config_10 Save Modbus Master Comm Config 10
491 6 Reserved Reserved

Modbus Master Save Comm Config 00497-00512


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils NAME DESCRIPTION


497 1 Save_Reg_Addresses_1 Save Register Addresses 1
498 1 Save_Reg_Addresses_2 Save Register Addresses 2
499 1 Save_Reg_Addresses_3 Save Register Addresses 3
500 1 Save_Reg_Addresses_4 Save Register Addresses 4
501 1 Save_Reg_Addresses_5 Save Register Addresses 5
502 1 Save_Reg_Addresses_6 Save Register Addresses 6
503 1 Save_Reg_Addresses_7 Save Register Addresses 7
504 1 Save_Reg_Addresses_8 Save Register Addresses 8
505 1 Save_Reg_Addresses_9 Save Register Addresses 9
506 1 Save_Reg_Addresses_10 Save Register Addresses 10
507 6 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 17 of 104
Version 6.16 00000 Registers

Modbus Master Load Data 00513-00528


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils NAME DESCRIPTION


513 1 Load_Data_1 Load Data 1
514 1 Load_Data_2 Load Data 2
515 1 Load_Data_3 Load Data 3
516 1 Load_Data_4 Load Data 4
517 1 Load_Data_5 Load Data 5
518 1 Load_Data_6 Load Data 6
519 1 Load_Data_7 Load Data 7
520 1 Load_Data_8 Load Data 8
521 1 Load_Data_9 Load Data 9
522 1 Load_Data_10 Load Data 10
523 6 Reserved Reserved

Modbus Master Write Data To Slave 00529-00545


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils NAME DESCRIPTION


529 1 Write_Data_To_Slave_1 Write Data To Slave Device 1
530 1 Write_Data_To_Slave_2 Write Data To Slave Device 2
531 1 Write_Data_To_Slave_3 Write Data To Slave Device 3
532 1 Write_Data_To_Slave_4 Write Data To Slave Device 4
533 1 Write_Data_To_Slave_5 Write Data To Slave Device 5
534 1 Write_Data_To_Slave_6 Write Data To Slave Device 6
535 1 Write_Data_To_Slave_7 Write Data To Slave Device 7
536 1 Write_Data_To_Slave_8 Write Data To Slave Device 8
537 1 Write_Data_To_Slave_9 Write Data To Slave Device 9
538 1 Write_Data_To_Slave_10 Write Data To Slave Device 10
539 6 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 18 of 104
Version 6.16 00000 Registers

Load Alarm Tracking 60 Day History 00545-00570


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

Note: Set these coils to load the alarm tracking history into the generic buffer beginning at 32669. A
description of these buffers is in the Generic Buffer Description of this document.
545 1 Load Alarm Track 1 Hist Load Alarm Track 1 60 Day History
546 1 Load Alarm Track 2 Hist Load Alarm Track 2 60 Day History
547 1 Load Alarm Track 3 Hist Load Alarm Track 3 60 Day History
548 1 Load Alarm Track 4 Hist Load Alarm Track 4 60 Day History
549 1 Load Alarm Track 5 Hist Load Alarm Track 5 60 Day History
550 1 Load Alarm Track 6 Hist Load Alarm Track 6 60 Day History
551 1 Load Alarm Track 7 Hist Load Alarm Track 7 60 Day History
552 1 Load Alarm Track 8 Hist Load Alarm Track 8 60 Day History
553 1 Load Alarm Track 9 Hist Load Alarm Track 9 60 Day History
554 1 Load Alarm Track 10 Hist Load Alarm Track 10 60 Day History
555 1 Load Alarm Track 11 Hist Load Alarm Track 11 60 Day History
556 1 Load Alarm Track 12 Hist Load Alarm Track 12 60 Day History
557 1 Load Alarm Track 13 Hist Load Alarm Track 13 60 Day History
558 1 Load Alarm Track 14 Hist Load Alarm Track 14 60 Day History
559 1 Load Alarm Track 15 Hist Load Alarm Track 15 60 Day History
560 1 Load Alarm Track 16 Hist Load Alarm Track 16 60 Day History
561 10 Reserved Reserved

Load Register Log 1440 Buffers 00571-00580


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils NAME DESCRIPTION


571 1 Load Reg Log 1 Buffer Load Register Log 1 1440 Buffer
572 1 Load Reg Log 2 Buffer Load Register Log 2 1440 Buffer
573 1 Load Reg Log 3 Buffer Load Register Log 3 1440 Buffer
574 1 Load Reg Log 4 Buffer Load Register Log 4 1440 Buffer
575 1 Load Reg Log 5 Buffer Load Register Log 5 1440 Buffer
576 1 Load Reg Log 6 Buffer Load Register Log 6 1440 Buffer
577 1 Load Reg Log 7 Buffer Load Register Log 7 1440 Buffer
578 1 Load Reg Log 8 Buffer Load Register Log 8 1440 Buffer
579 1 Load Reg Log 9 Buffer Load Register Log 9 1440 Buffer
580 1 Load Reg Log 10 Buffer Load Register Log 10 1440 Buffer
Sam Modbus Map - RPC Lufkin Automation Page 19 of 104
Version 6.16 00000 Registers

Reserved 00581-00649
Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils NAME DESCRIPTION


581 69 Reserved Reserved

VFD Commands 00650-00652


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils Description


650 1 VFD Write Generic Register
651 1 VFD Copy Parameters To Drive From the Controller
652 1 VFD Copy Parameters To the Controller From Drive

Reserved 653
Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils Description


653 347 Reserved
Sam Modbus Map - RPC Lufkin Automation Page 20 of 104
Version 6.16 00000 Registers

EFM HISTORICAL DATA RETRIEVAL COILS

Retrieve By Date 700-703


Note: Use Function Code 05 to Write these bits

REGISTER # Coils Description


700 1 Retrieve Daily Record
701 1 Retrieve Hourly Records
702 1 Retrieve Alarm Log Entries
703 1 Retrieve Event Log Entries

Retrieve By Record/Sequence Number 704-707


Note: Use Function Code 05 to Write these bits

REGISTER # Coils Description


704 1 Retrieve Daily Record
705 1 Retrieve Hourly Records
706 1 Retrieve Alarm Log Entries
707 1 Retrieve Event Log Entries

Retrieve By Date Range 708-711


Note: Use Function Code 05 to Write these bits

REGISTER # Coils Description


708 1 Retrieve Daily Record
709 1 Retrieve Hourly Records
710 1 Retrieve Alarm Log Entries
711 1 Retrieve Event Log Entries

Retrieve By Record Number Range 712-715


Note: Use Function Code 05 to Write these bits

REGISTER # Coils Description


712 1 Retrieve Daily Record
713 1 Retrieve Hourly Records
714 1 Retrieve Alarm Log Entries
715 1 Retrieve Event Log Entries
Sam Modbus Map - RPC Lufkin Automation Page 21 of 104
Version 6.16 00000 Registers

Load Malfunction Cards 800-801


Note: Use Function Code 05 to Write these bits

If the controller is configured for downhole control, when loading cards with coils 103-109 the surface and
pump card buffers will both be loaded.
REGISTER # Coils Description
800 1 Load Malfunction Cards 1-5 Into 5 Card Buffers
801 1 Load Malfunction Cards 6-10 Into 5 Card Buffers
Sam Modbus Map - RPC Lufkin Automation Page 22 of 104
Version 6.16 00000 Registers

Clear Log Commands 01000-01002


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits

REGISTER # Coils NAME DESCRIPTION


1000 1 Clear Alarm Log Clear Alarm Log
1001 1 Clear Shutdown Event Log Clear Shutdown Event Log
1002 1 Clear New Event Counter Clear New Event Log Entry Counter ( Reg 31503 )

Load Pump Efficiency History 01150-01151


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits in order to load the historical
data into the buffer beginning at register 32669
REGISTER # Coils NAME DESCRIPTION
1150 1 Load 60 Day Average Gross Pump Efficiency
1151 1 Load 60 Day Average Net Pump Efficiency

Load VSD Historical Support Data 01160-01161


Note: Use Function Code 01 to Read these bits. Code 05 to Write these bits in order to load the historical
data into the buffer beginning at register 32669
REGISTER # Coils NAME DESCRIPTION
1160 1 Load 60 Day Average SPM
1161 1 Load 60 Day Stroke Total
Sam Modbus Map - RPC Lufkin Automation Page 23 of 104
Version 6.16 10000 Registers

10000 Registers
Dynamic Alarms 10001-10032
Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10001 1 No RPM No RPM Flag
10002 1 No Crank No Crank
10003 1 Belt Slippage Belt Slippage
10004 1 Peak Polished Rod HP Peak Polished Rod HP
10005 1 VFD Peak Load Limit VFD Peak Load Limit
10006 1 VFD Min Load Limit VFD Min Load Limit
10007 1 Invalid HOA Digital A Digital Selected for HOA use is not properly
configured
10008 1 Invalid Linear Pump Digital The digital selected for malfunction use with a linear
10009 1 Cryout Alarm pump is not properly configured
10010 1 VFD Comm Error
10011 1 VFD Drive Fault Error
10012 1 VFD Drive Fault Bypass
10013 1 VFD Drive Parameter Difference
10014 1 VFD Keypad Control
10015 1 VFD Switch Off 6.08 R1
10016 1 VFD Pressure Switch Engaged
10017 1 Invalid Tubing Size
10018 1 VFD Drive Bypass Switch Engaged
10019 1 VFD ABB IGBT Fans Not Configured
10020 1 VFD ABB IGBT Fans Conflict
10021 11 Reserved Reserved
10032 1 Active Dynamic Alarm(s) If set, then a dynamic alarm in the 1XXXX range is
active

Latched Alarms 10033 - 10064


Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10033 1 Change In Programming Change in Programming
10034 1 Reset To Defaults Reset To Defaults
10035 1 Change Password Change Password
10036 1 Reserved Reserved
10037 1 VFD Drive Fault Error
10038 1 VFD Drive Fault Bypass
10039 1 VFD Keypad Control
10040 1 VFD Switch Off
10041 1 VFD Pressure Switch Engaged
10042 1 Malfunction Lockout malfunction lockout detected
10043 1 VFD Drive BypassSwitchEngaged
10044 1 VFD ABB IGBT Fans Not Configured
10045 1 VFD ABB IGBT Fans Config Conflict
Sam Modbus Map - RPC Lufkin Automation Page 24 of 104
Version 6.16 10000 Registers

10046 18 Reserved Reserved


10064 1 Active Latched Alarm If set, then a latched alarm in the 1XXXX range is
active
Sam Modbus Map - RPC Lufkin Automation Page 25 of 104
Version 6.16 10000 Registers

Analog Input Alarms & Alerts 10065-10320


Each Alarm Section is formatted the same as below. ( Each set contains 32 bits )
EXAMPLE:
EXAMPLE EXAMPLE_ALARM_SET Example Set of Alarms, following Alarms will follow
the same format
ANALOG_INPUT_ 1 Example Alarm for Analog Input 1
ANALOG_INPUT_ 2 Example Alarm for Analog Input 2
ANALOG_INPUT_ 3 Example Alarm for Analog Input 3
ANALOG_INPUT_ 4 Example Alarm for Analog Input 4
ANALOG_INPUT_ 5 Example Alarm for Analog Input 5
ANALOG_INPUT_ 6 Example Alarm for Analog Input 6
ANALOG_INPUT_ 7 Example Alarm for Analog Input 7
ANALOG_INPUT_ 8 Example Alarm for Analog Input 8
ANALOG_INPUT_ 9 Example Alarm for Analog Input 9
ANALOG_INPUT_ 10 Example Alarm for Analog Input 10
ANALOG_INPUT_ 11 Example Alarm for Analog Input 11
ANALOG_INPUT_ 12 Example Alarm for Analog Input 12
ANALOG_INPUT_ 13 Example Alarm for Analog Input 13
ANALOG_INPUT_ 14 Example Alarm for Analog Input 14
ANALOG_INPUT_ 15 Example Alarm for Analog Input 15
ANALOG_INPUT_ 16 Example Alarm for Analog Input 16
ANALOG_INPUT_ 17 Example Alarm for Analog Input 17
ANALOG_INPUT_ 18 Example Alarm for Analog Input 18
ANALOG_INPUT_ 19 Example Alarm for Analog Input 19
ANALOG_INPUT_ 20 Example Alarm for Analog Input 20
ANALOG_INPUT_ 21 Example Alarm for Analog Input 21
ANALOG_INPUT_ 22 Example Alarm for Analog Input 22
ANALOG_INPUT_ 23 Example Alarm for Analog Input 23
ANALOG_INPUT_ 24 Example Alarm for Analog Input 24
ANALOG_INPUT_ 25 Example Alarm for Analog Input 25
ANALOG_INPUT_ 26 Example Alarm for Analog Input 26
ANALOG_INPUT_ 27 Example Alarm for Analog Input 27
ANALOG_INPUT_ 28 Example Alarm for Analog Input 28
ANALOG_INPUT_ 29 Example Alarm for Analog Input 29
ANALOG_INPUT_ 30 Example Alarm for Analog Input 30
ANALOG_INPUT_ 31 Example Alarm for Analog Input 31
ANALOG_INPUT_ 32 Example Alarm for Analog Input 32
Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10065 32 ANALOG_ACT_LOW_ALARM_SET Analog Input Active Low Alarms
10097 32 ANALOG_LOW_ALARM_OCC_SET Analog Input Latched Low Alarms
10129 32 ANALOG_ACT_LOW_ALERT_SET Analog Input Active Low Alerts
10161 32 ANALOG_LOW_ALERT_OCC_SET Analog Input Latched Low Alert
10193 32 ANALOG_ACT_HI_ALARM_SET Analog Input Active High Alarms
10225 32 ANALOG_HI_ALARM_OCC_SET Analog Input Latched High Alarms
10257 32 ANALOG_ACT_HI_ALERT_SET Analog Input Active High Alerts
10289 32 ANALOG_HI_ALERT_OCC_SET Analog Input Latched High Alerts
Sam Modbus Map - RPC Lufkin Automation Page 26 of 104
Version 6.16 10000 Registers

Digital Status 10321- 10384


Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10321 1 Digital 1 Status Digital 1 Status
10322 1 Digital 2 Status Digital 2 Status
10323 1 Digital 3 Status Digital 3 Status
10324 1 Digital 4 Status Digital 4 Status
10325 1 Digital 5 Status Digital 5 Status
10326 1 Digital 6 Status Digital 6 Status
10327 1 Digital 7 Status Digital 7 Status
10328 1 Digital 8 Status Digital 8 Status
10329 1 Digital 9 Status Digital 9 Status
10330 1 Digital 10 Status Digital 10 Status
10331 1 Digital 11 Status Digital 11 Status
10332 1 Digital 12 Status Digital 12 Status
10333 1 Digital 13 Status Digital 13 Status
10334 1 Digital 14 Status Digital 14 Status
10335 1 Digital 15 Status Digital 15 Status
10336 1 Digital 16 Status Digital 16 Status
10337 1 Digital 17 Status Digital 17 Status
10338 1 Digital 18 Status Digital 18 Status
10339 1 Digital 19 Status Digital 19 Status
10340 1 Digital 20 Status Digital 20 Status
10341 1 Digital 21 Status Digital 21 Status
10342 1 Digital 22 Status Digital 22 Status
10343 1 Digital 23 Status Digital 23 Status
10344 1 Digital 24 Status Digital 24 Status
10345 1 Digital 25 Status Digital 25 Status
10346 1 Digital 26 Status Digital 26 Status
10347 1 Digital 27 Status Digital 27 Status
10348 1 Digital 28 Status Digital 28 Status
10349 1 Digital 29 Status Digital 29 Status
10350 1 Digital 30 Status Digital 30 Status
10351 1 Digital 31 Status Digital 31 Status
10352 1 Digital 32 Status Digital 32 Status
10353 1 Digital 33 Status Digital 33 Status
10354 1 Digital 34 Status Digital 34 Status
10355 1 Digital 35 Status Digital 35 Status
10356 1 Digital 36 Status Digital 36 Status
10357 1 Digital 37 Status Digital 37 Status
10358 1 Digital 38 Status Digital 38 Status
10359 1 Digital 39 Status Digital 39 Status
10360 1 Digital 40 Status Digital 40 Status
10361 1 Digital 41 Status Digital 41 Status
10362 1 Digital 42 Status Digital 42 Status
10363 1 Digital 43 Status Digital 43 Status
Sam Modbus Map - RPC Lufkin Automation Page 27 of 104
Version 6.16 10000 Registers

10364 1 Digital 44 Status Digital 44 Status


10365 1 Digital 45 Status Digital 45 Status
10366 1 Digital 46 Status Digital 46 Status
10367 1 Digital 47 Status Digital 47 Status
10368 1 Digital 48 Status Digital 48 Status
10369 1 Digital 49 Status Digital 49 Status
10370 1 Digital 50 Status Digital 50 Status
10371 1 Digital 51 Status Digital 51 Status
10372 1 Digital 52 Status Digital 52 Status
10373 1 Digital 53 Status Digital 53 Status
10374 1 Digital 54 Status Digital 54 Status
10375 1 Digital 55 Status Digital 55 Status
10376 1 Digital 56 Status Digital 56 Status
10377 1 Digital 57 Status Digital 57 Status
10378 1 Digital 58 Status Digital 58 Status
10379 1 Digital 59 Status Digital 59 Status
10380 1 Digital 60 Status Digital 60 Status
10381 1 Digital 61 Status Digital 61 Status
10382 1 Digital 62 Status Digital 62 Status
10383 1 Digital 63 Status Digital 63 Status
10384 1 Digital 64 Status Digital 64 Status
Sam Modbus Map - RPC Lufkin Automation Page 28 of 104
Version 6.16 10000 Registers

Logic Expression Results 10385-10392


Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10385 1 LOGIC_EXPRESSION_RESULT_1 Logic Expression 1 Result
10386 1 LOGIC_EXPRESSION_RESULT_2 Logic Expression 2 Result
10387 1 LOGIC_EXPRESSION_RESULT_3 Logic Expression 3 Result
10388 1 LOGIC_EXPRESSION_RESULT_4 Logic Expression 4 Result
10389 1 LOGIC_EXPRESSION_RESULT_5 Logic Expression 5 Result
10390 1 LOGIC_EXPRESSION_RESULT_6 Logic Expression 6 Result
10391 1 LOGIC_EXPRESSION_RESULT_7 Logic Expression 7 Result
10392 1 LOGIC_EXPRESSION_RESULT_8 Logic Expression 8 Result
10393 8 Reserved Reserved

Alarm Register Alarms & Alerts 10401-10464


Each Alarm Section is formatted the same as below. ( Each set contains 32 bits )
EXAMPLE:
EXAMPLE EXAMPLE_ALARM_SET Example Set of Alarms, following Alarms will follow
the same format
ALARM_REGISTER_ 1 Example Alarm for Alarm Register 1
ALARM_REGISTER_ 2 Example Alarm for Alarm Register 2
ALARM_REGISTER_ 3 Example Alarm for Alarm Register 3
ALARM_REGISTER_ 4 Example Alarm for Alarm Register 4
ALARM_REGISTER_ 5 Example Alarm for Alarm Register 5
ALARM_REGISTER_ 6 Example Alarm for Alarm Register 6
ALARM_REGISTER_ 7 Example Alarm for Alarm Register 7
ALARM_REGISTER_ 8 Example Alarm for Alarm Register 8
Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10401 8 ALRM_REG_LOW_ALARM_SET Alarm Register Active Low Alarms
10409 8 ALRM_REG_LOW_ALARM_OCC_SETAlarm Register Latched Low Alarms
10417 8 ALRM_REG_ACT_LOW_ALERT_SETAlarm Register Active Low Alerts
10425 8 ALRM_REG_LOW_ALERT_OCC_SETAlarm Register Latched Low Alert
10433 8 ALRM_REG_ACT_HI_ALARM_SET Alarm Register Active High Alarms
10441 8 ALRM_REG_HI_ALARM_OCC_SET Alarm Register Latched High Alarms
10449 8 ALRM_REG_ACT_HI_ALERT_SET Alarm Register Active High Alerts
10457 8 ALRM_REG_HI_ALERT_OCC_SET Alarm Register Latched High Alerts
Sam Modbus Map - RPC Lufkin Automation Page 29 of 104
Version 6.16 10000 Registers

Digital Dynamic Alarms 10465-10528


Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10465 1 Digital 1 Dynamic Alarm Digital 1 Dynamic Alarm
10466 1 Digital 2 Dynamic Alarm Digital 2 Dynamic Alarm
10467 1 Digital 3 Dynamic Alarm Digital 3 Dynamic Alarm
10468 1 Digital 4 Dynamic Alarm Digital 4 Dynamic Alarm
10469 1 Digital 5 Dynamic Alarm Digital 5 Dynamic Alarm
10470 1 Digital 6 Dynamic Alarm Digital 6 Dynamic Alarm
10471 1 Digital 7 Dynamic Alarm Digital 7 Dynamic Alarm
10472 1 Digital 8 Dynamic Alarm Digital 8 Dynamic Alarm
10473 1 Digital 9 Dynamic Alarm Digital 9 Dynamic Alarm
10474 1 Digital 10 Dynamic Alarm Digital 10 Dynamic Alarm
10475 1 Digital 11 Dynamic Alarm Digital 11 Dynamic Alarm
10476 1 Digital 12 Dynamic Alarm Digital 12 Dynamic Alarm
10477 1 Digital 13 Dynamic Alarm Digital 13 Dynamic Alarm
10478 1 Digital 14 Dynamic Alarm Digital 14 Dynamic Alarm
10479 1 Digital 15 Dynamic Alarm Digital 15 Dynamic Alarm
10480 1 Digital 16 Dynamic Alarm Digital 16 Dynamic Alarm
10481 1 Digital 17 Dynamic Alarm Digital 17 Dynamic Alarm
10482 1 Digital 18 Dynamic Alarm Digital 18 Dynamic Alarm
10483 1 Digital 19 Dynamic Alarm Digital 19 Dynamic Alarm
10484 1 Digital 20 Dynamic Alarm Digital 20 Dynamic Alarm
10485 1 Digital 21 Dynamic Alarm Digital 21 Dynamic Alarm
10486 1 Digital 22 Dynamic Alarm Digital 22 Dynamic Alarm
10487 1 Digital 23 Dynamic Alarm Digital 23 Dynamic Alarm
10488 1 Digital 24 Dynamic Alarm Digital 24 Dynamic Alarm
10489 1 Digital 25 Dynamic Alarm Digital 25 Dynamic Alarm
10490 1 Digital 26 Dynamic Alarm Digital 26 Dynamic Alarm
10491 1 Digital 27 Dynamic Alarm Digital 27 Dynamic Alarm
10492 1 Digital 28 Dynamic Alarm Digital 28 Dynamic Alarm
10493 1 Digital 29 Dynamic Alarm Digital 29 Dynamic Alarm
10494 1 Digital 30 Dynamic Alarm Digital 30 Dynamic Alarm
10495 1 Digital 31 Dynamic Alarm Digital 31 Dynamic Alarm
10496 1 Digital 32 Dynamic Alarm Digital 32 Dynamic Alarm
10497 1 Digital 33 Dynamic Alarm Digital 33 Dynamic Alarm
10498 1 Digital 34 Dynamic Alarm Digital 34 Dynamic Alarm
10499 1 Digital 35 Dynamic Alarm Digital 35 Dynamic Alarm
10500 1 Digital 36 Dynamic Alarm Digital 36 Dynamic Alarm
Sam Modbus Map - RPC Lufkin Automation Page 30 of 104
Version 6.16 10000 Registers

10501 1 Digital 37 Dynamic Alarm Digital 37 Dynamic Alarm


10502 1 Digital 38 Dynamic Alarm Digital 38 Dynamic Alarm
10503 1 Digital 39 Dynamic Alarm Digital 39 Dynamic Alarm
10504 1 Digital 40 Dynamic Alarm Digital 40 Dynamic Alarm
10505 1 Digital 41 Dynamic Alarm Digital 41 Dynamic Alarm
10506 1 Digital 42 Dynamic Alarm Digital 42 Dynamic Alarm
10507 1 Digital 43 Dynamic Alarm Digital 43 Dynamic Alarm
10508 1 Digital 44 Dynamic Alarm Digital 44 Dynamic Alarm
10509 1 Digital 45 Dynamic Alarm Digital 45 Dynamic Alarm
10510 1 Digital 46 Dynamic Alarm Digital 46 Dynamic Alarm
10511 1 Digital 47 Dynamic Alarm Digital 47 Dynamic Alarm
10512 1 Digital 48 Dynamic Alarm Digital 48 Dynamic Alarm
10513 1 Digital 49 Dynamic Alarm Digital 49 Dynamic Alarm
10514 1 Digital 50 Dynamic Alarm Digital 50 Dynamic Alarm
10515 1 Digital 51 Dynamic Alarm Digital 51 Dynamic Alarm
10516 1 Digital 52 Dynamic Alarm Digital 52 Dynamic Alarm
10517 1 Digital 53 Dynamic Alarm Digital 53 Dynamic Alarm
10518 1 Digital 54 Dynamic Alarm Digital 54 Dynamic Alarm
10519 1 Digital 55 Dynamic Alarm Digital 55 Dynamic Alarm
10520 1 Digital 56 Dynamic Alarm Digital 56 Dynamic Alarm
10521 1 Digital 57 Dynamic Alarm Digital 57 Dynamic Alarm
10522 1 Digital 58 Dynamic Alarm Digital 58 Dynamic Alarm
10523 1 Digital 59 Dynamic Alarm Digital 59 Dynamic Alarm
10524 1 Digital 60 Dynamic Alarm Digital 60 Dynamic Alarm
10525 1 Digital 61 Dynamic Alarm Digital 61 Dynamic Alarm
10526 1 Digital 62 Dynamic Alarm Digital 62 Dynamic Alarm
10527 1 Digital 63 Dynamic Alarm Digital 63 Dynamic Alarm
10528 1 Digital 64 Dynamic Alarm Digital 64 Dynamic Alarm
Sam Modbus Map - RPC Lufkin Automation Page 31 of 104
Version 6.16 10000 Registers

Digital Latched Alarms 10529-10592


Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10529 1 Digital 1 Latched Alarm Digital 1 Latched Alarm
10530 1 Digital 2 Latched Alarm Digital 2 Latched Alarm
10531 1 Digital 3 Latched Alarm Digital 3 Latched Alarm
10532 1 Digital 4 Latched Alarm Digital 4 Latched Alarm
10533 1 Digital 5 Latched Alarm Digital 5 Latched Alarm
10534 1 Digital 6 Latched Alarm Digital 6 Latched Alarm
10535 1 Digital 7 Latched Alarm Digital 7 Latched Alarm
10536 1 Digital 8 Latched Alarm Digital 8 Latched Alarm
10537 1 Digital 9 Latched Alarm Digital 9 Latched Alarm
10538 1 Digital 10 Latched Alarm Digital 10 Latched Alarm
10539 1 Digital 11 Latched Alarm Digital 11 Latched Alarm
10540 1 Digital 12 Latched Alarm Digital 12 Latched Alarm
10541 1 Digital 13 Latched Alarm Digital 13 Latched Alarm
10542 1 Digital 14 Latched Alarm Digital 14 Latched Alarm
10543 1 Digital 15 Latched Alarm Digital 15 Latched Alarm
10544 1 Digital 16 Latched Alarm Digital 16 Latched Alarm
10545 1 Digital 17 Latched Alarm Digital 17 Latched Alarm
10546 1 Digital 18 Latched Alarm Digital 18 Latched Alarm
10547 1 Digital 19 Latched Alarm Digital 19 Latched Alarm
10548 1 Digital 20 Latched Alarm Digital 20 Latched Alarm
10549 1 Digital 21 Latched Alarm Digital 21 Latched Alarm
10550 1 Digital 22 Latched Alarm Digital 22 Latched Alarm
10551 1 Digital 23 Latched Alarm Digital 23 Latched Alarm
10552 1 Digital 24 Latched Alarm Digital 24 Latched Alarm
10553 1 Digital 25 Latched Alarm Digital 25 Latched Alarm
10554 1 Digital 26 Latched Alarm Digital 26 Latched Alarm
10555 1 Digital 27 Latched Alarm Digital 27 Latched Alarm
10556 1 Digital 28 Latched Alarm Digital 28 Latched Alarm
10557 1 Digital 29 Latched Alarm Digital 29 Latched Alarm
10558 1 Digital 30 Latched Alarm Digital 30 Latched Alarm
10559 1 Digital 31 Latched Alarm Digital 31 Latched Alarm
10560 1 Digital 32 Latched Alarm Digital 32 Latched Alarm
10561 1 Digital 33 Latched Alarm Digital 33 Latched Alarm
Sam Modbus Map - RPC Lufkin Automation Page 32 of 104
Version 6.16 10000 Registers

10562 1 Digital 34 Latched Alarm Digital 34 Latched Alarm


10563 1 Digital 35 Latched Alarm Digital 35 Latched Alarm
10564 1 Digital 36 Latched Alarm Digital 36 Latched Alarm
10565 1 Digital 37 Latched Alarm Digital 37 Latched Alarm
10566 1 Digital 38 Latched Alarm Digital 38 Latched Alarm
10567 1 Digital 39 Latched Alarm Digital 39 Latched Alarm
10568 1 Digital 40 Latched Alarm Digital 40 Latched Alarm
10569 1 Digital 41 Latched Alarm Digital 41 Latched Alarm
10570 1 Digital 42 Latched Alarm Digital 42 Latched Alarm
10571 1 Digital 43 Latched Alarm Digital 43 Latched Alarm
10572 1 Digital 44 Latched Alarm Digital 44 Latched Alarm
10573 1 Digital 45 Latched Alarm Digital 45 Latched Alarm
10574 1 Digital 46 Latched Alarm Digital 46 Latched Alarm
10575 1 Digital 47 Latched Alarm Digital 47 Latched Alarm
10576 1 Digital 48 Latched Alarm Digital 48 Latched Alarm
10577 1 Digital 49 Latched Alarm Digital 49 Latched Alarm
10578 1 Digital 50 Latched Alarm Digital 50 Latched Alarm
10579 1 Digital 51 Latched Alarm Digital 51 Latched Alarm
10580 1 Digital 52 Latched Alarm Digital 52 Latched Alarm
10581 1 Digital 53 Latched Alarm Digital 53 Latched Alarm
10582 1 Digital 54 Latched Alarm Digital 54 Latched Alarm
10583 1 Digital 55 Latched Alarm Digital 55 Latched Alarm
10584 1 Digital 56 Latched Alarm Digital 56 Latched Alarm
10585 1 Digital 57 Latched Alarm Digital 57 Latched Alarm
10586 1 Digital 58 Latched Alarm Digital 58 Latched Alarm
10587 1 Digital 59 Latched Alarm Digital 59 Latched Alarm
10588 1 Digital 60 Latched Alarm Digital 60 Latched Alarm
10589 1 Digital 61 Latched Alarm Digital 61 Latched Alarm
10590 1 Digital 62 Latched Alarm Digital 62 Latched Alarm
10591 1 Digital 63 Latched Alarm Digital 63 Latched Alarm
10592 1 Digital 64 Latched Alarm Digital 64 Latched Alarm
Sam Modbus Map - RPC Lufkin Automation Page 33 of 104
Version 6.16 10000 Registers

Modbus Master Communications Fail Dynamic 10593-10602


Alarms
Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10593 1 Modbus Master 1 Comm Fail Dynamic Alarm
10594 1 Modbus Master 2 Comm Fail Dynamic Alarm
10595 1 Modbus Master 3 Comm Fail Dynamic Alarm
10596 1 Modbus Master 4 Comm Fail Dynamic Alarm
10597 1 Modbus Master 5 Comm Fail Dynamic Alarm
10598 1 Modbus Master 6 Comm Fail Dynamic Alarm
10599 1 Modbus Master 7 Comm Fail Dynamic Alarm
10600 1 Modbus Master 8 Comm Fail Dynamic Alarm
10601 1 Modbus Master 9 Comm Fail Dynamic Alarm
10602 1 Modbus Master 10 Comm Fail Dynamic Alarm
10603 6 Reserved Reserved

Modbus Master Communications Fail Latched 10603-10612


Alarms
Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10609 1 Modbus Master 1 Comm Fail Latched Alarm
10610 1 Modbus Master 2 Comm Fail Latched Alarm
10611 1 Modbus Master 3 Comm Fail Latched Alarm
10612 1 Modbus Master 4 Comm Fail Latched Alarm
10613 1 Modbus Master 5 Comm Fail Latched Alarm
10614 1 Modbus Master 6 Comm Fail Latched Alarm
10615 1 Modbus Master 7 Comm Fail Latched Alarm
10616 1 Modbus Master 8 Comm Fail Latched Alarm
10617 1 Modbus Master 9 Comm Fail Latched Alarm
10618 1 Modbus Master 10 Comm Fail Latched Alarm
10619 6 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 34 of 104
Version 6.16 10000 Registers

Well State Alarms Dynamic 10625 -10640

Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10625 1 Well State Alarm 1 Dynamic
10626 1 Well State Alarm 2 Dynamic
10627 1 Well State Alarm 3 Dynamic
10628 1 Well State Alarm 4 Dynamic
10629 1 Well State Alarm 5 Dynamic
10630 1 Well State Alarm 6 Dynamic
10631 1 Well State Alarm 7 Dynamic
10632 1 Well State Alarm 8 Dynamic
10633 1 Well State Alarm 9 Dynamic
10634 1 Well State Alarm 10 Dynamic
10635 1 Well State Alarm 11 Dynamic
10636 1 Well State Alarm 12 Dynamic
10637 1 Well State Alarm 13 Dynamic
10638 1 Well State Alarm 14 Dynamic
10639 1 Well State Alarm 15 Dynamic
10640 1 Well State Alarm 16 Dynamic

Well State Alarms Latched 10641-10656

Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10641 1 Well State Alarm 1 Latched
10642 1 Well State Alarm 2 Latched
10643 1 Well State Alarm 3 Latched
10644 1 Well State Alarm 4 Latched
10645 1 Well State Alarm 5 Latched
10646 1 Well State Alarm 6 Latched
10647 1 Well State Alarm 7 Latched
10648 1 Well State Alarm 8 Latched
10649 1 Well State Alarm 9 Latched
10650 1 Well State Alarm 10 Latched
10651 1 Well State Alarm 11 Latched
10652 1 Well State Alarm 12 Latched
10653 1 Well State Alarm 13 Latched
10654 1 Well State Alarm 14 Latched
10655 1 Well State Alarm 15 Latched
10656 1 Well State Alarm 16 Latched
Sam Modbus Map - RPC Lufkin Automation Page 35 of 104
Version 6.16 10000 Registers

Coil Tracking Status 10657-10672

Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10657 1 Coil Track 1 Status
10658 1 Coil Track 2 Status
10659 1 Coil Track 3 Status
10660 1 Coil Track 4 Status
10661 1 Coil Track 5 Status
10662 1 Coil Track 6 Status
10663 1 Coil Track 7 Status
10664 1 Coil Track 8 Status
10665 1 Coil Track 9 Status
10666 1 Coil Track 10 Status
10667 1 Coil Track 11 Status
10668 1 Coil Track 12 Status
10669 1 Coil Track 13 Status
10670 1 Coil Track 14 Status
10671 1 Coil Track 15 Status
10672 1 Coil Track 16 Status

Reserved 10673-10688

Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10673 16

Custody Transfer 10689-10705

Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10689 1 Host Logged In
10690 15 Reserved
10705 1 Invalid Gas Mixture
Sam Modbus Map - RPC Lufkin Automation Page 36 of 104
Version 6.16 10000 Registers

Authorization Alarms 10721

Note: Use Function Code 02 to Read these bits.

REGISTER # Coils NAME DESCRIPTION


10721 1 VSD Unauthorized
Sam Modbus Map - RPC Lufkin Automation Page 37 of 104
Version 6.16 30000 Registers

30000 Registers

Controller Information 30001 - 30022 # Registers 22


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


30001 1 Firmware Version High Byte: Reserved
Low Byte: Firmware Version
30002 1 Firmware Build
30003 2 X Firmware Checksum
30005 1 Bootstrap Version
30006 2 X Bootstrap Checksum
30008 1 Low Level Version
30009 2 X Low Level Checksum
30011 1 CPLD Version
30012 4 Serial Number 8 Byte Serial Number
30016 7 Reserved

Reserved 30023 - 30023 # Registers 10


Use Function Code 04 to Read this Data

Register # Regs 6.08


F R1 A NAME DESCRIPTION
30023 10 Reserved
Sam Modbus Map - RPC Lufkin Automation Page 38 of 104
Version 6.16 30000 Registers

Analog Input Status 30033 - 30352 # Registers 320


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


30033 10
Reg # F L A Name Description
30033 2 X CUR_SCALED_AI1 Current Scaled Reading Analog 1

30035 2 X CUR_DAY_AVE_AI1 Current Scaled Daily Average Analog 1


30037 2 X Reserved Reserved
30039 2 X CUR_RAW_AI1 Current Raw Reading Analog 1
30041 2 X Current 8 Minute Avg Current Scaled 8 Minute Average

30043 10 AI2 Status


30053 10 AI3 Status
30063 10 AI4 Status
30073 10 AI5 Status
30083 10 AI6 Status
30093 10 AI7 Status
30103 10 AI8 Status
30113 10 AI9 Status
30123 10 AI10 Status
30133 10 AI11 Status
30143 10 AI12 Status
30153 10 AI13 Status
30163 10 AI14 Status
30173 10 AI15 Status
30183 10 AI16 Status
30193 10 AI17 Status
30203 10 AI18 Status
30213 10 AI19 Status
30223 10 AI20 Status
30233 10 AI21 Status
30243 10 AI22 Status
30253 10 AI23 Status
30263 10 AI24 Status
30273 10 AI25 Status
30283 10 AI26 Status
30293 10 AI27 Status
30303 10 AI28 Status
30313 10 AI29 Status
30323 10 AI30 Status
30333 10 AI31 Status
30343 10 AI32 Status
Sam Modbus Map - RPC Lufkin Automation Page 39 of 104
Version 6.16 30000 Registers

Analog Output Status 30353 - 30452 # Registers 100


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


30353 10
Reg # F L A Name Description
30353 2 X CUR_SCALED_AO1 Current Scaled Output Analog 1
30355 2 Reserved AO1
30357 2 Reserved AO1
30359 2 X CUR_RAW_AO1 Current Raw Output Analog 1
30361 2 Reserved AO1

30363 10 AO2 Status


30373 10 AO3 Status
30383 10 AO4 Status
30393 10 AO5 Status
30403 10 AO6 Status
30413 10 AO7 Status
30423 10 AO8 Status
30433 20 Reserved Reserved

Accumulator Status 30453 - 30602 # Registers 150


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


30453 15 ACC1 Status
Reg # F L A Description
30453 1 Number of Pulses in last second
30454 2 X User Interval Rate
30456 2 X Current Rate
X Total Accumulator - Total accumulation since commission or user reset
30458 2
30460 2 X Today's Accumulator - Reset at Gauge Off
30462 1 Reserved
30463 2 X User Defined Accumulator (x100)
30465 1 Reserved
30466 2 X Previous User Defined Accumulator (x100)

30468 15 ACC2 Status


30483 15 ACC3 Status
30498 15 ACC4 Status
30513 15 ACC5 Status
30528 15 ACC6 Status
30543 15 ACC7 Status
30558 15 ACC8 Status
30573 15 ACC9 Status
30588 15 ACC10 Status
Sam Modbus Map - RPC Lufkin Automation Page 40 of 104
Version 6.16 30000 Registers

Event Log 30603 - 31202 # Registers 600


Use Function Code 04 to Read this Data
*NOTE: The range of event numbers between 80 and 90 are for engineering purposes, and changes are expected in this range.

Register # Regs F L A NAME DESCRIPTION


30603 200 EVENT LOG EVENT NUMBER
1 - Loss Of Programming
2 - Controller Initial Run
3 - Reset Push Button
4 - Reset Power On
5 - Reset Exception
6 - Reset Flash Upgrade
7 - Reset Timeout
8 - AGA 8 Task Re-Executed
9 - Custody Transfer Task Re-Executed
10 - Analog Diagnostic Performed
11 - Digital Diagnostic Performed
12 - Accumulator Diagnostic Performed
13 - Radio Diagnostic Performed
14 - Keypad Diagnostic Performed
15 - Main Board IO Diagnostic Completed
16 - Main Board IO Diagnostic Aborted
17 - Load Board Test Failed
18 - Auto Gain Recalibrated
19 - Manual Gain Recalibrated
20 - Return to Normal Control
21 - Firmware Upgrade
22 - Laptop Parameter Upload Pass
23 - Laptop Parameter Upload Fail
24 - Pumping Unit Parameter Changed
25 - Calendar Date Changed
26 - Calendar Time Changed
27 - Gauge Off Time Changed
28 - Invalid Digital Out For Linear Pump
29 - Invalid Digital For HOA
30 - Clear All Alram HMI/HOST
31 - RTU Address Change by HMI
32 - RTU Address Change by Host
33 - Reset To Defaults Via HMI
34 - Reset To Defaults Via Host
35 - Switch to Failure Control
36 - Password Changed
37 - Reset To Defaults Clear Demo
38 - Enable Demo Mode
39 - Reserved
40 - Copy Backup To Working
41 - Corrupted Working Memory
42 - Corrupted Backup Memory
43 - DST: Check Date and Time
44 - DST: Spring Forward
45 - DST: Fall Back
46 - Comm Task Blocked
47 - HMI Task Blocked
48 - FKEY Task Blocked
49 - WS Task Blocked
Sam Modbus Map - RPC Lufkin Automation Page 41 of 104
Version 6.16 30000 Registers

50 - FUNCKEY Task Re-Executed


51 - DIG_MBRD Task Re-Executed
52 - COM Task Re-Executed
53 - RTC Task Re-Executed
54 - IO Task Re-Executed
55 - HMI Task Re-Executed
56 - LE Task Re-Executed
57 - PCH Task Re-Executed
58 - WS Task Re-Executed
59 - HOST_CALIB Task Re-Executed
60 - CMC Task Re-Executed
61 - DAQ Task Re-Executed
62 - BSC Task Re-Executed
63 - PROJ_IPA Task Re-Executed
64 - VFD Task Re-Executed
65 - WD Task Re-Executed
66 - INIT Task Re-Executed
67 - Reserved
68 - MCC Task Re-Executed
69 - Valve Check Task Re-Executed
70 - POSN DLT Task Re-Executed
71 - DHC Task Re-Executed
72 - HIST Task Re-Executed
73 - GOT Task Re-Executed
74 - EL Task Re-Executed
75 - ALMMGT Task Re-Executed
76 - AGA Task Re-Executed
77 - Diagnostic MBIO Task Re-Executed
78 - MB Maser Task Re-Executed
79 - Reserved
80 - Downhole Calculation Did Not Run
81 - Early Crank Pulse
82 - AGA Divide By Zero
83 - Analog In Above Max
84 - Analog In Below Min
85 - Total Gas Production Reset
86 - Recalibrate Reset Timeout
87 - Missed Crank Pulse
88 - Enter Programming Fault State
89 - Reserved for debug
90 - Reserved for debug
91 - Reserved for debug
92 - Reserved for debug
93 - Reserved for debug
94 - Fluid Load Calculation Error
95 - Flow constant spike
96 - Reserved for debug
97 - Reserved for debug
98 - Reserved for debug
99 - Reserved for debug
100 - Reserved for debug
101 - Reserved for debug
102 - Reserved for debug
30803 400 EVENT TIME DATE/ TIMESTAMP
Sam Modbus Map - RPC Lufkin Automation Page 42 of 104
Version 6.16 30000 Registers

Alarm Log 31203 - 31504 # Registers 302


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31203 300 X Alarm Log Alarm Log
The Alarm Log is an array of the following structure. There are 100 elements in the array.

Reg # F L A Name Description


31203 1 Alarm ID Alarm ID
31204 2 X Timestamp Timestamp

The Alarm ID can be decoded as follows


The Alarm ID contains two pieces of information.
The first piece of information is the state of the alarm.
If the Alarm ID is greater than 10000, then the alarm state was set at this time.
If the Alarm ID is less than 10000, then the alarm state was cleared at this time.
The second piece of information is the ID of the alarm event.
If the Alarm ID is greater than 10000, then the Alarm ID corresponds to an alarm flag in the 1XXXX range

If the Alarm ID is less than 10000, then add 10000 to the Alarm ID and the resulting value corresponds to an
alarm flag in the 1XXXX range.
Example
If there is Alarm ID of 10001, then this alarm tells us that a Belt Slippage alarm occurred at the corresponding
timestamp.
Likewise if the Alarm ID is 00001, this alarm tells us that a Belt Slippage alarm state was cleared at the time of the
corresponding timestamp.

31503 1 New Event Counter New Event Counter


31504 1 Reserved Reserved

Common Stamp Event 31505 - 31682 # Registers 178


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31505 178 X Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 43 of 104
Version 6.16 30000 Registers

App Specific Time Stamp 31683 - 31742 # Registers 60


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31683 2 X AC POWER ON AC Power On
31685 2 X AC POWER OFF AC Power Off
31687 2 X TIME_STAMP_UNABLE_TO_RUN Unable To Run
31689 2 X TIME_STAMP_UNABLE_TO_STOP Unable To Stop
31691 2 X TIME_STAMP_UNABLE_SENSE_POSITION Unable To Sense Position
31693 2 X TIME_STAMP_UNABLE_SENSE_LOAD Unable To Sense Load
31695 2 X TIME_STAMP_UNABLE_SENSE_RPM Unable To Sense RPM
31697 2 X TIME_STAMP_UNABLE_SENSE_CRANK Unable To Sense Crank
31699 2 X TIME_STAMP_CHANGE_TO_HOST Change To Host Mode
31701 2 X TIME_STAMP_CHANGE_TO_NORMAL Change To Normal Mode
31703 2 X TIME_STAMP_CHANGE_TO_TIMED Change To Timed Mode
31705 2 X TIME_STAMP_PEAK_LOAD_VIOLATION Peak Load Violation
31707 2 X TIME_STAMP_MIN_LOAD_VIOLATION Minimum Load Violation
31709 2 X TIME_STAMP_PEAK_TORQUE_VIOLATION Peak Torque Violation
31711 2 X TIME_STAMP_LOW_RPM_VIOLATION Low RPM Violation
31713 2 X TIME_STAMP_MALF_SETPT_VIOLATION Malfunction Setpoint Violation
31715 2 X TIME_STAMP_LOW_FLUID_LOAD Low Fluid Load Violation
31717 2 X TIME_STAMP_PUMP_OFF_VIOLATION Pump Off Violation
31719 2 X TIME_STAMP_LAST_PUMP_START Last Pump Start
31721 2 X TIME_STAMP_LAST_PUMP_STOP Last Pump Stop
31723 2 X TIME_STAMP_HOA_CHANGE HOA Change
31725 2 X TIME_STAMP_RESET_MALF Reset Malfunctions
31727 16 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 44 of 104
Version 6.16 30000 Registers

Shutdown Event Log 31743 - 31822 # Registers 80


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31743 20 X Shutdown Event Log ID Number ID Numbers for the last 20 shutdown events

101 - Last Pump Start


102 - Operator Stop - HMI
103 - Operator Stop - Host
104 - Downtime Peak Load
105 - Downtime Minimum Load
106 - Downtime Low RPM
107 - Downtime No RPM
108 - Downtime No Crank
109 - Downtime Malfunction SP
110 - Downtime Pump Off SP
111 - Downtime Pump Fillage
112 - Downtime Low Fluid Load
113 - Downtime Peak Torque
114 - Downtime Cut Off Power
115 - Downtime Logic Expression
116 - Malfunction Peak Load
117 - Malfunction Min Load
118 - Malfunction Low RPM
119 - Malfunction No RPM
120 - Malfunction No Crank
121 - Malfunction Malfunction Setpoint
122 - Malfunction Low Fluid Load
123 - Malfunction Peak Torque
124 - Downtime HOA Off
125 - Malfunction Logic Expression
126 - Downtime IPA Cutoff
127 - Downtime Timed Mode
128 - Downtime Host Mode
129 - Downtime Peak Energy Management
130 - Downtime Global Off
131 - Malfunction Lockout
132 - Downtime Drive Fault
133 - Malfunction Drive Fault
134 - Downtime PIP Control Override
31763 40 X Shutdown Event Log Timestamp Timestamps for the last 20 shutdown events
31803 20 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 45 of 104
Version 6.16 30000 Registers

Logic Expression Syntax Status 31823 - 31847 # Registers 25


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31823 8 X Logic Expression Error Registers

31831 17 Reserved Reserved

Logic Expression Errors are as follows:


00 - None
01 - End Of Expression Not Defined
02 - Multiple terminating characters
03 - First character not an output
04 - Wrong equal sign location
05 - Wrong mainboard digital channel
06 - Wrong digital channel
07 - Wrong analog channel
08 - Wrong accumulator channel
09 - Wrong analog alarm
10 - Wrong accumulator alarm
11 - Mismatching parenthesis
12 - Start with or
13 - Start with and
14 - Start with not
15 - Start with close parenthesis
16 - End with or
17 - End with and
18 - End with open parenthesis
19 - Illegal space
20 - Or out of order
21 - And out of order
22 - Open parenthesis out of order
23 - Close parenthesis out of order
24 - Not out of order
25 - Input out of order
26 - Analog not configured
27 - Analog alarms not enabled
28 - Digital not configured out
29 - Invalid main board number
30 - Accumulator not configured
31 - Digital not configured
Sam Modbus Map - RPC Lufkin Automation Page 46 of 104
Version 6.16 30000 Registers

Common Packed Status 31848 - 31892 # Registers 45


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31848 45 Reserved

EFM Status Registers 31893-31958 # Registers 66


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31893 2 X Status Update Timestamp
31895 2 X Hourly Flow Rate Current Hourly Flow Rate MCF/H
31897 2 X Daily Flow Rate Current Daily Flow Rate MCF/D
31899 2 X Today's Volume Total Volume Accumulated Since Contract
Time
31901 2 X Today's Energy Todays Energy ( MMBTU )
31903 2 X Total Volume Total Volume Accumulated Since Reset
31905 2 X Differential Pressure Current Differential Pressure ( in H2O )
31907 1 Differential Pressure Status Differential Pressure Status Register
31908 2 X Static Pressure Current Static Pressure ( psia )
31910 1 Static Pressure Status Static Pressure Status Register
31911 2 X Temperature Current Temperature ( degrees F )
31913 1 Temperature Status Temperature Status Register
31914 2 X Reynold's Number
31916 2 X Y
31918 2 X Ftb
31920 2 X Fgr
31922 2 X Fc
31924 2 X Zb
31926 2 X Zs
31928 2 X Square Root Extension
31930 2 X Fn
31932 2 X Fpb
31934 2 X Ftf
31936 2 X Beta Ratio
31938 2 X Fsl
31940 2 X Zf
31942 2 X Fpv
31944 2 X Relative Density
31946 2 X Fb
31948 1 Fpv Type
31949 2 X Orifice Flow Constant
31951 2 X Flow Rate Flow Rate at Flowing Conditions
31953 2 X Pressure Factor Pressure Factor as Floating Point
31955 2 X Flowing Temp Factor Flowing Temp Factor as Floating Point
31957 2 X Compressibility Factor Compressibility Factor as Floating Point
Sam Modbus Map - RPC Lufkin Automation Page 47 of 104
Version 6.16 30000 Registers

Reserved 31959 - 31970 # Registers 12


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31959 12 Reserved Reserved

AGA Status Registers 31971 - 31986 # Registers 16


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


31971 2 X Gas Flow Rate Gas Flow Rate MCF/D as Floating Point
2 X

31973 Yesterday's Gas Production Yesterday's Gas Production MCF


2 X
31975 Todays Gas Production Todays Production MCF as Floating Point
2 X
Accumulated Gas Production MCF as
31977 Total Gas Production Floating Point
31979 2 X Differential Pressure
31981 2 X Static Pressure
31983 2 X Flowing Temp
31985 2 X Supercompressibility

EFM Meter Run Name and ID 31987-32001 # Registers 15


Use Function Code 04 to Read this Data
Note: This data is in the form ASCII characters. There are two characters in each register
Register # Regs F L A NAME DESCRIPTION
31987 10 X Meter Run Name Meter Run Name (20 ascii characters)
31997 5 X Meter Run ID Meter Run ID (10 ascii characters)

Reserved 32002 - 32006 # Registers 5


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32002 5 Reserved
Sam Modbus Map - RPC Lufkin Automation Page 48 of 104
Version 6.16 30000 Registers

Modbus Master Comm Stats 32007-32016 # Registers 10


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32007 10 Modbus Master Device Comm Stats
Reg # F L A Name Description
30353 8 X Reserved Reserved
30361 2 X Timestamp Timestamp

Note: This section gives the communications stats for 1device. This section is loaded when a coil in the range of 513-522 is
set.

Modbus Master Device Data 32017 - 32141 # Registers 125


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32017 125 Modbus Master Device Comm Stats
Reg # F L A Description
30353 125 X Modbus Master Device Data

Note: This section holds the latest data from one slave device. This section is loaded when a coil in the range of 513-522 is set.

The data in the array corresponds to the register addresses in the range of 49850 - 49899. This range is also loaded when a coil
in the range of 513-522 is set. The first register of data ( reg 32017 ) is the value of the register number held in 49850.

Programmable Calculation Results 32142 - 32161 # Registers 20


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32142 2 X Programmable Calculation 1 Result Programmable Calculation 1 Result
32144 2 X Programmable Calculation 2 Result Programmable Calculation 2 Result
32146 2 X Programmable Calculation 3 Result Programmable Calculation 3 Result
32148 2 X Programmable Calculation 4 Result Programmable Calculation 4 Result
32150 2 X Programmable Calculation 5 Result Programmable Calculation 5 Result
32152 2 X Programmable Calculation 6 Result Programmable Calculation 6 Result
32154 2 X Programmable Calculation 7 Result Programmable Calculation 7 Result
32156 2 X Programmable Calculation 8 Result Programmable Calculation 8Result
32158 2 X Programmable Calculation 9 Result Programmable Calculation 9 Result
32160 2 X Programmable Calculation 10 Result Programmable Calculation 10 Result
Sam Modbus Map - RPC Lufkin Automation Page 49 of 104
Version 6.16 30000 Registers

Reserved 32162-32341 # Registers 180


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32162 180 Reserved Reserved

Alarm Tracking Status 32342-32389 # Registers 48


Use Function Code 04 to Read this Data
*NOTE: The following sections must be loaded before they are read. This can be accomplished with the command functions
in the 0XXXX range. (Registers 545 - 560 )
Register # Regs F L A NAME DESCRIPTION
32342 3 Alarm Track 1 Status

Each Status is defined as


Reg # # F L A Name Description
32342 1 Hours Num Hours Active for the day
32343 1 Minutes/Seconds High Byte - Minutes Active for the day
Low Byte - Seconds Active for the day
32344 1 Number of Occurences Number of Occurences for the day

32345 3 Alarm Track 2 Status Alarm Track 2 Status


32348 3 Alarm Track 3 Status Alarm Track 3 Status
32351 3 Alarm Track 4 Status Alarm Track 4 Status
32354 3 Alarm Track 5 Status Alarm Track 5 Status
32357 3 Alarm Track 6 Status Alarm Track 6 Status
32360 3 Alarm Track 7 Status Alarm Track 7 Status
32363 3 Alarm Track 8 Status Alarm Track 8 Status
32366 3 Alarm Track 9 Status Alarm Track 9 Status
32369 3 Alarm Track 10 Status Alarm Track 10 Status
32372 3 Alarm Track 11 Status Alarm Track 11 Status
32375 3 Alarm Track 12 Status Alarm Track 12 Status
32378 3 Alarm Track 13 Status Alarm Track 13 Status
32381 3 Alarm Track 14 Status Alarm Track 14 Status
32384 3 Alarm Track 15 Status Alarm Track 15 Status
32387 3 Alarm Track 16 Status Alarm Track 16 Status

Reserved 32390 - 32500 # Registers 111


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32390 111 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 50 of 104
Version 6.16 30000 Registers

POC Status Registers 32501 - 32527 # Registers 27


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32501 1 Well State Controllers Current State
0 - Invalid State
1 - Loss of Configuration
2 - Initialization State
3 - Power On Delay State
4 - Start Alert State
5 - Starting State
6 - Minimum Pump Strokes State
7 - Pumping Normal State
8 - Pumping Host State
9 - Pumping Timed Mode State
10 - Pumping HOA State
11 - Unable To Run State
12 - Pumping Bad Load State
13 - Pumping Bad Position State
14 - Stopping State
15 - Stopped State
16 - Unable To Stop State
17 - Load Recalibration State
18 - Load Not Calibrated State
19 - Programming Fault State

20-26 Reserved

27 - Valve Check State


28 - Main Board Diagnostic State
29 - Bottom Of Stroke Calibration State
30 - Reserved
31 - Downtime Pumpoff Setpoint State
32 - Downtime Malfunction State
33 - Downtime Peak Load State
34 - Downtime Minimum Load State
35 - Downtime HOA Off State
36 - Downtime Host Mode State
37 - Downtime Timed Mode State
38 - Downtime Pumping Bad Position State
39 - Downtime Pumping Bad Load State
40 - Downtime Low RPM State
41 - Downtime Global Off State
42 - Downtime Lost Power State
43 - Reserved
44 - Downtime Logic Expression State
45 - Reserved
46 - Downtime Low Fluid Load State
47 - Downtime Peak Torque State
48 - Downtime Low Power State
49 - Downtime NO RPM State
50 - Downtime No Crank State
51 - Downtime Peak Energy Management State
52 - Downtime Operator Stop
53 - Downtime IPA Cutoff
54 - Downtime Drive Fault
Sam Modbus Map - RPC Lufkin Automation Page 51 of 104
Version 6.16 30000 Registers

55 - Downtime PIP Control Override


56 - Reserved
57 - Reserved
58 - Downtime Logic Expression 1
59 - Downtime Logic Expressoin 2
60 - Downtime Logic Expression 3
61 - Downtime Logic Expression 4
62 - Downtime Logic Expression 5
63 - Downtime Logic Expression 6
64 - Downtime Logic Expression 7
65 - Downtime Logic Expression 8
66 - Reserved
67 - Reserved
68 - Reserved
69 - Reserved
70 - Malfunction Peak Load State
71 - Malfunction Min Load State
72 - Malfunction Malfunction Setpoint State
73 - Malfunction Low RPM State
74 - Malfunction Logic Expression State
75 - Malfunction No RPM State
76 - Malfunction No Crank State
77 - Malfunction Peak Torque State
78 - Malfunction Lockout
79 - Malfunction Low Fluid Load State
80 - Malfunction Drive Fault
81 - Reserved
82 - Reserved
83 - Malfunction Logic Expression 1
84 - Malfunction Logic Expression 2
85 - Malfunction Logic Expression 3
86 - Malfunction Logic Expression 4
87 - Malfunction Logic Expression 5
88 - Malfunction Logic Expression 6
89 - Malfunction Logic Expression 7
90 - Malfunction Logic Expression 8
32502 1 Elapsed Time Hour Elapsed Time (Hours) in current state
32503 1 Elapsed Time Min and Sec High Byte: Elapsed Time(Minutes) in
Low Byte: Elapsed Time(Seconds) in current
32504 1 Auto Downtime Present Value Auto Downtime Present Value ( Minutes )
32505 1 Auto Downtime State Status of the Auto Downtime mode:
0 - Manual
1 - 1st DT
2 - Execute
3 - Maximum Run
4 - Suspend
5 - Done
6 - Invalid
32506 1 Stroke Period Number of seconds per stroke x100
32507 1 Failure Control Mode Failure Control Mode
0 No Failure Control
1 Motor Power Control
32508 1 Current Load Current Scaled Load
32509 1 Current Position Current Scaled Position x100
32510 1 Current RPM Current Motor RPM
32511 2 X Current Torque Current Torque
32513 2 X Current HP Current HP
Sam Modbus Map - RPC Lufkin Automation Page 52 of 104
Version 6.16 30000 Registers

32515 1 Minimum Stroke Counter Number of Strokes in the Minimum Pump


32516 2 X Rodometer Number of Strokes since Commission
32518 2 X Pumpometer Number of Strokes since Commission
32520 1 Laptop/Host Calibration State Laptop/Host Calibration State
0 - Hibernate
1 - In Progress
2 - Calibration Terminated by User
3 - Calibration Terminated Load static
4 - Reserved
5 - Calibration Terminated Calibration Timeout
6 - Calibration Request Denied executing prior
7 - Calibration Request Denied Load Transducer
8 - Calibration Request Denied Pump Well state
9 - Calibration Completed
32521 1 VFD Run Scaled x 10
32522 1 Reference Revolution Calibration Status 0 - Waiting for Calibration cmd start
1-Calibration initialization
2-waiting for Pumping HOA/Host
3-Calibration In-progress
4-Calibration Terminating
5-Calibration Aborted
6-Calibration Incomplete
7-Calibration Completed
8-Error - Not RPM Crank Pos Xducer
9-calibration Timeout
32523 2 Ref Rev Calibration Completed timestamp Julian Calendar in Seconds
32525 1 Strokes Per Minute 0 when well stopped
32526 1 Reserved
32527 1 Reserved
Sam Modbus Map - RPC Lufkin Automation Page 53 of 104
Version 6.16 30000 Registers

Consecutive Violations 32528 - 32546 # Registers 19


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32528 1 Consecutive Low RPM Number of Consecutive Low RPM
Consecutive Malf Setpoint Number of Consecutive Malfunction
32529 1 Setpoint Violations
Consecutive Peak Load Number of Consecutive Peak Load
32530 1 Violations
Consecutive Min Load Number of Consecutive Min Load Violations
32531 1
32532 1 Consecutive Peak Torque Number of Consecutive Peak Torque
Consecutive Logic Expressions Number of Consecutive Logic Expression
32533 1 Violations
Consecutive No RPM Number of Consecutive No RPM Violations
32534 1
Consecutive No Crank Number of Consecutive No Crank Violations
32535 1
32536 1 Reserved Reserved
Consecutive Fluid Load Number of Consecutive Fluid Load
32537 1 Violations
32538 9 Reserved
Sam Modbus Map - RPC Lufkin Automation Page 54 of 104
Version 6.16 30000 Registers

Cumulative Violations 32547 - 32566 # Registers 20


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32547 1 Cumulative Low RPM Number of Cumulative Low RPM Violations
32548 Cumulative Malf Setpoint Number of Cumulative Malf Setpoint
Violations since commission or Reset
1 Malfunction
32549 Cumulative Peak Load Number of Cumulative Peak Load Violations
1 since commission or Reset Malfunction
32550 Cumulative Min Load Number of Cumulative Min Load Violations
since commission or Reset Malfunction
1
32551 1 Cumulative Peak Torque Number of Cumulative Peak Torque
32552 1 Cumulative Logic Expression Number of Cumulative Logic Expression
32553 Cumulative No RPM Number of Cumulative No RPM Violations
1 since commission or Reset Malfunction
32554 Cumulative No Crank Number of Cumulative No Crank Violations
1 since commission or Reset Malfunction
32555 1 Reserved Reserved
32556 Cumulative Fluid Load Number of Cumulative Fluid Load
Violations since commission or Reset
1 Malfunction
32557 3 Reserved Reserved
32560 Peak Load Since GOT Peak Load value since the last Gauge Off
1 Time
32561 Min Load Since GOT Minimum Load value since the last Gauge
1 Off Time
32562 Low RPM Since GOT Lowest RPM value since the last Gauge Off
1 Time
32563 Peak Torque Since GOT Peak Torque value since the last Gauge Off
1 Time x100
32564 Peak PRHP Since GOT Peak PRHP value since the last Gauge Off
1 Time x10
32565 2 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 55 of 104
Version 6.16 30000 Registers

Historical Peak And Min Data 32567 - 32602 # Registers 36


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32567 1 Record Peak Load Scaled Peak Load Since Commission
32568 1 Yesterday Peak Load Scaled Yesterday Peak Load. Updated at
Gage Off Time
32569 1 Last Stroke Peak Load Scaled Last Stroke Peak Load.
32570 1 Record Min Load Scaled Min Load Since Commission
32571 1 Yesterday Min Load Scaled Yesterday Min Load. Updated at
32572 1 Last Stroke Min Load Scaled Last Stroke Min Load.
32573 1 Record Low RPM Scaled Low RPM since Commission
32574 1 Reserved Reserved
32575 1 Last Stroke Low RPM Scaled Last Stroke Low RPM.
32576 1 Record Peak Torque Scaled Peak Torque Since Commission
32577 1 Yesterday Peak Torque Scaled Yesterday Peak Torque. Updated at
Gauge Off Time
32578 1 Last Stroke Peak Torque Scaled Last Stroke Peak Torque.
32579 1 Record Low Power (Motor Power ) Scaled Low Power since Commission
32580 1 Reserved Reserved
32581 1 Last Stroke Low Power ( Motor Power ) Scaled Last Stroke Low Power.
32582 1 Record Peak Polished Rod HP ( x10 ) Since Commission
32583 1 Yesterday's Peak Polished Rod HP ( x10 ) Since Gauge Off
32584 19 Reserved Reserved

Inferred Production 32603-32607 # Registers 5


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32603 2 X Total SWT Fluid Production Scaled x100 since Commission.
32605 1 Yesterday SWT Fluid Production Scaled x10 for Yesterday. Updated at
Gauge Off Time.
32606 1 Current SWT Fluid Production Scaled x10 since Gauge Off

32607 1 Accumulated Runtime Minutes Rollover counter of runtime in minutes.


(counter rolls over at 35565)

Percent Run Time 32608 - 32611 # Registers 4


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32608 1 Yesterday Cycle Counter Number of Pump Cycles Yesterday
32609 1 Current Cycle Counter Number of Pump Cycles since Gauge Off
32610 1 Yesterday Percent Run Yesterday Percent Runtime Updated at
Gauge Off
32611 1 Current Percent Run Percent Runtime Since Gauge Off
Sam Modbus Map - RPC Lufkin Automation Page 56 of 104
Version 6.16 30000 Registers

Pump Card Status Registers 32612 - 32668 # Registers 20


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


32612 1 NREVS # Of Motor Revolutions Per Stroke
32613 1 Fluid Load
32614 1 Pump Fillage x 100
32615 1 Pump Card Peak Load
32616 1 Pump Card Min Load
32617 1 Net Stroke
32618 1 Gross Stroke x100+A1
32619 2 X Polished Rod HP
32621 2 X Pump HP
32623 2 X Max Torque Upstroke
32625 2 X Max Torque Downstroke
32627 2 X Average Downstroke Pseudo Motor Power
32629 2 X Tubing Movement
32631 1 Liner Loading Prevention State 0=Liner Loading Period-POC Disabled
1=Liner Loading Idle - Well DT
2=Liner Loading Idle - Well Run
3=Transitional State
4= Exception: Malf State
5=Exception: Not Normal Oper
6=Exception: Calibration State
7=Exception: Pumpoff Ctrl Disabled
8=Exception: SAM Not Operational

9=Exception: Liner Loading Disabled


32632 2 X Last Liner Loading Pevention
Available only if Liner Loading
32634 2 X Next Scheduled Liner Loading Prevention Option (4XXXX) is set to TIMER
32636 1 Today's Average Strokes Per Minute Since Gauge Off (x100)
32637 1 Yesterday's Average Strokes Per Minute x100
32638 1 Today's Total Strokes Since Gauge Off
32639 1 Yesterday's Total Strokes
32640 2 X Average Gross Pump Efficiency
32642 2 X Yesterday's Average Gross Pump Efficiency
32644 2 X Average Net Pump Efficiency
32646 2 X Yesterday's Average Net Pump Efficiency
32648 21 Reserved
Sam Modbus Map - RPC Lufkin Automation Page 57 of 104
Version 6.16 30000 Registers

MODBUS Card Buffers 32669 - 36624 # Registers 3696


Use Function Code 04 to Read this Data

Use coil range 103-109 & 176-191 to load data into this buffer
Register # Regs F L A NAME DESCRIPTION
32669 407 MODBUS 5 Card Surface Buffer 1
Reg # F L A Description
32669 2 X Time Stamp
32671 1 High Byte: Shutdown Event ID
Low Byte: Number of Points
32672 1 Maximum Load
32673 1 X Minimum Load
32674 1 X Stroke Length (multiply by 100)
32675 1 Stroke Period (multiply by 100)
32676 400 X Surface Load Position struct (200 struct array at 2 words each)
Position
Load

33076 407 MODBUS 5 Card Surface Buffer 2


33483 407 MODBUS 5 Card Surface Buffer 3
33890 407 MODBUS 5 Card Surface Buffer 4
34297 407 MODBUS 5 Card Surface Buffer 5
34704 209 MODBUS 5 Card Pump Buffer 1
Reg # F L A Description
34704 2 X Time Stamp
34706 1 Maximum Load
34707 1 Minimum Load
34708 1 High Byte: Shutdown Event ID
Low Byte: Number of Points
34709 1 Gross Stroke
34710 1 Net Stroke
34711 1 Pump Fillage
34712 1 Fluid Load
34713 200 X Pump Load Position struct (100 struct array at 2 words each)
Position
Load

34913 209 MODBUS 5 Card Pump Buffer 2


35122 209 MODBUS 5 Card Pump Buffer 3
35331 209 MODBUS 5 Card Pump Buffer 4
35540 209 MODBUS 5 Card Pump Buffer 5
35749 407 MODBUS Single Card Surface Buffer (same struct as the surface buffer above)
36156 209 MODBUS Single Card Pump Buffer (same struct as the pump buffer above)
Sam Modbus Map - RPC Lufkin Automation Page 58 of 104
Version 6.16 30000 Registers

Historical Buffers 36365 - 38441 # Registers 2077


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


36365 60 X IPA History 60 Days Daily Inferred Production. Updated
36425 60 X Percent Runtime History 60 Days Daily Percent Runtime. Updated at
each Gage Off Time With the First Register
Being the Most Recent
36485 60 X Peak Load History 60 Days Daily Peak Load. Updated at each
Gage Off Time With the First Register
Being the Most Recent
36545 60 X Min Load History 60 Days Daily Min Load. Updated at each
Gage Off Time With the First Register
Being the Most Recent
36605 60 X Peak Torque History 60 Days Daily Peak Torque. Updated at each
Gage Off Time With the First Register
Being the Most Recent
36665 60 X Peak Polished Rod Horsepower 60 Days Peak Polished Rod HP
36725 60 Reserved Reserved
36785 720 X On/Off Cycle 1440 Minutes of On/Off Cycle and
Corresponding Runtime
The Most Significant Bit of Each Byte
Bit 7 Bits 6 - 0 Contains
1 - On 1 On
Percent Runtime At That Minute
0 - Off 0 Off.
The Remaining 7 Bits Contain the Percent
Runtime in that Minute. First Register is the
Most Significant
37505 20 X Last 20 Runtimes Last 20 Runtimes ( in Minutes )
37525 360 X X 24 Hour Gas Flow Rate 180 8 Minute Gas Flow Rate Averages as
37885 120 X X 60 Day Volume Flow 60 Day History of Gas Production
38005 405 400 Load Buffer The Last 400 Load Samples

Reg # F L A Name Description


38005 2 X Time Stamp Time Buffer Was Loaded

38007 2 Reserved Reserved


38009 1 Index The Index of the Latest Sample
38010 400 X 400 Load Samples 400 Samples in a Circular Buffer

38410 2 X Auto Downtime Buffer Timestamp


38412 30 X Auto Downtime Data

Reg # F L A Name Description


1 Downtime Downtime ( Minutes )
1 Runtime Runtime ( Minutes )
Sam Modbus Map - RPC Lufkin Automation Page 59 of 104
Version 6.16 30000 Registers

Generic Floating Point Buffers 38442-38921 # Registers 480


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


38442 360 X X 180 Floating Point Buffer 180 Floating Point Buffer
38802 120 X X 60 Floating Point Buffer 60 Floating Point Buffer

VFD Values 38922 - 38952 # Registers 31


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


38922 30 VFD Status

Reg # F L A Name Description


38922 1 Output Frequency
38923 1 Output Voltage
38924 1 Output Current
38925 1 Drive Load
38926 1 DC Bus Voltage
38927 1 Output Torque
38928 1 Status Word 1
38929 1 Status Word 3
38930 1 Digital Input Status
38931 1 Digital Output Status
38932 1 Elapsed MWH
38933 1 Elapsed MWH Format
38934 1 Output Power
38935 1 Drive Rated Current
38936 1 Trip Code
38937 1 IGBT Temp
38938 1 Control Board Temp
38939 1 Output RPM
38940 1 Line Side Fault
38941 11 Reserved Reserved

38952 1 VFD Read Value

Reserved 38953-39702 # Registers 750


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


38953 750 Reserved Reserved
Note: See description of Generic Buffer at end of this document. There is a tab below for these descriptions.
Sam Modbus Map - RPC Lufkin Automation Page 60 of 104
Version 6.16 30000 Registers

PIP and SWT Registers 39703 - 39800 # Registers 98


Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


39703 2 X Current PIP
39705 1 Current PIP Status 0- Good 1-Not Converge 2-Neg PIP 3-Div 0
39706 2 X Current GLR Filtered
39708 1 Current Fluid Load Filtered
39709 1 Up Stroke Fluid Load
39710 1 Down Stroke Fluid Load
39711 2 X Scaled Pump Buoyancy
39713 2 X Average Tubing Gradient
39715 2 X Oil Shrinkage Factor
39717 2 X Pump Volume Efficiency Net Stroke
39719 2 X Pump Volume Efficiency Gross Stroke
39721 8 X PIP Reserved
39729 1 PIP Average Since GOT
39730 1 Yesterday's Average PIP
39731 1 Peak PIP Since GOT
39732 1 Yesterday's Peak PIP
39733 1 Record Peak PIP
39734 1 Minimum PIP since GOT
39735 1 Yesterday's Minimum PIP scaled from previous day
39736 1 Record Minimum PIP scaled since last commission
39737 2 X Copy of Total Inferred Production multiply by 100
39739 1 SWT Fluid Projected fluid * 10
39740 1 SWT Oil Projected oil * 10
39741 1 SWT Water Projected water * 10
39742 1 SWT Gas Projected gas * 10
39743 1 SWT Fluid Instantaneous fluid * 10
39744 1 SWT Oil Instantaneous oil * 10
39745 1 SWT Water Instantaneous water * 10
39746 1 SWT Gas Instantaneous gas * 10
39747 1 Copy of SWT Fluid Yesterday fluid * 10
39748 1 SWT Oil Yesterday oil * 10
39749 1 SWT Water Yesterday water * 10
39750 1 SWT Gas Yesterday gas * 10
39751 1 Copy of SWT Fluid since GOT fluid since gauge off time * 10
39752 1 SWT Oil since GOT oil since gauge off time * 10
39753 1 SWT Water since GOT water since gauge off time * 10
39754 1 SWT Gas since GOT gas since gauge off time * 10
39755 46 Reserved Reserved

Special Application Registers 39801-39999 # Registers 199


Note: See Special Application Sections ( Campo Boscan )

Register # Regs F L A NAME DESCRIPTION


39801 7 Campo Boscan Registers
39808 192 Special Application Registers Special Application Registers
Sam Modbus Map - RPC Lufkin Automation Page 61 of 104
Version 6.16 40000 Registers

40000 Registers
Analog Inputs Config 40001 - 40640 # Registers 640
Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


40001 20 AI1 Config Analog Input 1 Configuration Registers

Register # F L A Name Description


40001 1 CONFIG Analog Input Channel 1 Config Register
40002 1 UNITS Analog Input Channel 1 Units
40003 2 X Analog Input Channel 1 engineering value
FMAX @ full scale
40005 2 X Analog Input Channel 1 engineering value
FMIN @ min scale
40007 2 X Analog Input Channel 1 Low Alarm
LOW_ALARM_STPT Setpoint
40009 2 X Analog Input Channel 1 Low Alert
LOW_ALERT_STPT Setpoint
40011 2 X Analog Input Channel 1 High Alarm
HIGH_ALARM_STPT Setpoint
40013 2 X Analog Input Channel 1 High Alert
HIGH_ALERT_STPT Setpoint Delay
40015 1 Analog Input Channel 1 Low Setpoint
LOW_DELAY Delay
40016 1 Analog Input Channel 1 High Setpoint
HIGH_DELAY Delay
40017 1 RANGE Range
0 - 0 to 5 V
1 - 1 to 5 V
2 - 0 to 20 mA
3 - 4 to 20 mA
40018 2 Reserve AI1 Config Reserved
40020 1 ENABLE_ALARMS Enable Alarms
0 - Disabled
1 - Enabled

40021 20 AI2 Config


40041 20 AI3 Config
40061 20 AI4 Config
40081 20 AI5 Config
40101 20 AI6 Config
40121 20 AI7 Config
40141 20 AI8 Config
40161 20 AI9 Config
40181 20 AI10 Config
40201 20 AI11 Config
40221 20 AI12 Config
40241 20 AI13 Config
40261 20 AI14 Config
Sam Modbus Map - RPC Lufkin Automation Page 62 of 104
Version 6.16 40000 Registers

40281 20 AI15 Config


40301 20 AI16 Config
40321 20 AI17 Config
40341 20 AI18 Config
40361 20 AI19 Config
40381 20 AI20 Config
40401 20 AI21 Config
40421 20 AI22 Config
40441 20 AI23 Config
40461 20 AI24 Config
40481 20 AI25 Config
40501 20 AI26 Config
40521 20 AI27 Config
40541 20 AI28 Config
40561 20 AI29 Config
40581 20 AI 30 Config
40601 20 AI31 Config
40621 20 AI32 Config

NOTE: Analog input description register describes the physical board and point number of the input. It is formatted as
follows.
Bits
0-7 Reserved
8-11 Board Number
12-15 Point Number
Sam Modbus Map - RPC Lufkin Automation Page 63 of 104
Version 6.16 40000 Registers

Analog Output Config 40641 - 40790 # Registers 150


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


40641 15 AO1 Config Analog Output 1 Configuration

Reg # F L A Name Description


40641 1 CONFIG Analog Output Channel 1 Config Register

40642 1 UNITS Analog Output Channel 1Units


40643 2 X FMAX Analog Output Channel 1 engineering
value @ full scale
40645 2 X FMIN Analog Output Channel 1 engineering
value @ min scale
40647 2 X OVERRIDE_VAL Analog Output Channel 1 override value

40649 1 OVERRIDE_STATE 0 - Inactive 1-Active


40650 1 Logging Rate
40651 1 Averaging Rate
40652 1 Range 0 - 0-5V
1 - 1-5V
2 - 0-20mA
3 - 4-20mA
4 - 0-10V
5 - 1 - 10V
40653 3 Reserved Reserved

40656 15 AO2 Config


40671 15 AO3 Config
40686 15 AO4 Config
40701 15 AO5 Config
40716 15 AO6 Config
40731 15 AO7 Config
40746 15 AO8 Config
40761 30 Reserved

NOTE: Analog output description register describes the physical board and point number of the output. It is formatted as
follows.
Bits
0-7 Reserved
8-11 Board Number
12-15 Point Number
Sam Modbus Map - RPC Lufkin Automation Page 64 of 104
Version 6.16 40000 Registers

Digital Config 40791 - 40982 # Registers 192


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


40791 3 DI1 Config Digital Input 1 Config

Reg # F L A Name Description


40791 1 CONFIG 1 High Byte - Board Num
Low Byte - Point Num
40792 1 CONFIG 2 High Byte - State Change Delay
Low Byte - Type ( 0-Input, 1-Output )
40793 1 CONFIG 3 High Byte - Alarm Disable-0/Enable-1
Low Byte-Alarm State 0-Closed/1-Open

40794 3 DI2 Config


40797 3 DI3 Config
40800 3 DI4 Config
40803 3 DI5 Config
40806 3 DI6 Config
40809 3 DI7 Config
40812 3 DI8 Config
40815 3 DI9 Config
40818 3 DI10 Config
40821 3 DI11 Config
40824 3 DI12 Config
40827 3 DI13 Config
40830 3 DI14 Config
40833 3 DI15 Config
40836 3 DI16 Config
40839 3 DI17 Config
40842 3 DI18 Config
40845 3 DI19 Config
40848 3 DI20 Config
40851 3 DI21 Config
40854 3 DI22 Config
40857 3 DI23 Config
40860 3 DI24 Config
40863 3 DI25 Config
40866 3 DI26 Config
40869 3 DI27 Config
40872 3 DI28 Config
Sam Modbus Map - RPC Lufkin Automation Page 65 of 104
Version 6.16 40000 Registers

40875 3 DI29 Config


40878 3 DI30 Config
40881 3 DI31 Config
40884 3 DI32 Config
40887 3 DI33 Config
40890 3 DI34 Config
40893 3 DI35 Config
40896 3 DI36 Config
40899 3 DI37 Config
40902 3 DI38 Config
40905 3 DI39 Config
40908 3 DI40 Config
40911 3 DI41 Config
40914 3 DI42 Config
40917 3 DI43 Config
40920 3 DI44 Config
40923 3 DI45 Config
40926 3 DI46 Config
40929 3 DI47 Config
40932 3 DI48 Config
40935 3 DI49 Config
40938 3 DI50 Config
40941 3 DI51 Config
40944 3 DI52 Config
40947 3 DI53 Config
40950 3 DI54 Config
40953 3 DI55 Config
40956 3 DI56 Config
40959 3 DI57 Config
40962 3 DI58 Config
40965 3 DI59 Config
40968 3 DI60 Config
40971 3 DI61 Config
40974 3 DI62 Config
40977 3 DI63 Config
40980 3 DI64 Config
Sam Modbus Map - RPC Lufkin Automation Page 66 of 104
Version 6.16 40000 Registers

Accumulator Config 40983-41170 # Registers 188


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


40983 6 Accumulator 1 Config Accumulator 1 Configuration

Reg # F L A Name Description


40983 1 Description Register Description Register
40984 1 Units Units
40985 2 X Pulses per unit measure K-Factor
40987 1 User Defined Interval User Defined Interval ( minutes )
40988 1 User Defined Accumulator User Defined Accumulator Length (Days
)

40989 6 Accumulator 2 Config


40995 6 Accumulator 3 Config
41001 6 Accumulator 4 Config
41007 6 Accumulator 5 Config
41013 6 Accumulator 6 Config
41019 6 Accumulator 7 Config
41025 6 Accumulator 8 Config
41031 6 Accumulator 9 Config
41037 6 Accumulator 10 Config
41043 128 Reserved Reserved

NOTE: Analog input description register describes the physical board and point number of the input. It is formatted as
follows.
Bits
0-7 Reserved
8-11 Board Number
12-15 Point Number
Sam Modbus Map - RPC Lufkin Automation Page 67 of 104
Version 6.16 40000 Registers

Well State Alarm Configuration 41171-41202 # Registers 32


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


41171 2 Well State Alarm 1 Configuration Well State Alarm 1 Configuration

Reg # F L A Name Description


41171 1 Well State 1 First Well state to generate alarm
41172 1 Well State 2 Second well state to generate alarm

41173 2 Well State Alarm 2 Configuration Well State Alarm 2 Configuration


41175 2 Well State Alarm 3 Configuration Well State Alarm 3 Configuration
41177 2 Well State Alarm 4 Configuration Well State Alarm 4 Configuration
41179 2 Well State Alarm 5 Configuration Well State Alarm 5 Configuration
41181 2 Well State Alarm 6 Configuration Well State Alarm 6 Configuration
41183 2 Well State Alarm 7 Configuration Well State Alarm 7 Configuration
41185 2 Well State Alarm 8 Configuration Well State Alarm 8 Configuration
41187 2 Well State Alarm 9 Configuration Well State Alarm 9 Configuration
41189 2 Well State Alarm 10 Configuration Well State Alarm 10 Configuration
41191 2 Well State Alarm 11 Configuration Well State Alarm 11 Configuration
41193 2 Well State Alarm 12 Configuration Well State Alarm 12 Configuration
41195 2 Well State Alarm 13 Configuration Well State Alarm 13 Configuration
41197 2 Well State Alarm 14 Configuration Well State Alarm 14 Configuration
41199 2 Well State Alarm 15 Configuration Well State Alarm 15 Configuration
41201 2 Well State Alarm 16 Configuration Well State Alarm 16 Configuration
Sam Modbus Map - RPC Lufkin Automation Page 68 of 104
Version 6.16 40000 Registers

Alarm Tracking Configuration 41203-41222 # Registers 20


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


41203 1 Alarm Tracking 1 Input Coil Coil Number to Track
41204 1 Alarm Tracking 2 Input Coil Coil Number to Track
41205 1 Alarm Tracking 3 Input Coil Coil Number to Track
41206 1 Alarm Tracking 4 Input Coil Coil Number to Track
41207 1 Alarm Tracking 5 Input Coil Coil Number to Track
41208 1 Alarm Tracking 6 Input Coil Coil Number to Track
41209 1 Alarm Tracking 7 Input Coil Coil Number to Track
41210 1 Alarm Tracking 8 Input Coil Coil Number to Track
41211 1 Alarm Tracking 9 Input Coil Coil Number to Track
41212 1 Alarm Tracking 10 Input Coil Coil Number to Track
41213 1 Alarm Tracking 11 Input Coil Coil Number to Track
41214 1 Alarm Tracking 12 Input Coil Coil Number to Track
41215 1 Alarm Tracking 13 Input Coil Coil Number to Track
41216 1 Alarm Tracking 14 Input Coil Coil Number to Track
41217 1 Alarm Tracking 15 Input Coil Coil Number to Track
41218 1 Alarm Tracking 16 Input Coil Coil Number to Track
41219 1 Alarm Tracking Operation Mode 0 - Normal
1 - First Occurrence
2 - Cascading
41220 1 Alarm Tracking Enable/Disable 0 - Disabled
1 - Enabled
41221 2 Reserved Reserved

Reserved 41223-41232 # Registers 10


Register # Regs F L A NAME DESCRIPTION
41223 10 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 69 of 104
Version 6.16 40000 Registers

Alarm Register Configuration 41233-41424 # Registers 192


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


41233 24 Alarm Register 1 Config Alarm Register 1 Configuration

Reg # F L A Name Description


41233 1 REGISTER ADDRESS Address of Alarm Register
41234 1 REGISTER TYPE Data Type of Alarm Register
0- UWORD ( 16-bit unsigned )
1- FLOAT
2- LONG ( 32-bit unsigned )
41235 1 HIGH ALARM DO Digital Out Channel for High Alarm
41236 1 HIGH ALARM ACT Action For High Alarm
0- Dynamic
1- Latched
2 - Timer
3 - Pulse
41237 2 X HIGH ALERT LIMIT High Alert Limit
41239 2 X HIGH ALARM LIMIT High Alarm Limit
41241 1 HIGH ALARM DELAY Delay For Action on High Alarm
(x100 ms)
41242 1 HI ALRM DO TIMER ON Timer Mode: Period DO stays on (
x100 ms)
41243 1 HI ALRM DO TIMER Timer Mode: Period DO stays off (x
OFF 100 ms )
41244 1 HI ALRM PULSE Pulse Mode: High alarm pulse override
OVERRIDE SWITCH switch
0 - Hibernate
1 - Execute a pulse
41245 1 HI ALRM PULSE Pulse Mode: pulse energized period (
OVERRIDE PERIOD x100 ms )
41246 1 LOW ALARM DO Digital Out Channel for Low Alarm
41247 1 LOW ALARM ACT Action For Low Alarm
0- Dynamic
1- Latched
2 - Timer
3 - Pulse
41248 2 X LOW ALERT LIMIT Low Alert Limit
41250 2 X LOW ALARM LIMIT Low Alarm Limit
41252 1 LOW ALARM DELAY Delay For Action on Low Alarm
(x100ms)
41253 1 LOW ALRM DO TIMER Timer Mode: Period DO stays on (
ON x100 ms)
41254 1 LOW ALRM DO TIMER Timer Mode: Period DO stays off (x
OFF 100 ms )
41255 1 LOW ALRM PULSE Pulse Mode: Low alarm pulse override
OVERRIDE switch
0 - Hibernate
1 - Execute a pulse
41256 1 LOW ALRM PULSE Pulse Mode: pulse energized period (
OVERRIDE PERIOD x100 ms )
Sam Modbus Map - RPC Lufkin Automation Page 70 of 104
Version 6.16 40000 Registers

41257 24 Alarm Register 2 Configuration Alarm Register 2 Configuration


41281 24 Alarm Register 3 Configuration Alarm Register 3 Configuration
41305 24 Alarm Register 4 Configuration Alarm Register 4 Configuration
41329 24 Alarm Register 5 Configuration Alarm Register 5 Configuration
41353 24 Alarm Register 6 Configuration Alarm Register 6 Configuration
41377 24 Alarm Register 7 Configuration Alarm Register 7 Configuration
41401 24 Alarm Register 8 Configuration Alarm Register 8 Configuration

Calendar Set 41425 - 41443 # Registers 19


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


41425 1 YEAR
41426 1 MONTH
41427 1 DAY
41428 1 HOUR
41429 1 MINUTE
41430 1 SECOND
41431 1 RESERVED Reserved
41432 1 DAYLIGHT SAVING TIME 0 - Disabled
1 - Enabled
41433 2 GAUGE OFF TIME

Reg # F L A Name Description


41433 1 Hour Hour Value of the Gauge Off Time
41434 1 Minute Minute Value of the Gauge Off Time

41435 1 Peak Energy Mgmt Control Peak Energy Management Control


0 - Disable
1 - Enable
PEM_SUSPEND_HR Peak Energy Management Suspend Time
41436 1 (Hour)
PEM_SUSPEND_MIN Peak Energy Management Suspend Time
41437 1 (Minutes)
PEM_RESUME_HR Peak Energy Management Resume Time
41438 1 (Hour)
PEM_RESUME_MIN Peak Energy Management Resume Time
41439 1 (Minutes)
41440 1 PEM_DAY_MGMT Peak Energy Management Days In Use

0 - Disable 1 - Enable
Bit
0 - Monday
1 - Tuesday
2 - Wednesday
3 - Thursday
4 - Friday
5 - Saturday
6 - Sunday

41441 3 Reserved Reserved


Sam Modbus Map - RPC Lufkin Automation Page 71 of 104
Version 6.16 40000 Registers

Logic Expression Registers 41444 - 41800 # Registers 357


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


41444 40 X Logic Expression 1 Command Table
41484 40 X Logic Expression 2 Command Table
41524 40 X Logic Expression 3 Command Table
41564 40 X Logic Expression 4 Command Table
41604 40 X Logic Expression 5 Command Table
41644 40 X Logic Expression 6 Command Table
41684 40 X Logic Expression 7 Command Table
41724 40 X Logic Expression 8 Command Table
41764 1 Logic Expression 1 Action * See Note Below
41765 1 Logic Expression 2 Action * See Note Below
41766 1 Logic Expression 3 Action * See Note Below
41767 1 Logic Expression 4 Action * See Note Below
41768 1 Logic Expression 5 Action * See Note Below
41769 1 Logic Expression 6 Action * See Note Below
41770 1 Logic Expression 7 Action * See Note Below
41771 1 Logic Expression 8 Action * See Note Below
41772 1 Logic Expression 1 Malfunction / Timer
41773 1 Logic Expression 2 Malfunction / Timer
41774 1 Logic Expression 3 Malfunction / Timer
41775 1 Logic Expression 4 Malfunction / Timer
41776 1 Logic Expression 5 Malfunction / Timer
41777 1 Logic Expression 6 Malfunction / Timer
41778 1 Logic Expression 7 Malfunction / Timer
41779 1 Logic Expression 8 Malfunction / Timer
41780 1 Logic Expression 1 Delay
41781 1 Logic Expression 2 Delay
41782 1 Logic Expression 3 Delay
41783 1 Logic Expression 4 Delay
41784 1 Logic Expression 5 Delay
41785 1 Logic Expression 6 Delay
41786 1 Logic Expression 7 Delay
41787 1 Logic Expression 8 Delay
41788 1 Logic Expression Downtime Mode 0 - Normal
1 - Separate Downtime for Logic Expression.
Register 41789-41790 is used as downtime for
Logic Expression.
41789 2 Downtime Period for Logic Expression Used when Register 41788 is equal to 1

Reg # F L A Name Description


41789 1 Hour Downtime Period Hours
41790 1 Minute Downtime Period Minutes

41791 10 Reserved Reserved

*NOTE Logic Exrpession Actions are as follows unless the Expression is controlling the motor.
Normal Control Motor Control
0 - No Action 0 - No Action
1 - Flag 1 - Stop
2 - Dynamic 2 - Malfunction
3 - Latch 3 - Start
4 - Timer
Sam Modbus Map - RPC Lufkin Automation Page 72 of 104
Version 6.16 40000 Registers

Common Control Registers 41801 - 42000 # Registers 200


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


41801 1 RTU ADDRESS Rtu Address
41802 1 RADIO_BAUD_RATE * See Note Below
41803 1 RADIO_RTS_CTS 0 - Disable RTS/CTS
1 - Enable RTS/CTS
41804 1 RADIO_KEY_UP Key Up Delay
41805 1 RADIO_KEY_DOWN Key Down Delay
41806 1 RADIO_KEY_DELAY Delay before keying radio
41807 1 RADIO_DCD Enable/Disable Radio DCD Requirement
41808 1 LAPTOP_BAUD_RATE See Note Below
41809 1 LAPTOP_RTS_CTS 0 - Disable RTS/CTS
1 - Enable RTS/CTS
41810 1 EXPANSION COM MODE Expansion Communication Mode
41811 1 EXPANSION COM BAUD RATE See Note Below
41812 1 EXPANSION COM RTS_CTS Enable/Disable RTS/CTS
41813 1 EXPANSION COM KEY DOWN DELAY
41814 1 EXPANSION COM KEY UP DELAY
41815 1 EXPANSION COM KEY UP BEFORE RTS
Inner character gap for detecting end of
41816 1 LAPTOP CHARACTER GAP TIMEOUT message ( millisecond x 10 )
Inner character gap for detecting end of
41817 1 RADIO CHARACTER GAP TIMEOUT message ( millisecond x 10 )
41818 1 LAPTOP TRANSMISSION PARITY 0 - None
1 - Even
41819 1 LAPTOP TRANSMISSION STOP BIT 0 - 1 Stop Bit
1 - 2 Stop Bits
2 - 1.5 Stop Bits
41820 1 RADIO TRANSMISSION PARITY 0 - None
1 - Even
41821 1 RADIO TRANSMISSION STOP BIT 0 - 1 Stop Bit
1 - 2 Stop Bits
2 - 1.5 Stop Bits
41822 1 EXPANSION COM TRANSMISSION PARITY 0 - None
1 - Even
41823 1 EXPANSION COM TRANSMISSION STOP 0 - 1 Stop Bit
BIT 1 - 2 Stop Bits
2 - 1.5 Stop Bits
41824 177 Reserved Reserved

Baud Rate Designation 0 - 300


1 - 1200
2 - 2400
3 - 4800
4 - 9600
5 -19200
6 - 38400
7 - 57600
8 -115200
Sam Modbus Map - RPC Lufkin Automation Page 73 of 104
Version 6.16 40000 Registers

AGA Configuration 42001 - 42150 # Registers 150


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


42001 1 Enable AGA Enable AGA Calculations
0 - Disable
1 - Enable
42002 1 AGA Config
42003 1 Differential Pressure Channel Differential Pressure Channel
0 - User Defined
1 - 32 Analog Channel
42004 1 Flowing Temp Channel Flowing Temperature Channel
0 - User Defined
1 - 32 Analog Channel
42005 1 Flowing Pressure Channel Flowing Pressure Channel
0 - User Defined
1 - 32 Analog Channel
42006 2 X Heating Value Heating Value as floating point
42008 1 Specific Gravity Gas Specific Gravity Stored as x100 ( i.e.
0.78 stored as 78 )
42009 2 X User Flowing Press User Entered Flowing Pressure
42011 2 X User Flowing Temp User Entered Flowing Temperature
42013 1 Base Temperature Base Temperature as x100 ( i.e. 60.70 stored
as 6070 )
42014 1 Base Pressure Base Pressure stored as x100 ( i.e. 14.73
stored as 1473 )
42015 1 Ref Temp Spec Grav Reference Temp for Specific Gravity stored
as x100
42016 1 Ref Press Spec Grav Reference Pressure for Specific Gravity as
x100
42017 1 Ref Temp Combustion Reference Temp for Combustion as x100
42018 1 Ref Temp Heating Value Reference Temp for Heating Value as x100
42019 1 Ref Press Heating Value Reference Pressure for Heating Value as
x100
42020 2 X Methane Mole Fraction Mole Fraction as floating point
42022 2 X N2 Mole Fraction Mole Fraction as floating point
42024 2 X CO2 Mole Fraction Mole Fraction as floating point
42026 2 X Ethane Mole Fraction Mole Fraction as floating point
42028 2 X Propane Mole Fraction Mole Fraction as floating point
42030 2 X H20 Mole Fraction Mole Fraction as floating point
42032 2 X H2S Mole Fraction Mole Fraction as floating point
42034 2 X Hydrogen Mole Fraction Mole Fraction as floating point
42036 2 X CO Mole Fraction Mole Fraction as floating point
42038 2 X Oxygen Mole Fraction Mole Fraction as floating point
42040 2 X I-Butane Mole Fraction Mole Fraction as floating point
42042 2 X N-Butane Mole Fraction Mole Fraction as floating point
42044 2 X I-Pentane Mole Fraction Mole Fraction as floating point
42046 2 X N-Pentane Mole Fraction Mole Fraction as floating point
42048 2 X Hexane Mole Fraction Mole Fraction as floating point
42050 2 X Heptane Mole Fraction Mole Fraction as floating point
42052 2 X Octane Mole Fraction Mole Fraction as floating point
42054 2 X Nonane Mole Fraction Mole Fraction as floating point
42056 2 X Decane Mole Fraction Mole Fraction as floating point
Sam Modbus Map - RPC Lufkin Automation Page 74 of 104
Version 6.16 40000 Registers

42058 2 X Helium Mole Fraction Mole Fraction as floating point


42060 2 X Argon Mole Fraction Mole Fraction as floating point
42062 1 Orifice Diameter Orifice Diameter stored as x1000
42063 1 Pipe Diameter Pipe Diameter stored as x100
42064 1 Measurement Temp Pipe and Orifice Measurement Temp
42065 2 X Viscosity Viscosity stored as floating point
42067 2 X Isentropic Exponent Isentropic Exponent as floating point
42069 1 Calibration Factor AGA Calibration Factor
42070 1 Adj Pressure Atmospheric Adjustment pressure stored as
x100
42071 2 X Constant Differential Pressure Constant Differential Pressure
42073 2 X Differential Pressure Zero Cutoff Differential Pressure Zero Cutoff
42075 1 AGA Control (Enable / Disable)
42076 2 X AGA Control Threshold
42078 1 Flowing Pressure Slave Device Number Slave Device Number of Flowing Pressure
Transmitter ( 1 - 10 )
42079 1 Differential Pressure Slave Device Number Slave Device Number of Differential
Pressure Transmitter ( 1 - 10 )
42080 1 Flowing Temperature Slave Device Number Slave Device Number of Flowing
Temperature Transmitter ( 1 - 10 )
42081 2 X Energy Content Energy Content
42083 1 Fpv Calculation Mode 0 - NX-19 1 - AGA-8 Detailed
42084 2 X Full Well Stream Factor
42086 2 Low Flow Cutoff Delay Number of seconds delay before declaring no
X flow condition
42088 1 Pipe Diameter Format 0 - x100 1 - x1000
42089 1 Gas Specific Gravity Format 0 - x100 1 - x10000
42090 1 Flow Meter Type 0 - Orifice Plate 1 - Turbine Meter
42091 2 X Turbine Meter Constant Turbine Meter Constant as Floating Point
42093 1 Turbine Meter Accumulator Accumulator # of Turbine Meter Input
42094 1 Gas Mixture Format 0 - Mole Fraction 1 - Mole Percent
42095 2 Contract Time

Reg # F L A Name Description


42095 1 Hour Hour Value of the Contract Time
42096 1 Minute Minute Value of the Contract Time

42097 54 Reserved Reserved


Sam Modbus Map - RPC Lufkin Automation Page 75 of 104
Version 6.16 40000 Registers

Load Transducer Config 42151 - 42173 # Registers 23


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


42151 1 Load Transducer Type Load Transducer Type
0 - Non Calibrated
1 - Calibrated 50 K
2 - Calibrated 30 K
3 - Horse Shoe
4 - Other
42152 1 Load Transducer Input Swing Scaled in mV x1000
42153 1 Load Maximum Weight Calibrated Load Transducer Max Weight
Scaled
42154 1 Load Transducer Gain Load Transducer Gain
0-1
1-2
2-4
3-8
4 - 16
5 - 32
6 - 64
42155 1 Load Transducer Polarity 0 - Bipolar
1 - Unipolar
42156 1 Start Load Threshold Scaled Load Threshold for Start
42157 1 Load Threshold Raw Load Threshold for Dynamic/Static
Load
42158 1 Load Zero Offset Raw Counts to Adjust Load Reading to
Recalibrate Load Transducer
42159 1 Load at Standing Valve Scaled User Entered Scaled Standing Valve Load.
Used for Calibration
42160 1 Load at Standing Valve Raw User Entered Raw Standing Valve Load.
Used for Calibration
42161 1 Load Max Calibration Scaled Max Scaled Load. Used for Non Calibrated
Load Transducer
42162 1 Load Min Calibration Scaled Min Scaled Load. Used for Non Calibrated
Load Transducer
42163 1 Load Max Calibration Raw Max Raw Load. Used for Non Calibrated
Load Transducer
42164 1 Load Min Calibration Raw Min Raw Load. Used for Non Calibrated
Load Transducer
42165 1 Remote Calibration Load Max Scaled Load. Used for Remote Calibration
42166 1 Remote Calibration Load Min Scaled Load. Used for Remote Calibration
42167 1 Threshold Adjust Register
42168 2 Load Gain Register
42170 1 Intrinsic Safety Barrier Support 0 - Disabled
1 - Enabled
42171 3 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 76 of 104
Version 6.16 40000 Registers

Position Transducer Config 42174 - 42185 # Registers 12


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION


42174 1 Position Transducer Type Position Transducer Type
0 - Analog Position Transducer
1 - Digital Position Transducer Beam Pump
2 - Digital Position Transducer Linear Pump
3 - RPM Based Position Transducer - Beam
4 - RPM Based Position Transducer - Linear
5 - 2 Digital Position Transducer Linear
42175 1 Position Lag Compensation Position Lag Compensation
0 - no lag compensation
1 - 180 ms
2 - 200 ms
3 - 220 ms
4 - 240 ms
5 - 260 ms
42176 1 Position Threshold Raw
42177 1 Stroke Length Stroke Length x100
42178 1 Pump Depth Pump Depth
Phase Synch - Used with Position
Transducer Type Digital Beam & Linear
42179 1 Generated Position Phase Synch Pumping Units
The number of motor revs, combined with
Start Up Rev, that are allowed to pass before
42180 1 Crank Start Detect declaring a No Crank violation.
42181 1 No Crank Timeout Default 90 seconds
42182 4 Reserved Reserved

Inferred Production 42186 - 42194 # Registers 9


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42186 1 Reserved
42187 1 SWT Leakage Adjustment X 10
42188 1 Pump Diameter Pump Diameter x100
42189 1 SWT K Factor X 100
42190 1 SWT Control Enable/Disable 0 - Disable
1 - Enable
42191 1 SWT Control Reference See Note Below
42192 1 Reserved
42193 1 SWT Percent Water Cut x 100

42194 1 Reserved

Note: If SWT Control is Enabled and the current SWT is greater than SWT Control Reference Register, then the
controller will automatically invoke a DT/SWT Cutoff State. The controller will remain in the state until the
next Gauge Off Time. At which point in time the controller will restart the pumping unit.
Sam Modbus Map - RPC Lufkin Automation Page 77 of 104
Version 6.16 40000 Registers

Control Registers 42195 - 42216 # Registers 22


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42195 1 Control Mode Control Mode
0 - Surface
1 - Downhole
2 - Motor
3 - VFD - Surface
4 - VFD - Downhole
42196 1 Operation Mode Operation Mode
0 - Normal Mode
1 - Timed Mode
2 - Host Mode
42197 1 Host Switch Host Switch
0 - Host Off
1 - Host On
42198 2 Time Mode On Time Mode On Hours: Minutes

Reg # F L A Name Description


42198 1 Hour Time On Hours
42199 1 Minute Time On Minutes

42200 2 Time Mode Off Time Mode Off Hours: Minutes

Reg # F L A Name Description


42200 1 Hour Time Off Hours
42201 1 Minute Time Off Minutes

42202 1 Power On Delay Power On Delay in Seconds


42203 1 Start Alert Start Alert in Seconds
42204 1 Minimum Pump Strokes Number of Strokes in Minimum Pump State
42205 1 Downtime Mode Downtime Mode
0 - Manual Downtime
1 - Auto Downtime
42206 2 Downtime Period

Reg # F L A Name Description


42206 1 Hour Downtime Period Hours
42207 1 Minute Downtime Period Minutes

42208 1 Auto Downtime Steps Auto Downtime Steps


42209 1 Auto Downtime Run To Completion Auto Downtime Run To Completion
42210 1 System of Measurement Unit of Measurement
0 - English system unit
1 - Metric system unit
42211 1 HOA Switch Enable/Disable 0 - Disable 1-Enable
42212 1 HOA Switch On Digital In Define feature's DI channel
42213 1 HOA Switch Auto Digital In Define feature's DI channel
42214 1 External Reset Malfunction Digital In Define feature's DI channel
42215 1 External Clear Alarm Digital In

Define feature's DI channel


42216 1
Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 78 of 104
Version 6.16 40000 Registers

Violation Configuration 42217 - 42259 # Registers 43


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42217 2 Violation Enable/Disable Config - Host Mode Host Mode
0-Disable 1 - Enable

Bit Function
0 - 15 Reserved
16 Peak Load
17 Min Load
18 - 20 Reserved
21 No RPM
22 No Crank
23 Belt Slippage
24 - 31 Reserved

42219 2 Timed Mode Timed Mode


0-Disable 1 - Enable

Bit Function
0 - 15 Reserved
16 Peak Load
17 Min Load
18 Logic Expression
19 Peak Torque
20 Low Motor RPM
21 No RPM
22 No Crank
23 Belt Slippage
24 - 31 Reserved

42221 2 Normal Mode Same structure as 42217


0-Disable 1 - Enable

Bit Function
0 - 15 Reserved
16 Peak Load
17 Min Load
18 Logic Expression
19 Peak Torque
20 Low Motor RPM
21 No RPM
22 No Crank
23 Belt Slippage
24 Malfunction Setpoint
25 Pumpoff Setpoint
26 Low Fluid Load
27 Pump Fillage Setpoint
28 Peak Power
29 - 31 Reserved
42223 1 Low RPM Limit
42224 1 Consecutive Low RPM Allowed
42225 1 Low RPM Start Delay
42226 1 Peak Load Limit
42227 1 Consecutive Peak Load Allowed
42228 1 Minimum Load Limit
42229 1 Consecutive Min Load Allowed
42230 1 No RPM Limit
42231 1 Consecutive No RPM Allowed
42232 1 No RPM Start Delay
42233 1 Peak Torque Limit
42234 1 Consecutive Peak Torque Allowed
Sam Modbus Map - RPC Lufkin Automation Page 79 of 104
Version 6.16 40000 Registers

42235 1 Peak Torque Start Delay


42236 1 Power Cutoff

42237 1 Reserved Reserved


42238 1 Reference Fluid Load Reference Fluid Load
42239 1 Consecutive Fluid Load Allowed Number of Consecutive Fluid Load
42240 1 Consecutive No Crank Allowed
42241 1 Load Pumpoff Setpoint Scaled
42242 1 Position Pumpoff Setpoint Scaled x100
42243 1 Consecutive Pumpoff Strokes Allowed
42244 1 Load Malfunction Setpoint Scaled
42245 1 Position Malfunction Setpoint Scaled x100
42246 1 Consecutive Malfunction Strokes Allowed
42247 1 Consecutive Malfunction Violations Allowed
42248 4 Reserved Reserved
42252 1 Enable/Disable Lockout
42253 1 Lockout Period Allowable hours
42254 1 Lockout Period Allowable minutes
42255 1 Start Window
42256 4 Reserved Reserved

Belt Slippage Configuration 42260-42262 # Registers 3


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42260 1 Belt Slippage Percent Belt Slippage Percent Reference
42261 1 Reference Revolutions Reference Revolutions (NREV)
42262 1 Reserved Reserved

Downhole Configuration 42263-42273 # Registers 11


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42263 1 Fill Base Fill Base
42264 2 X Reference Pump Fillage Pump Fillage Control Setpoint
42266 1 Startup Revolutions Reference Startup Revolutions
42267 1 Power Cut Off Mode Configuration Power Cut Off Configuration
0 - Manual
1 - Auto
42268 2 X Damping Factor Damping Factor
42270 1 Stuffing Box Friction
42271 1 Tubing Head Pressure Tubing Head Pressure

42272 2 X Tubing Gradient Tubing Gradient


Sam Modbus Map - RPC Lufkin Automation Page 80 of 104
Version 6.16 40000 Registers

User Defined Pumping Unit Dimensions 42274-42288 # Registers 15


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42274 1 Pumping Unit Type Pumping Unit Type
0 - Conventional
1 - Mark II
2 - Air Balance
42275 1 Crank Rotation Crank Rotation
0 - Clockwise
1 - Counter Clockwise
42276 1 Counter Balance Phase Angle signed x100
42277 2 X R Dimension
42279 2 X K Dimension
42281 2 X C Dimension
42283 2 X P Dimension
42285 2 X A Dimension

42287 2 X I Dimension

Rod Taper Information 42289-42337 # Registers 49


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42289 1 Num Tapers Number of Rod Tapers ( Max 6 )
42290 6 X Rod Types Rod Types
0 - Steel
1 - Fiberglass
42296 6 X Taper Intervals 6 Rod Taper Intervals
42302 12 X X Taper Diameter 6 Rod Taper Diameters
42314 12 X X Taper Weight 6 Rod Taper Weights

42326 12 X X Taper Modulus 6 Rod Taper Moduli

Motor Power Configuration 42338-42345 # Registers 8


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42338 1 Motor Type Motor Type
0 - Nema - D
1 - UHS
42339 1 Full Load HP Full Load Horsepower
42340 1 Full Load RPM Full Load RPM
42341 1 Synch Speed Synch Speed
42342 2 X Max Reduced Torque Max Reduced Torque

42344 2 X Q Factor Q Factor


Sam Modbus Map - RPC Lufkin Automation Page 81 of 104
Version 6.16 40000 Registers

Polished Rod Horsepower Config 42346-42350 # Registers 5


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42346 2 X Reference Polished Rod HP Timestamp Reference Polished Rod HP Timestamp
42348 1 Reference Polished Rod HP Reference Polished Rod HP (x 10 )
42349 1 Peak Polished Rod HP Allowed Peak Allowed Polished Rod HP ( x10 )

42350 1 Reserved Reserved

Linear Pump Configuration 42351-42357 # Registers 7


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42351 2 X Linear Pump Distance Between Sprockets
42353 2 X Linear Pump Sprocket Radius

42355 1 Linear Pump Malfunction Digital Out Channel


42356 2 X Output Ratio Used for torque calculation for RPM/Crank
Output Ratio = Distance Between Sprockets
PI x Sprocket Radius
+1

For all others the value is 1.0

Tubing Movement Configuration 42358-42360 # Registers 12


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42358 1 Unanchored Tubing Movement Support 0 - Disabled
1 - Enabled
42359 1 Tubing Anchor Depth
42360 1 Tubing Size 0 - 1 1/2 inches
1 - 2 1/16 inches
2 - 2 3/8 inches
3 - 2 7/8 inches
4 - 3 1/2 inches
5-4 inches
6 - 4 1/2 inches
7-5 inches
8 - 5 1/2 inches
Sam Modbus Map - RPC Lufkin Automation Page 82 of 104
Version 6.16 40000 Registers

Liner Loading Configuration 42361-42369 # Registers 9


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42361 1 Liner Loading Option 0-Disabled 1 - Timer 2 - Input:AI
42362 1 Liner Loading Timer Interval Range 1 - 720 hrs
42363 1 Liner Loading Operation Period Range 1 - 42300 minutes
42364 1 Liner Loading Valve Control DO Channel Range 0 - 64. 0 means not used
42365 1 Liner Loading Input:AI Analog Input Channel Range 0 - 32. 0 means not used
42366 1 Liner Loading Input : AI Threshold limit Range 0 - 65535

42367 1 Liner Loading Input: AI delay Range 0 - 65535 seconds


42368 1 Liner Loading Valve Control Override 0 - Disable 1- Open 2 - Closed . Used if
Liner Loading Option is not Disabled

42369 1 Reserved Reserved


Sam Modbus Map - RPC Lufkin Automation Page 83 of 104
Version 6.16 40000 Registers

PIP Calculations 42370 - 42495 # Registers 30


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42370 14
Reg # F L A Description
42370 2 X Bubble Point Pressure
42372 2 X Formation Volume Factor
42374 2 X Solution GOR
42376 2 X Oil API
42378 2 X SG Water
42380 2 X Pump Temperature
42382 2 X SG Gas

42384 1 Casing Head Pressure Signed Reg multiply by 10


42385 1 Fluid Load Detection 0 -Basic 1-Advanced
42386 1 Fluid Load Adjustment Signed Reg (+) add (-) subtract
42387 1 SWT PIP Option 0-Basic 1-Advanced
42388 1 Is Well Shallow ? 0-No 1- yes
42389 1 Tubing Head Pressure Source 0-Constant, 1-Analog Input
42390 10 Reserved Reserved
42400 1 PIP Control Override Enabled 0 - Disable / 1 - Enable
42401 1 PIP Setpoint PSI
42402 1 Num Consecutive Low PIP Strokes Allowed x 10
42403 1 Consider Formation Producing Pressure 0 - No / 1 - Yes
42404 1 Formation Depth feet
42405 79 Reserved Reserved
42484 2 X User Defined Tubing Outer Diameter
42486 2 X User Defined Tubing Inner Diameter
42488 8 Reserved Reserved

Rod / Pump Counters 42496 - 42499 # Registers 4


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42496 2 X Rodometer Rodometer
42498 2 X Pumpometer Pumpometer
Sam Modbus Map - RPC Lufkin Automation Page 84 of 104
Version 6.16 40000 Registers

VFD Configuration 42500 - 43003 # Registers 604


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
42500 1 VFD Speed Output Analog Out Channel For VFD Output
1- AO1
2- AO2
42501 1 VFD Dead Band VFD +/- dead band of pump off setpoint
42502 1 VFD Check Event Speed Change Stroke Delay
42503 1 VFD Speed Unit Speed Scaled Unit:
0 Generic
1 Percent
2 Hz
3 RPM
4 SPM
5 mA
6-V
42504 1 VFD Min Scaling Min Speed Scaled
42505 1 VFD Max Scaling Max Speed Scaled
42506 1 VFD Start UP Speed VFD Startup Speed, Percent of Full Scale
42507 1 VFD Speed Increase VFD Speed Increase, Percent of Full Scale

42508 1 VFD Speed Decrease VFD Speed Decrease, Percent of Full Scale

42509 1 VFD Host Mode High Speed VFD speed at Host Mode High. Percent of
Full Scale
42510 1 VFD Host Mode Low Speed VFD speed at Host Mode Low. Percent of
Full Scale
42511 1 VFD Timed Mode High Speed VFD speed at Timed Mode High. Percent of
42512 1 VFD Timed Mode Low Speed VFD speed at Timed Mode Low. Percent of
42513 1 VFD Host/Timed Mode Low Speed Control Host/Timed Mode Low Speed control:
0 Run To Low Speed
1 Shut Off Motor
42514 1 VFD Protection/DT Control Down Time State Control:
0 Run To Low Speed
1 Shut Off Motor
42515 1 VFD Peak Load Limiting Peak Load Limiting , Scaled Value.
42516 1 VFD Min Load Limiting Minimum Load Limiting , Scaled Value.
42517 1 VFD Speed Constant VFD Speed Override Value
42518 1 VFD Max Working Speed VFD Max Working Speed
42519 1 VFD Min Working Speed VFD Min Working Speed
42520 1 VFD Drive Type 0-WF2 1-DVC 2-Others
42521 1 VFD Stroke State Detection Option 0-single DO 1-double DO
42522 1 VFD Up Down Speed Enable/Disable 0-Disabled 1-Enabled
42523 1 Reserved Reserved
42524 1 VFD Downstroke Speed Change Percent SL Signed X 100
42525 1 VFD RFM Flag Enabled/Disabled 0-Disabled 1-Enabled
42526 1 Rod Float Load Threshold Used by RFM. Below this value start RFM
42527 1 VFD Torque Limit Percent Threshold
42528 1 VFD Max Counter Balance
42529 1 VFD Drive Fault Input Type 0-Disabled 1- Comm 2-Pseudo DI3
Sam Modbus Map - RPC Lufkin Automation Page 85 of 104
Version 6.16 40000 Registers

42530 1 VFD Drive Fault Delay Time


42531 1 VFD Drive Fault Consecutive Allowed
42532 1 VFD Force Drive Bypass Enabled/Disabled 0-Disabled 1=Enabled
42533 1 VFD Memory Address VFD Address use by 42534 & 42535
42534 1 VFD Write Value Write single reg value to VFD
42535 1 VFD Mem RW CMD Read VFD single reg value
42536 30 LWM Config

Reg # F L A Name Description


42536 1 Motor Nominal Current x10
42537 1 Motor Nominal Voltage
42538 1 Motor Nominal Frequency
42539 1 Peak Torque Limit
42540 1 Downstroke Fixed Torque Limit
42541 1 Acceleration Time x10
42542 1 Deceleration Time x10
42543 1 Current Limit
42544 1 Reset Drive Parameters
42545 1 Control Word 1
42546 1 Start Current Limit
42547 1 Start Torque Limit
42548 1 Torque Limit Min Speed x10
42549 1 RFM Type
42550 1 Rod Float Preset Speed
42551 1 VFD Up Down Speed Percent
42552 1 HOA On Speed Commanded Pumping Hand Speed
42553 1 Motor Overload Protection Level 10-100%
42554 12 Reserved Reserved

42566 25 VFD Comm Parameters

Reg # F L A Name Description


42566 1 RTU Address
42567 1 Baud Rate
42568 1 Num Data Bits
42569 1 Num Stop Bits
42570 1 Parity
42571 1 Delay Before Key Up
42572 1 Key Up Time
42573 1 Key Down Time
42574 1 Timeout
42575 1 Num Consec. Comm Fails Allowed
42576 1 RTS Enabled
42577 1 Inner Character TO
42578 1 Num Retries
42579 1 Device Type
42580 11 Reserved Reserved

42591 1 Enhanced Fixed Torque RFM Enable/Disable


42592 1 Alarm on Parameter Differences Enable/Disable 0 - Disabled / 1 - Enabled
42593 3 Reserved
42596 1 VFD Drive Fault Bypass Digital
42597 1 VFD Drive Bypass Switch Enabled Disabled
42598 1 VFD Drive Bypass Switch Input Digital
42599 1 VFD IGBT Fans Enabled Disabled
42600 1 VFD IGBT Fans Output Digital
42601 1 VFD IGBT Fans Temp Threshold
42602 1 VFD IGBT Fans Min Run Time
42603 37 Reserved
42640 1 AS1 Dynamic Braking Resistance Installed 0 - No / 1 - Yes
42641 1 AS1 Regenerative Torque Control Enable / Dis 0 - Disabled / 1 - Enabled
Sam Modbus Map - RPC Lufkin Automation Page 86 of 104
Version 6.16 40000 Registers

42642 105 Reserved


Sam Modbus Map - RPC Lufkin Automation Page 87 of 104
Version 6.16 40000 Registers

Linear Pumping Unit Cornering Support 42747 # Registers 255


Register # Regs F L A NAME DESCRIPTION
42747 1 Linear Pumping Unit Cornering Enabled 0 - Disableed 1 - Enabled
42748 1 Cornering Deceleration Starting Position % of Stroke Length ( 0 - 100%)
42749 1 Cornering Acceleration Starting Position % of Stroke Length ( 0 - 100%)
42750 1 Cornering Pumping Speed Hz
42751 66 Reserved
42817 1 Reserved
42818 2 Reserved
42820 182 Reserved

Default Timeout Screen 43002 # Registers 1


Register # Regs F L A NAME DESCRIPTION
43002 1 Default Timeout Screen 0 - Main Status Screen
1 - RT Card Screen
2 - Main Menu

Reserved 43003-43103 # Registers 101


Register # Regs F L A NAME DESCRIPTION
43003 101 Reserved Reserved

Notepad 43104-44403 # Registers 1300


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Note: Coil number 193 must be set to load the data.

Note: After this section of the register map is populated, coil number 192 must be set to store the data.
Notepad Description - The notepad is an array of ASCII character values that can be displayed on the screen of the
Allowable Characters - A-Z
0-9
-
.
_
Space
Register # Regs F L A NAME DESCRIPTION
43104 1272 X Notepad Notepad
44376 28 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 88 of 104
Version 6.16 40000 Registers

Custody Transfer Historical Data Request Criteria

Retrieve By Date 44404-44407 # Registers 5


Register # Regs F L A NAME DESCRIPTION
44404 1 Month Month
44405 1 Day Day

44406 1 Year Year

44407 2 Reserved Reserved

Retrieve By Record Number 44404-44407 # Registers 5


Register # Regs F L A NAME DESCRIPTION

44409 1 Record Number Record Number

44410 4 Reserved Reserved

Retrieve By Date Range 44404-44407 # Registers 5


Register # Regs F L A NAME DESCRIPTION
44414 2 Beginning Timestamp Beginning Timestamp

44416 2 End Timestamp End Timestamp

44418 1 Reserved Reserved

Retrieve By Record Number Range 44404-44407 # Registers 5


Register # Regs F L A NAME DESCRIPTION
44419 1 Beginning Record Number Beginning Record Number

44420 1 End Record Number End Record Number

44421 3 Reserved Reserved

Reserved 44404-44443 # Registers 20

Register # Regs F L A NAME DESCRIPTION

44424 20 Reserved Reserved

Display Unit Configuration 44444-44503 # Registers 60

Register # Regs F L A NAME DESCRIPTION

44444 60 Display Unit Configuration See Appendix


Sam Modbus Map - RPC Lufkin Automation Page 89 of 104
Version 6.16 40000 Registers

Register Log Configuration 44504-44623 # Registers 120


Register # Regs F L A NAME DESCRIPTION
44504 12 Register Log 1 Configuration Register Log 1 Configuration

Reg # F LA Name Description


44504 9 Register Description *See Register Description Section
44513 1 Logging Rate Logging Rate in Minutes
44514 1 Sample or Average 0 - Average
1 - Sample
44515 1 Enable / Disable 0 - Disabled
1 - Enabled

44516 12 Register Log 2 Configuration Register Log 2 Configuration


44528 12 Register Log 3 Configuration Register Log 3 Configuration
44540 12 Register Log 4 Configuration Register Log 4 Configuration
44552 12 Register Log 5Configuration Register Log 5 Configuration
44564 12 Register Log 6 Configuration Register Log 6 Configuration
44576 12 Register Log 7 Configuration Register Log 7 Configuration
44588 12 Register Log 8 Configuration Register Log 8 Configuration

44600 12 Register Log 9 Configuration Register Log 9 Configuration

44612 12 Register Log 10 Configuration Register Log 10 Configuration

Reserved 44624-44673 # Registers 50

Register # Regs F L A NAME DESCRIPTION

44624 50 Reserved Reserved


Sam Modbus Map - RPC Lufkin Automation Page 90 of 104
Version 6.16 40000 Registers

Register Calculation Configuration 44674-44863 # Registers 190


Register # Regs F L A NAME DESCRIPTION
44674 19 Register Calculation 1 Configuration Register Calculation 1 Configuration

Reg # F LA Name Description


44674 9 Register Description *See Register Description Section
44683 9 Register Description *See Register Description Section
44692 1 Operator 0 - Addition
1 - Subtraction
2 - Multiplication
3 - Division
4 - Comparison

44693 19 Register Calculation 2 Configuration Register Calculation 2 Configuration


44712 19 Register Calculation 3 Configuration Register Calculation 3 Configuration
44731 19 Register Calculation 4 Configuration Register Calculation 4 Configuration
44750 19 Register Calculation 5 Configuration Register Calculation 5 Configuration
44769 19 Register Calculation 6 Configuration Register Calculation 6 Configuration
44788 19 Register Calculation 7 Configuration Register Calculation 7 Configuration
44807 19 Register Calculation 8 Configuration Register Calculation 8 Configuration

44826 19 Register Calculation 9 Configuration Register Calculation 9 Configuration

44845 19 Register Calculation 10 Configuration Register Calculation 10 Configuration

Reserved 44864-44882 # Registers 19

Register # Regs F L A NAME DESCRIPTION

44864 19 Reserved Reserved

Alarms 44883-44995 # Registers 111


Register # Regs F L A NAME DESCRIPTION
44883 1 Active Alarm Action 0-Disabled 1-Enabled
44884 1 AAA Digital Output Dynamic Alarm Define Feature's DO Channel

44885 1 AAA Digital Output Latched Alarm Define Feature's DO Channel

44886 108 Reserved Reserved

Crank Switch Position 44996-45002 # Registers 7


Register # Regs F L A NAME DESCRIPTION
44994 2 X Switch Mounting Error Angle For Add'l Correction if needed
44996 1 Crank Switch Position 0-Crank At Top 1-Crank At Bottom
44997 2 X Phase Angle Auto update based on 44996 or Manual edit

44999 1 Switch Mounting Error Adj. Direction 0-Towards Rotation 1-Against Rotation

45000 3 Reserved Reserved


Sam Modbus Map - RPC Lufkin Automation Page 91 of 104
Version 6.16 40000 Registers

Valve Check Buffer 45003-47432 # Registers 2430


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
*NOTE: The section below must be loaded before it is read. This can be accomplished with the command functions in the
Register # Regs F L A NAME DESCRIPTION
45003 30 Valve Check Header Valve Check Header

Reg # F LA Name Description


45003 2 X Timestamp Timestamp
45005 1 Index Index
45006 1 Standing Valve Value Standing Valve Value
45007 1 Standing Valve Index Standing Valve Index
45008 1 Travelling Valve Value Travelling Valve Value
45009 1 Travelling Valve Index Travelling Valve Index
45010 1 Fluid Load Fluid Load
45011 1 Counterbalance Value Counterbalance Value
45012 1 Counterbalance Index Counterbalance Index
45013 1 Counterbalance Position Counterbalance Position
45014 1 Counterbalance Stroke Direction
Counterbalance Stroke Direction
45015 1 Residual Friction Value Residual Friction Value
45016 1 Residual Friction Index Residual Friction Index
45017 1 Leakage Mark 1 Value Leakage Mark 1 Value
45018 1 Leakage Mark 1 Index Leakage Mark 1 Index
45019 1 Leakage Mark 2 Value Leakage Mark 2 Value
45020 1 Leakage Mark 2 Index Leakage Mark 2 Index
45021 1 Leakage Mark 3 Value Leakage Mark 3 Value
45022 1 Leakage Mark 3 Index Leakage Mark 3 Index
45023 1 Calculated Leakage Calculated Leakage
45024 9 Reserved Reserved

45033 1200 X Valve Check Load Buffer Valve Check Load Buffer

46233 1200 X Valve Check Position Buffer Valve Check Position Buffer

Note: Load and Position Samples are taken every 200 ms

Debug and Reserved 47433-49552 # Registers 2120

Register # Regs F L A NAME DESCRIPTION

47433 567 Reserved for debug Note: Please don't write


48000 600 Generic Buffer
48600 333 Reserved
48933 200 Debug Pump Load
49133 200 Debug Pump Position
49333 1 Debug Fill Base
49334 2 Debug Tubing Gradient
49336 2 Debug Tubing Head Pressure
49338 2 Debug Pump Depth
49340 2 Debug Last Rod Diameter
49342 1 Debug Consider Unachored
49343 1 Debug Tubing Size
49344 1 Debug Tubing Anchor Depth
49345 1 Debug Shallow Well
49346 1 PIP Version
49347 1 Newton Vs Bisection
49348 2 Fluid Load Filter Window
49350 2 Liquid Filter Window
49352 2 Gas Filter Window
49354 199 Debug Memory
Sam Modbus Map - RPC Lufkin Automation Page 92 of 104
Version 6.16 40000 Registers
Sam Modbus Map - RPC Lufkin Automation Page 93 of 104
Version 6.16 40000 Registers

Cryout Base Driver Configuration 49553-49556 # Registers 4


Register # Regs F L A NAME DESCRIPTION
49553 4 Cryout Base Driver Configuration Cryout Configuration

Reg # F LA Name Description


49553 1 Enable / Disable 0 - Disabled, 1 - Enabled
49554 1 Number of Retries Number of Retries
49555 1 Retry Interval Number of Seconds between retries
49556 1 Sleep Interval High Byte - Number of Hours

Low Byte - Number of Mins

Cryout Base Driver Configuration 49557-49688 # Registers 132


Register # Regs F L A NAME DESCRIPTION
49557 7 Cryout Condition 1 Configuration Cryout Condition 1 Configuration

Reg # F L A Name Description

49557 1 Type 0 - Coil, 1 - Well State


49558 1 Address/Well State 1 If Type is Coil this is the Address,
else if type is Well State this is the
first Well State
49559 1 Well State 2
If Type is Well State this is the
second Well State, otherwise ignore
49560 1 Enable/Disable 0 - Disabled, 1 - Enabled
49561 3 Reserved Reserved

49564 7 Cryout Condition 2 Configuration Cryout Condition 2 Configuration


49571 7 Cryout Condition 3 Configuration Cryout Condition 3 Configuration
49578 7 Cryout Condition 4 Configuration Cryout Condition 4 Configuration
49585 7 Cryout Condition 5 Configuration Cryout Condition 5 Configuration
49592 7 Cryout Condition 6 Configuration Cryout Condition 6 Configuration
49599 7 Cryout Condition 7 Configuration Cryout Condition 7 Configuration
49606 7 Cryout Condition 8 Configuration Cryout Condition 8 Configuration
49613 7 Cryout Condition 9 Configuration Cryout Condition 9 Configuration
49620 7 Cryout Condition 10 Configuration Cryout Condition 10 Configuration
49627 7 Cryout Condition 11 Configuration Cryout Condition 11 Configuration
49634 7 Cryout Condition 12 Configuration Cryout Condition 12 Configuration
49641 7 Cryout Condition 13 Configuration Cryout Condition 13 Configuration
49648 7 Cryout Condition 14 Configuration Cryout Condition 14 Configuration
49655 7 Cryout Condition 15 Configuration Cryout Condition 15 Configuration

49662 7 Cryout Condition 16 Configuration Cryout Condition 16 Configuration

49669 20 Reserved Reserved


Sam Modbus Map - RPC Lufkin Automation Page 94 of 104
Version 6.16 40000 Registers

Modbus Master Poll Rate 49689 # Registers 1


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION

49689 1 Modbus Master Poll Rate Modbus Master Poll Rate ( seconds )

Modbus Master Device Enable 49690-49699 # Registers 10


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
49690 1 Modbus Master Device 1 Enabled Modbus Master Device 1 Enabled
49691 1 Modbus Master Device 2 Enabled Modbus Master Device 2 Enabled
49692 1 Modbus Master Device 3 Enabled Modbus Master Device 3 Enabled
49693 1 Modbus Master Device 4 Enabled Modbus Master Device 4 Enabled
49694 1 Modbus Master Device 5 Enabled Modbus Master Device 5 Enabled
49695 1 Modbus Master Device 6 Enabled Modbus Master Device 6 Enabled
49696 1 Modbus Master Device 7 Enabled Modbus Master Device 7 Enabled
49697 1 Modbus Master Device 8 Enabled Modbus Master Device 8 Enabled

49698 1 Modbus Master Device 9 Enabled Modbus Master Device 9 Enabled

49699 1 Modbus Master Device 10 Enabled Modbus Master Device 10 Enabled


Sam Modbus Map - RPC Lufkin Automation Page 95 of 104
Version 6.16 40000 Registers

Modbus Master Communications 49700-49724 # Registers 25


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
49700 1 RTU Address RTU Address Of Slave Device
49701 1 Baud Rate Baud at which to Communicate with device
49702 1 Num Data Bits
49703 1 Num Stop Bits
49704 1 Parity
49705 1 Delay Before Key Up
49706 1 Key Up Time
49707 1 Key Down Time
49708 1 Timeout
49709 1 Number of Consecutive Failures Allowed
49710 3 Reserved

49713 1 Device Type 0 - Modbus Slave 1 - Siemens LS 1000

49714 11 Reserved Reserved

NOTE: The host can configure the communication parameters for the modbus slave devices by writing to the above
registers.

Once the registers are written, the host system must set the appropriate coil to signal storing of the
configuration data for the desired slave device. This coil range is 481-490.
NOTE: This section of registers is also populated when a Load Modbus Master Data coil is set. It then holds the data
specific to the slave device from which data is requested.

Modbus Master Register List 49725-49849 # Registers 125


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs F L A NAME DESCRIPTION

49725 125 X Register Address Register Address to read from device

NOTE: The host can configure up the reading of up to 125 registers per slave device by writing register addresses to the
above registers. Once the registers are written the host must set the appropriate coil to signal the storing of
configuration data for the desired slave device. The coil range is 497-506
NOTE: This section of registers is also populated when a Load Modbus Master Data coil is set. It then holds the data
specific to the slave device from which data is requested.
Sam Modbus Map - RPC Lufkin Automation Page 96 of 104
Version 6.16 40000 Registers

Modbus Master Write Structures 49850-49899 # Registers 50


Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data
Register # Regs F L A NAME DESCRIPTION
49850 2 Write Structure 1 Modbus Master Write Structure

Reg # F LA Name Description


49850 1 Register Address Register Address To Write
49851 1 Register Value Value to write to address above

49852 2 Write Structure 2 Modbus Master Write Structure 2


49854 2 Write Structure 3 Modbus Master Write Structure 3
49856 2 Write Structure 4 Modbus Master Write Structure 4
49858 2 Write Structure 5 Modbus Master Write Structure 5
49860 2 Write Structure 6 Modbus Master Write Structure 6
49862 2 Write Structure 7 Modbus Master Write Structure 7
49864 2 Write Structure 8 Modbus Master Write Structure 8
49866 2 Write Structure 9 Modbus Master Write Structure 9
49868 2 Write Structure 10 Modbus Master Write Structure 10
49870 2 Write Structure 11 Modbus Master Write Structure 11
49872 2 Write Structure 12 Modbus Master Write Structure 12
49874 2 Write Structure 13 Modbus Master Write Structure 13
49876 2 Write Structure 14 Modbus Master Write Structure 14
49878 2 Write Structure 15 Modbus Master Write Structure 15
49880 2 Write Structure 16 Modbus Master Write Structure 16
49882 2 Write Structure 17 Modbus Master Write Structure 17
49884 2 Write Structure 18 Modbus Master Write Structure 18
49886 2 Write Structure 19 Modbus Master Write Structure 19
49888 2 Write Structure 20 Modbus Master Write Structure 20
49890 2 Write Structure 21 Modbus Master Write Structure 21
49892 2 Write Structure 22 Modbus Master Write Structure 22
49894 2 Write Structure 23 Modbus Master Write Structure 23

49896 2 Write Structure 24 Modbus Master Write Structure 24

49898 2 Write Structure 25 Modbus Master Write Structure 25


NOTE: The host can write up to 25 registers to a slave device. This is accomplished by writing the above registers with
addresses and data. Once the registers are written the host must set the appropriate coil to signal the write to

Reserved 49900-49999 # Registers 100

Register # Regs F L A NAME DESCRIPTION


49900 100 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 97 of 104
Version 6.16 Campo Boscan Special Application Registers

Campo Boscan Special Application Registers


Campo Boscan Registers 39801-39807 # Registers 7
Use Function Code 04 to Read this Data

Register # Regs F L A NAME DESCRIPTION


39801 2 X Timestamp Last Analysis Completed Timestamp
39803 1 Analysis Completed Counter Analysis Completed Counter
39804 1 Accumulated KW Power Consumption Accumulated KW Power Consumption
39805 1 Accumulated Compressor Runtime Accumulated Compressor Runtime
( in Minutes )
39806 1 Lube High State Lube High State
0 - High
1 - Normal
39807 1 Lube Low State Lube Low State
0 - Low
1 - Normal
#
Sam Modbus Map - RPC Lufkin Automation Page 98 of 104
Version 6.16 Dynograph Cards

Dynograph Cards 32669 - 36624 # Registers 3696


Use Function Code 04 to Read this Data
*NOTE: The following sections must be loaded before they are read. This can be accomplished with the command
functions in the 0XXXX range. (Registers 103 - 109)
If the controller is configured for downhole control, then the cards in the pump card buffer will correspond with the cards
Register # Regs F L A NAME DESCRIPTION
32669 2035 X 5 Surface Card Buffer 5 Card Buffer
Stored Cards - Top Card is Most Recent
Shutdown Cards - Top Card is Least Recent

Each Card is Organized As:


# F L A Name Description
Header 2 X TimeStamp Seconds Since Jan 1, 1970
1 Num Points/Shutdown Low Byte - Number of Points
Cause *High Byte - Shutdown Cause
1 Scaled Max Load Scaled Max Load Of Card ( lbs. )
1 Scaled Min Load Scaled Min Load Of Card ( lbs. )
1 Stroke Length Stroke Length x 100 ( Inches )
1 Stroke Period Stroke Period x 100 ( seconds )
Card X 200 Point Pairs**
1 Position x 100 Scaled Position x 100 ( in. )
1 Scaled Load Scaled Load ( lbs. )

34704 1045 X 5 Pump Card Buffer 5 Card Buffer


Stored Cards - Top Card is Most Recent
Shutdown Cards - Top Card is Least Recent

Each Card is Organized As:


# F L A Name Description
Header 2 X TimeStamp Seconds Since Jan 1, 1970
1 Scaled Max Load Scaled Max Load Of Card ( lbs. )
1 Scaled Min Load Scaled Min Load Of Card ( lbs. )
1 Num Points/Shutdown Low Byte - Number of Points
Cause *High Byte - Shutdown Cause
1 Gross Stroke x 100 ( in. )
1 Net Stroke Net Stroke Length x100 ( in. )
1 Pump Fillage x 100 ( % )
1 Fluid Load Fluid Load ( lbs. )
Card X 100 Point Pairs*
1 Position x 100 Scaled Position x 100 ( in. )
1 Scaled Load Scaled Load ( lbs. )

Shutdown Cause is only available for the Shutdown Card Group.


Shutdown Causes are 102 - Operator Stop - HMI 117 - Malfunction Min Load
103 - Operator Stop - Host 118 - Malfunction Low RPM
104 - Downtime Peak Load 119 - Malfunction No RPM
105 - Downtime Minimum Load 120 - Malfunction No Crank
106 - Downtime Low RPM 121 - Malfunction Malfunction Setpoint
107 - Downtime No RPM 122 - Malfunction Low Fluid Load
108 - Downtime No Crank 123 - Malfunction Peak Torque
Sam Modbus Map - RPC Lufkin Automation Page 99 of 104
Version 6.16 Dynograph Cards

109 - Downtime Malfunction SP 124 - Downtime HOA Off


110 - Downtime Pump Off SP 125 - Malfunction Logic Expression
111 - Downtime Pump Fillage 126 - Downtime IPA Cutoff
112 - Downtime Low Fluid Load 127 - Downtime Timed Mode
113 - Downtime Peak Torque 128 - Downtime Host Mode
114 - Downtime Cut Off Power 129 - Downtime Peak Energy Management
115 - Downtime Logic Expression 130 - Downtime Global Off
116 - Malfunction Peak Load

35749 407 Single Surface Card Buffer

Each Card is Organized As:


# F L A Name Description
Header 2 X TimeStamp Seconds Since Jan 1, 1970
1 Num Points Num Points
1 Scaled Max Load Scaled Max Load Of Card ( lbs. )
1 Scaled Min Load Scaled Min Load Of Card ( lbs. )
1 Stroke Length Stroke Length x 100 ( in. )
1 Stroke Period Stroke Period x 100 ( sec. )
Card X 200 Point Pairs**
1 Position x 100 Scaled Position x 100 ( in. )
1 Scaled Load Scaled Load ( lbs. )

36156 209 Single Pump Card Buffer

Each Card is Organized As:


# F L A Name Description
Header 2 X TimeStamp Seconds Since Jan 1, 1970
1 Scaled Max Load Scaled Max Load Of Card ( lbs. )
1 Scaled Min Load Scaled Min Load Of Card ( lbs. )
1 Num Points Num Points
1 Gross Stroke x100 ( in. )
1 Net Stroke Net Stroke Length x 100 ( in. )
1 Pump Fillage x 100 ( % )
1 Fluid Load Fluid Load ( lbs. )
Card X 100 Point Pairs**
1 Position x 100 Scaled Position x 100 ( in. )
1 Scaled Load Scaled Load ( lbs. )

**Note: Card data is in reverse chronological order. Therefore it begins at bottom of stroke and procedes through the
downstroke to the top of stroke then through the upstroke and returns to bottom of stroke.
Sam Modbus Map - RPC Lufkin Automation Page 100 of 104
Version 6.16 Dynograph Cards

Alarm Tracking 60 Day Buffer 32669 - 36624 # Registers 180


Use Function Code 04 to Read this Data
*NOTE: The following sections must be loaded before they are read. This can be accomplished with the command
functions in the 0XXXX range. (Registers 545 - 560 )
The 60 Day Alarm Tracking buffer consists of 60 structures that are defined as follows
Register # Regs F L A NAME DESCRIPTION
3 60 Day Alarm Tracking Buffer Structure

Each Entry is defined as


# F L A Name Description
1 Hours Num Hours Active for the day
1 Minutes/Seconds High Byte - Minutes Active for the day
Low Byte - Seconds Active for the day
1 Number of Occurences Number of Occurences for the day

32669 180 X 60 Day Alarm Tracking Buffer 60 Day Alarm Tracking Buffer

Register Log 1440 Buffer 32669 - 36624 # Registers 2880


Use Function Code 04 to Read this Data
*NOTE: The following sections must be loaded before they are read. This can be accomplished with the command
functions in the 0XXXX range. (Registers 571 - 580 )
*NOTE: The Register Log 1440 Buffer consists of 1440 floating point values
Register # Regs F L A NAME DESCRIPTION
32669 2880 X X Register Log 1440 Buffer Register Log 1440 Buffer

VFD Speed History 32669 - 36624 # Registers 2880


Use Function Code 04 to Read this Data
*NOTE: The following sections must be loaded before they are read. This can be accomplished with the command
functions in the 0XXXX range. (Coil 194 )
*NOTE: The Register Log 1440 Buffer consists of 1440 floating point values
Register # Regs F L A NAME DESCRIPTION
32669 1440 X 1440 VFD Speed History 1440 VFD Speed History
Sam Modbus Map - RPC Lufkin Automation Page 101 of 104
Version 6.16 Register Descriptions

Register Descriptions

None
# Regs F L A NAME DESCRIPTION
1 Category 0
8 Description Structure
Reg # F LA Name Description
8 Reserved Reserved

Analog Input
# Regs F L A NAME DESCRIPTION
1 Category 1
8 Description Structure
3/19/2007
Reg # F LA Name Description
1 Analog Input Number Analog Input Number
1 Scaled or Raw 0 - Scaled
6.08 R1 1 - Raw
6 Reserved Reserved

Accumulator Input
# Regs F L A NAME DESCRIPTION
1 Category 2
8 Description Structure
Reg # F LA Name Description
1 Accumulator Number Accumulator Number
1 Scaled or Raw 0 - Scaled
1 - Raw
6 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 102 of 104
Version 6.16 Register Descriptions

Modbus Register Data


# Regs F L A NAME DESCRIPTION
1 Category 3
8 Description Structure
Reg # F LA Name Description
1 Register Type 0 - 16 Bit Integer
1 - 32 Bit Integer
2 - 32 Bit Floating Point Value
3 - Coil
1 Register Number Register Number
6 Reserved Reserved

Modbus Register Data


# Regs F L A NAME DESCRIPTION
1 Category 4
8 Description Structure
Reg # F LA Name Description
1 Slave Number Slave Number
1 Register Type 0 - 16 Bit Integer
1 - 32 Bit Integer
2 - 32 Bit Floating Point Value
3 - Coil
1 Register Index Register Index
5 Reserved Reserved

AGA Data
# Regs F L A NAME DESCRIPTION
1 Category 5
8 Description Structure
Reg # F LA Name Description
1 AGA Data Value 0 - Flow Rate
1 - Differential Pressure
2 - Static Pressure
3 - Flow Temperature
4 - Supercompressibility
7 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 103 of 104
Version 6.16 Register Descriptions

Constant Value
# Regs F L A NAME DESCRIPTION
1 Category 6
8 Description Structure
Reg # F LA Name Description
2 X Constant Value Constant Value
6 Reserved Reserved

Programmable Calculation
# Regs F L A NAME DESCRIPTION
1 Category 7
8 Description Structure
Reg # F LA Name Description
1 X Equation Number Equation Number
7 Reserved Reserved
Sam Modbus Map - RPC Lufkin Automation Page 104 of 104
Version 6.16 Display Unit Configuration

Display Unit Configuration


Display Unit Configuration 44444-44503 # Registers 60
Note: Use Function Code 03 to Read this Data. Use Function Code 6/16 to Write this Data

Register # Regs Byte Location NAME DESCRIPTION


44444 1 High Atmospheric Pressure 0 - psia, 1 - MPa, 2 - bar, 3 - kg/cm^2, 4 - ATM, 5 - kPa
Low Bubble Point Pressure 0 - psia, 1 - MPa, 2 - bar, 3 - kg/cm^2, 4 - ATM, 5 - kPa
44445 1 High Buoyant Force 0 - lbs, 1 - N
Low Casing Head Pressure 0 - psig, 1 - MPa, 2 - bar, 3 - kg/cm^2, 4 - ATM, 5 - kPa
44446 1 High Counter Balance 0 - k in-lbs, 1 - N-m
Low Energy 0 - mmbtu, 1 - gJ
44447 1 High Formation Depth 0 - ft, 1 - m
Low Formation Volume Factor 0 - rb/stb, 1 - m^3/m^3
44448 1 High Reserved
Low Leakage 0 - b/d, 1 - m3/d
44449 1 High Linear Pump Distance Between Sprockets 0 - ft, 1 - m
Low Linear Pump Sprocket Radius 0 - ft, 1 - m
44450 1 High Load 0 - lbs, 1 - kg
Low Modulus 0 - MMPSI, 1 - GPa
44451 1 High 6.08 R1 0 - Degree API, 1 - kg/L, 2 - kg/m^3
Low Oil Shrinkage Factor 0 - rb/stb, 1 - m^3/m^3
44452 1 High Position 0 - in, 1 - cm
Low Power 0 - hp, 1 - kW
44453 1 High Pump Depth 0 - ft, 1 - m
Low Pump Diameter 0 - in, 1 - cm, 2 - mm
44454 1 High Pumping Unit API Dimensions 0 - in, 1 - cm
Low Rod Diameter 0 - in, 1 - cm, 2 - mm
44455 1 High Rod Interval 0 - ft, 1 - m
Low Rod Unit Weight 0 - lbs/ft, 1 - kg/m
44456 1 High Solution GOR 0 - scf/stb, 1 - m^3/m^3
Low Reserved
44457 1 High Stroke Length 0 - in, 1 - cm, 2 - m
Low Stuffing Box Friction 0 - lbs, 1 - N
44458 1 High SWT Cutoff Control 0 - bbls, 1 - metric tonnes, 2 - m^3
Low SWT Fluid 0 - bbls, 1 - metric tonnes, 2 - m^3
44459 1 High SWT Oil 0 - bbls, 1 - metric tonnes, 2 - m^3
Low SWT Tubing Gas 0 - mscf, 1 - m^3
44460 1 High SWT Water 0 - bbls, 1 - metric tonnes, 2 - m^3
Low Temperature 0 - degrees F, 1 - degrees C
44461 1 High Torque 0 - k in-lbs, 1 - kN-m
Low Tubing Gas Produced 0 - cf, 1 - m^3
44462 1 High Tubing Anchor Depth 0 - ft, 1 - m
Low Tubing Gas/Liquid Ratio 0 - scf/stb, 1 - m^3/m^3
44463 1 High Tubing Gradient 0 - psi/ft, 1 - MPa/m, 2 - bar/m, 3 - (kg/cm^2)/m, 4 - ATM/m
Low Tubing Head Pressure 0 - psig, 1 - MPa, 2 - bar, 3 - kg/cm^2, 4 - ATM, 5 - kPa
44464 1 High Tubing Movement 0 - in, 1 - cm, 2 - m
Low Tubing Size 0 - in, 1 - cm, 2 - mm
44465 1 High Valve Check Calculated Leakage 0 - b/d, 1 - m3/d
Low Valve Check CBE 0 - lbs, 1 - kg
44466 1 High Valve Check Load Readings 0 - lbs, 1 - kg
Low Viscosity 0 - cP, 1 - Pa-s
44467 1 High AGA Base Pressure 0 - psia, 1 - MPa, 2 - bar, 3 - kg/cm^2, 4 - ATM, 5 - kPa
Low AGA Temperature 0 - degrees F, 1 - degrees C
44468 1 High AGA Control Override Threshold 0 - mcf/d, 1 - m^3/d
Low AGA Differential Pressure 0 - in H2O@60F, 1 - Pa, 2 - millibar, 3 - kg/cm^2, 4 - ATM, 5 - mmH2O
44469 1 High AGA Flowing Pressure 0 - psia, 1 - MPa, 2 - bar, 3 - kg/cm^2, 4 - ATM, 5 - kPa
Low AGA Measured Gas Volume 0 - mcf, 1 - m^3
44470 1 High AGA Orifice Diameter 0 - in, 1 - cm, 2 - mm
Low AGA Pipe Diameter 0 - in, 1 - cm, 2 - mm
44471 1 High Pump Intake Pressure 0 - psi, 1 - MPa, 2 - bar, 3 - kg/cm^2, 4 - ATM, 5 - kPa
Low AGA Flow Rate 0 - mcf/d, 1 - m^3/d
44472 32 Reserved