Micro Motion Manual: Using Modbus Protocol with the Altus Net Oil Computer | Micro Motion Manuals & Guides

Using Modbus Protocol
with the ALTUS Net Oil Computer
Instruction Manual
November 2000
Using Modbus Protocol
with the ALTUS Net Oil Computer
Instruction Manual
November 2000
For technical assistance, telephone the Micro Motion Customer Service Department:
•Outside the United States, telephone (303) 530-8400, 24 hours
•In Europe, telephone +31 (0) 318 549 443
•In Asia, telephone (65) 770-8155
Copyright © 2000 Micro Motion, Inc. A l l rig h ts reserved.
ALTUS is a trademark of Micro Motion , Inc. Modbus is a registered trademark of Modicon , Inc. Hastelloy is a registered trademark of Haynes International, Inc. Monel is a registered trademark of Inco Alloys International, Inc. Inconel is a registered trademark of Inco Alloys Inte rnational, Inc. Teflon is a registered tradem ark of E.I. Du Pont de Nemours an d C om pany. Halar is a registered tradem ark of Allied Chemical Corporation. Tefzel is a registered trademark of E.I. Du Pont de Nemours and Com pany.
Contents
1 Using the NOC Screen . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Changing the communication parameters . . . . . . . . . . 1
Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Other communication parameters . . . . . . . . . . . . . . . . 2
2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Mode of operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 Units of measurement . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.4 Well data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.5 Transient bubble remediation. . . . . . . . . . . . . . . . . . . . 6
3 Continuous Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Viewing well performance data . . . . . . . . . . . . . . . . . . . 9
3.3 Pausing and resuming production measurements. . . . 9
3.4 Resetting production measurements . . . . . . . . . . . . . 10
4 Well Test Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 Conducting a well test . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.3 Viewing a well test in progress . . . . . . . . . . . . . . . . . . 11
4.4 Viewing well test archives . . . . . . . . . . . . . . . . . . . . . . 11
5 Density Determination . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.2 Determining the water density at
reference temperature . . . . . . . . . . . . . . . . . . . . . . 13
Measuring the water density and temperature . . . . . 13
Manually entering the water density
and temperature . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.3 Measuring the wet oil density and temperature . . . . 16
5.4 Entering the water cut of the oil . . . . . . . . . . . . . . . . . 18
5.5 Determining the dry oil density at
reference temperature . . . . . . . . . . . . . . . . . . . . . . 18
Using Modbus Protocol with the ALTUS Net Oil Computer
v
Contents
continued
6 Calibration and Trim . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.2 Auto zero . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Diagnosing zeroing failure . . . . . . . . . . . . . . . . . . . . . . 20
6.3 Density calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Preparing the sensor for density calibration . . . . . . . 20
Low-density calibration . . . . . . . . . . . . . . . . . . . . . . . . 21
High-density calibration . . . . . . . . . . . . . . . . . . . . . . . 22
6.4 Temperature calibration . . . . . . . . . . . . . . . . . . . . . . . 23
6.5 Output trim. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7 Modbus Mapping Assignments . . . . . . . . . . . . . . . . . . . 25
Read/write coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Read-only discrete inputs. . . . . . . . . . . . . . . . . . . . . . . 27
Floating point register pairs . . . . . . . . . . . . . . . . . . . . 28
Input registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Holding registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
ASCII character strings . . . . . . . . . . . . . . . . . . . . . . . . 39
Integer codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Timecode reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
vi
Using Modbus Prot ocol with the ALTUS Net Oil Co m put er
1 Using the NOC Screen
1.1 Overview
1.2 Changing the communication parameters
Protocol
Configuration
Digital Comm
Protocol
Protocol
None
Modbus RTU
Modbus ASCII
This section describes how to use the screen of the Series 3000 NOC to set up communication parameters. For detailed screen use instructions, refer to the ALTUS Net Oil Computer Manual.
You can change the following communication parameters:
• Protocol
•Baud rate
•Parity
• Data bits
• Stop bits
• Slave address
• Byte order
To change the protocol:
1. Select
2. Select
3. Select
4. Select
5. Press
Configuration Digital Comm Protocol
.
Modbus RTU
EXIT
.
.
.
Modbus ASCII
or
.
SEL HELP EXIT
Using Modbus Protocol with the ALTUS Net Oil Computer
1
Using the NOC Screen
continued
Other communication parameters
Configuration
Digital Comm
Configuration
Configuration
Baud Rate
1200
Parity
Odd
Data Bits
8
Stop Bits
1
CHG HELP EXIT
Table 1-1. Communication parameter values
To change all other communication parameters:
1. Select
2. Select
3. Select
Communication Digital Comm Configuration
.
.
.
4. Highlight the parameter you want to change and press
CHG
. The possible values for each
parameter are listed in Table 1-1.
5. Press
EXIT
.
Parameter Values
Baud rate 1200, 2400, 4800, 9600, 19200, 38400 Parity None, Odd, Even Data bits 7, 8 Stop bits 0, 1 Slave address 1–15, 32–47, 64–79, or 96–110 Byte order 1-2-3-4
3-4-1-2 2-1-4-3 4-3-2-1
2
Using Modbus Prot ocol with the ALTUS Net Oil Co m put er
2 Configuration
2.1 Overview
2.2 Mode of operation
The procedures in this section will enable you to configure the following Series 3000 NOC parameters:
• Mode of operation
• Units of measurement
•Well data
• Transient bubble remediation
The NOC operates in either continuous mode or well test mode.
To view the current mode of operation, examine discrete input 10259. If the discrete input is ON, the NOC is in continuous mode. If the discrete input is OFF, the NOC is in well test mode.
To change the mode of operation:
1. If you want to set the mode of operation to continuous mode, then set coil 00285 to ON.
2. If you want to set the mode of operation to well test mode, then set coil 00286 to ON.
For Modbus procedures in continuous mode, refer to Continuous
Mode, page 9. For Modbus procedures in well test mode, refer to Well Test Mode, page 11.
Table 2-1. Modbus addresses for mode of operation
Address Address Type Description Values
1 0259 Read-only
discrete input
0 0285 Read/write coil Enable continuous run mode ON, changes the mode of
0 0286 Read/write coil Enable well test mode ON, changes the mode of
Using Modbus Protocol with the ALTUS Net Oil Computer
NOC is in continuous mode • ON, the NOC is in
continuous mode
•OFF, the NOC is in well-test mode
operation to
operation to
continuous
well test
3
Configuration
continued
2.3 Units of measurement
You can use Modbus protocol to select the temperature units the NOC will use for measuring net oil and net water.
To set the temperature units of measurement, set holding register 41705 to the desired units integer code. For integer codes, refer to Temperature Unit Codes, page 42
Table 2-2. Modbus addresses for units of measurement
Address Address Type Description Values
4 1705 Holding register Reference temperature index Integer code for one of the four
possible temperature units
2.4 Well data
Using Modbus protocol, you can set oil and water densities and deviations for a well.
The well which will be affected by changing the parameters below depends on the mode in which the NOC is operating:
• If the NOC is operating in continuous mode, the parameters below will affect the current well.
• If the NOC is operating in well test mode, you must select the well you want to configure before changing the parameters below. Set holding register 41701 to the number of the well you want to configure.
You can set the following well data parameters:
• Well name (well test mode only)
• Oil density
•Water density
• Purge time (well test mode only)
• Oil deviation
• Water deviation
• Oil density averaging duration
• Water density averaging duration
Well name
You can only change the well name while the NOC is in well test mode. The well name can be up to 16 characters long. To set the well name, enter the name across ASCII character registers 52306–52313. Each ASCII character register can hold 2 characters.
Oil density
To set the oil density for the well, set floating-point register pair 21675–21676 to the known oil density, in g/cc, at reference temperature. If you perform a density determination, the oil density from the density determination will be automatically placed into these registers (see Density Determination, page 13).
4
Using Modbus Prot ocol with the ALTUS Net Oil Co m put er
Configuration
continued
Water density
To set the water density for the well, set floating-point register pair 21679–21680 to the known water density, in g/cc, at reference conditions. If you perform a density determination, the water density from the density determination will be automatically placed into these registers (see Density Determination, page 13).
Purge time
You can only set the purge time for the well while the NOC is in well test mode. To set the purge time, set holding register 41693 to the amount of time that the NOC will allow the separator contents from the previous test to purge.
Oil deviation
To set the oil deviation, set floating-point register pair 21677–21678 to the maximum oil density deviation, in g/cc, that will be allowed during density determination. Oil densities that fall outside of this deviation limit will cause the NOC to restart the density determination.
Water deviation
To set the water deviation, set floating-point register pair 21681–21682 to the maximum water density deviation, in g/cc, that will be allowed during density determination. Water densities that fall outside of this deviation limit will cause the NOC to restart the density determination.
Oil density averaging duration
To set the oil averaging duration, set holding register 41691 to the length of time you want the oil density to be averaged during density determination (see Density Determination, page 13).
Water density averaging duration
To set the water averaging duration, set holding register 41692 to the length of time you want the produced water density to be averaged during density determination (see Density Determination, page 13).
Using Modbus Protocol with the ALTUS Net Oil Computer
5
Configuration
continued
Table 2-3. Modbus addresses for well data
Address Address Type Description Values
5 2306 5 2307 5 2308 5 2309 5 2310 5 2311 5 2312 5 2313
2 1675 2 1676
2 1677 2 1678
2 1679 2 1680
2 1681 2 1682
4 1691 Holding register Time during which live oil density will be
4 1692 Holding register Time during which produced water density
4 1693 Holding register Purge time for the NOC to allow the
ASCII character string
Floating-point register pair
Floating-point register pair
Floating -point register pair
Floating-point register pair
1st pair of characters of well name 2nd pair of characters of well name 3rd pair of character of well name 4th pair of characters of well name 5th pair of characters of well name 6th pair of characters of well name 7th pair of characters of well name 8th pair of characters of well name
Density of oil at reference temperature Known density of oil, in g/cc
Maximum deviation of oil density during density determination
Density of water at reference temperature Known density of water, in g/cc
Maximum deviation of water density during density determination
averaged during density determination
will be averaged during density determination
separator contents of the previous test to purge
Any ASCII characters—the combined strings make up the name of the well
Limit in g/cc, beyond which density determination will be restarted
Limit in g/cc, beyond which density determination will be restarted
Length of time, in seconds
Length of time, in seconds
Length of time, in seconds
2.5 Transient bubble remediation
6
Transient bubble remediation corrects density and water cut readings during brief periods when gas bubbles are passing through the sensor.
To set the transient bubble remediation:
1. Set floating-point register pair 21683–21684 to the drive gain level, in volts, above which the NOC will indicate transient bubbles.
2. Set holding register 41706 to the integer code for one of the following three states (for integer codes, refer to TBR Event Action, page 44):
Hold last value—When transient bubbles are detected, the
NOC will hold its last good value.
Stop well test—The NOC will stop the well test if transient
bubbles are detected.
Alarm only—The NOC will report an alarm on discrete
output 1.
3. If you selected Hold last value in Step 2, then set holding register 41694 to the amount of time, in seconds, that the NOC should use before transient bubbles were detected to derive a density value.
Using Modbus Prot ocol with the ALTUS Net Oil Co m put er
Configuration
continued
Table 2-4. Modbus addresses for transient bubble remediation
Address Address Type Description Values
2 1683 2 1684
4 1694 Holding register Action taken •0 hold last value
4 1706 Holding register Time period Time, in seconds, the NOC
Floating-point register pair
Drive gain level Level, in volts, above which the
NOC indicates t he presence o f transient bubbles
• 1 stop well test
• 2 alarm only
should use before detecting transient bubbles to derive a density value
Using Modbus Protocol with the ALTUS Net Oil Computer
7
8
Using Modbus Proto col w i th th e ALTUS Net Oil Computer
3 Continuous Mode
3.1 Overview
3.2 Viewing well performance data
3.3 Pausing and resuming production measurements
The procedures in this section will enable you to use the Series 3000 NOC in continuous mode to:
• View well performance data
• Pause and resume accumulated production measurements
• Reset production measurements
Well performance data include such information as test start time, elapsed test time, flow rates, and accumulated totals. To view well performance data, examine floating-point register pairs 21537–21822. Refer to Floating point register pairs, page 28, for descriptions of each of the registers.
The NOC accumulates production measurements unless it is instructed to suspend its accumulation. To pause the accumulation of production measurements, set coil 00269 to ON. To resume the accumulation of production measurements, set coil 00270 to ON.
While the accumulation of production measurements is paused, you can view how long the accumulation has been paused by examining floating-point register pair 21713–21714.
Table 3-1. Modbus addresses for pausing and resuming accumulation of production measurements
Address Address Type Description Values
0 0269 Read/write coil Pause production measurements ON, pause the accumulation
of production measurements
0 0270 Read/write coil Resume production measurements ON, resumes the
2 1713 2 1714
Floating-point register pair
Paused time Length of time that prod uction
accumulation of production measurements
measurements have been paused
Using Modbus Protocol with the ALTUS Net Oil Computer
9
Continuous Mode
continued
3.4 Resetting production measurements
You can reset any of the accumulated production measurements by setting the associated Modbus read/write coil to ON. The production measurements and their associated reset coil are listed in Table 3-2.
Table 3-2. Reset coils for production measurements
Production measurement Reset coil
All measurements 00271 Back flow 00272 Density 00273 Drive gain 00274 Gross flow 00275 Mass flow 00276 Net oil 00277 Net water 00278 Temperature 00279 Uncorrected gross 00280 Uncorrected oil 00281 Uncorrected water 00282 Uncorrected water cut 00283 Water cut 00284
10
Using Modbus Prot ocol with the ALTUS Net Oil Co m put er
Loading...
+ 36 hidden pages