Gas Book PLC

Download as pdf or txt
Download as pdf or txt
You are on page 1of 119

Chapter 1

Introduction

V PLC Loadable Functions

V Gas Flow Specific Functionality

V Software Installation

V Enabler Key Installation

V Customer Service

890 USE 137 00 Introduction 1


1.1 PLC Loadable Functions

The PLC has, within its configuration data tables, the ability to have
Loadable Function Blocks added to the controller. These Loadable
Functions are application specific callable subroutine sets that are
loaded and allow you to set the Opcode through Modsoft panel software
and then ”configure” them into the larger control program.

The executable software code is programmed into the application in the


format as a standard three node ladder logic instruction block. The
basic logic subroutine structure of a loadable is shown in Figure 1.

Start
Op Code

Process Memory References


INPUTS OUTPUTS
Define Length

Figure 1 Loadable Code Logic Flow

These functions can be added to existing control logic in a field


environment and offer a software solution to specific application
problems.

2 Introduction 890 USE 137 00


1.2 Gas Flow Specific Functionality

The Gas Flow Loadable Function Block allows you to run AGA 3 and
AGA 8 equations using your Modicon PLC. The Gas Flow Loadables
sample all field inputs in <50 ms and solves flow rate in 1.5 s ... 850ms
dependent on the PLC model. The computed flow rates agree within 1
ppm of the published AGA standards. You may pick basic flow
equations or preferred supercompressibility factor (Z factor) options.
The following three Gas Flow Instructions are available for your
selection: GD92, GM92, and G392.

Gas Flow Features of Blocks PLC Memory Size Standards


Blocks Required
Available with a 130 HEK 301 01, AGA Full Enabler.
GD92 Detail method* using 8K PLC AGA 3 ’92 &
single pass AGA 8 ’92
GM92 Detail method* eight using 16K PLC AGA 3 ’92 &
passes AGA 8 ’92

Available with a 130 HEK 301 02, AGA Lite Enabler.


G392 Eight passes using 8K PLC AGA 3 ’92

*Supports the detailed characterization method, that uses a detail knowledge of the
gas composition making it more accurate than the gross characterization method.
The gross method uses an aggregate knowledge of the gas composition given by the
heating value and/or relative density and diluent content.

890 USE 137 00 Introduction 3


1.2.1 Implementation
The Gas Flow Loadable Function Block Disk (Part Number 309 ULD
455 00) contains the following files:

Gas Flow Disk Files


File Op Max. User Number of Function Loaded
Code Logic SIze* Passes Onto
GD92.EXE 1f Hex 5K 1 single Uses AGA3 ’92 (Flange PLC
pass Taps Only), AGA8 ’92
(Detail Method)
GM92.EXE 1f Hex 6K 8 passes Uses AGA3 ’92 (Flange PLC
Taps Only), AGA8 ’92
(Detail Method)
G392.EXE 1f Hex 4K 8 passes Uses AGA3 ’92 PLC

LSUP.EXE ff Hex 2K Loadable Used to run the gas PLC


Support flow loadable Gxxx.EXE
Utility files
DXFDT.SYS N/A 200K Modsoft DX Used to update Modsoft PC
Zoom files in order to access
source files the Gas Flow Blocks
using the Zoom fea-
tures
Gxxx1968.HLP N/A 2K Modsoft Used to update Modsoft PC
help source files in order to access
files the help information
about the Gas Flow
Blocks
*May vary based upon the PLC model.

1.2.2 Restrictions
The Gas Flow loadables run for 48 hours when the hardware enabler is
never present in the backplane, and 60 seconds when the hardware
enabler is present and is then removed. The Gas Flow Enabler (130
HEK 301 01/02) MUST be installed or the Gas Flow Loadable will not
function.

4 Introduction 890 USE 137 00


The loadables do NOT operate on Modicon Micro models 110 CPU 512
xx, 110 CPU 612 00/03, and Compact models A984-120, A984-13X, or
0984 PLCs.

1.2.3 Compatible Software and Hardware


V Modsoft Version 2.4 or higher (Part Number SW-MSxD-9SA)

V Gas Flow Loadable Function Blocks (Part Number 309 ULD 455
00)

V Gas Flow Enabler (Part Number 130 HEK 301 01 for AGA Full or
130 HEK 301 02 for AGA Lite).

V Compact PLC models: PC-A984-141, and PC-A984-145.

V Compact PLC models: PC-E984-241, PC-E984-245,


PC-E984-251, and PC-E984-255 (with 1.02 executive or higher).

V Micro PLC models: 110 CPU 612 04* (with 1.00 executive or high-
er). *You must use Modsoft Version 2.5 or higher to operate with
the 110 CPU 612 04 PLC.

1.2.3.1 Optional Software


V Meter Manager (offered by Starling Associates)

Meter Manager is used to define configuration variables used within


the Gas Flow Blocks already loaded into your PLC. Meter Manager
uses Modbus communication protocol (Modbus Plus will be
incorporated in future releases).

Meter Manager comes with default configuration parameters in US and


Metric (SI) unit systems for easy setup.

Meter Manager is a 16 bit application that is fully compatible with


systems running either Windows 3.1, or Windows 95. Meter Manager
requires 8.5MB of disk space.

Meter Manager is part of the Modicon Modconnect Partners Program,


and is available through Starling Associates, Inc. To order Meter
Manager, (offered by Starling Associates) refer to Appendix A, Section
NO TAG.

890 USE 137 00 Introduction 5


1.2.4 Reference Documents
V Modicon 984 A120 Compact Programmable Controllers User
Guide
(890 USE 108 00)

V Modicon 512/612 Micro PLC Hardware User Manual


(890 USE 145 00)

V Modicon Micro Controllers Ladder Logic Manual


(890 USE 146 00)

V Modicon Modsoft Programmer Software User Guide


(890 USE 115 00)

V Modicon Ladder Logic Block Library User Guide


(840 USE 101 00)

6 Introduction 890 USE 137 00


1.3 Software Installation

Before installing the Gas Flow Loadable you must copy two files from
the Gas Flow Loadable Function Block Disk (309 ULD 455 00) as
described below.

1.3.1 Loading DXFDT.SYS


Step 1 Copy the DXFDT.SYS file to the Modsoft/runtime directory. The
DXFDT.SYS file replaces the existing DXFDT.SYS file.

1.3.2 Loading Gxxx1968.HLP


Step 1 Copy the Gxxx1968.HLP file to the Modsoft/programs directory. The
Gxxx1968.HLP file replaces the existing Gxxx1968.HLP file.

1.3.3 Loadable Installation


This information assumes the use of Modsoft Panel software that you
have used to configure a controller and now are about to add a Gas
Flow Loadable.

When the loadable is transferred to the panel, Modsoft converts


Gxxx.EXE to a DX file named Gxxx1968.EXE.

The next few figures are examples of the screens you see as you
transfer the Gas Loadable from the disk to the 984 controller. When
you have concluded the transfer to the panel, the DX will be
downloaded to the controller when you download the configuration.

Step 1 Insert the Gas Flow Loadable Function Block Disk (Part Number 309
ULD 455 00) into disk drive A:

Step 2 Go to the Offline (F2) selection on the Main Menu.

Step 3 Select either Select Program or New Program from the menu. Use the
default path and communication parameters then hit return.

Step 4 From the Segment Status Display Screen select Configuration (F5)
from the menu.

Step 5 From the Configuration Overview Screen, select Overview (F3) from
the menu. Select PLC Type then model number and hit return. Also,
select your Ranges.
890 USE 137 00 Introduction 7
Step 6 From the Overview (F3) menu, select Specials then move your cursor
down to the Time of Day Clock area and type in a desired 4X register
range that holds the time data used by the Gas Flow Blocks. Also, se-
lect any other specials you desire.

Note: Remember, the DXFDT.SYS, Gxxx1968.HLP, LSUP.EXE, and


Gxxx.EXE files are present on the disk(s). The LSUP.EXE loadable is
used to interface .EXE loadables with the PLC operating system.

1.3.3.1 Loading LSUP.EXE

Caution: The LSUP.EXE file MUST be loaded FIRST into the


configuration of the PLC BEFORE the Gxxx.EXE file or any
other executable. If not the Gas Flow Block instruction will
not operate properly. All three inputs and outputs turn on in
this situation.

Step 1 From the Configuration Overview Screen, select Loadable (F7) then
Dir (F3) then Load (F1) . A prompt appears asking for the filename.
Type A:\ LSUP.EXE and then hit return.

Note: LSUP.EXE file must be loaded in order to run the Gas Flow
Block on the PLC. Therefore, if you already have LSUP.EXE loaded,
you need not load it again. Refer to Figure 2.

Note: NSUP.EXE does NOT support the Gas Flow Blocks.

8 Introduction 890 USE 137 00


Figure 2 Loadable Screen (Sample Screen)

Step 2 System message appears telling you that you can now access this
loadable. Hit Escape to remove the system message.

Step 3 Hit Shift ? or enter to display all available loadables. The LSUP.EXE
Loadable should now appears in this list.

Step 4 Place your cursor onto LSUP.EXE and press enter. This displays the
revision, size, and opcode of the LSUP Loadable. Its Opcode is (ff
Hex). Ensure that this Opcode does not conflict with any other Op-
codes that may be in use. If so, select a new Opcode from the avail-
able list. Hit Escape to return to configuration screen.

Note: To obtain the revisions to your LSUP Loadable contact


Customer Service.

Step 5 Hit Escape twice to return the Configuration Overview Screen.

890 USE 137 00 Introduction 9


1.3.3.2 Loading Gxxx.EXE

Caution: The LSUP.EXE file MUST be loaded FIRST into the


configuration of the PLC BEFORE the Gxxx.EXE file or any
other executable. If not the Gas Flow Block instruction will
not operate properly. All three inputs and outputs turn on in
this situation.

Step 1 From the Configuration Overview Screen, select Loadable (F7) then
Dir (F3) then Load (F1). A prompt appears asking for the filename.
Type A:\ Gxxx.EXE and then hit return. Refer to Figure 3.

Figure 3 Loadable Screen (Sample Screen)

Step 2 System message appears telling you that you can now access this
loadable. Move cursor below the name of the previous loadable to an
open spot.

Step 3 Hit Shift ?or enter to display all available loadables. The Gxxx.EXE
Loadable should now appears in this list. Refer to Figure 4.

10 Introduction 890 USE 137 00


Figure 4 List of Available Loadables (Sample Screen)

Step 4 Place your cursor onto Gxxx.EXE and press enter. This displays the
revision, size, and opcode of the Gas Flow Loadable. The various Op-
codes are noted in the table below. Ensure each loadable has its own
individual opcode. Ensure that the Opcode does not conflict with any
other Opcodes that may be in use. The Opcode shown on the screen
may vary. Refer to Figure 5. To change the Opcode go to the DX
Loadable Configuration screen. Place your cursor on the Name of the
Gas Flow Block you want to change. Pick Edit (F4) then Opcode (F3).
A list of Opcodes appears. Select the new Opcode and hit return.

890 USE 137 00 Introduction 11


Figure 5 Installed Loadables (Sample Screen)

Step 5 Press Escape three times.

Step 6 The Segment Status Display appears. Select a segment, a network


and press enter.

Step 7 Select Elements (F3) from menu.

Step 8 Select Loadable (F5) from menu to access the Gas Flow Loadable.

Step 9 Pick your Gas Flow Loadable and hit return.

See: Each Gas Flow Block has a different set of DX Zoom screens.
Therefore, refer to the applicable chapter for those screens and steps
using the table below.

12 Introduction 890 USE 137 00


1.4 Hardware Enabler Installation

Note: The Gas Flow Enabler (130 HEK 301 01 for AGA Full or 130
HEK 301 02 for AGA Lite) MUST be installed before the Gas Flow
Loadable Function Block (309 ULD 455 00) will continue to operate
after 48 hours. The Gas Flow Enabler may be installed on Compact
PLCs, or Micro 110 CPU 612 04 PLC.

130 HEK 301 0x Specifications


5V Tolerance +/- 5%
5V Current Con- 5mA Maximum @ 20mF Capacitive
sumption Load
Inrush Current 250mA
Operating Tem- 0 ... 70°°C
perature
Storage Tempera- -40 ... 85°°C
ture
Humidity 5 ... 95% RH (non condensing)
Vibration 10 ... 57Hz @ 0.075 mmDA
57 ... 150Hz @ 1g
Shock 30G peak, 11mS, half sine wave
Agency Approvals UL 508; CSA 22.2 No.142, FM
(Currently Pend- Class I, Div 2; and European Direc-
ing) tive on EMC 89/336/EEC Standards

Note: The Gas Flow Enabler should never be hot swapped.

1.4.1 For Compact PLCs


Locate the Gas Flow Enabler (1.64 in x1.18 in x .42 in PCB with
30-pins) (Part Number 130 HEK 301 0x) and place it into the PAB Bus
Extension Connector on the Backplane (Part Number AS-HDTA-20X)
for Compact PLCs. When more than one backplane exists the Gas
Flow Enable must be placed in the last backplane. The Gas Flow
Enabler may only be inserted in one manner. Refer to Figure 6.

Note: All I/O slots may still be used with a Gas Flow Enabler
installed in AS-HDTA-200, or AS-HDTA-201 backplane.

890 USE 137 00 Introduction 13


Note: Do not use the Gas Flow Enabler on a two slot backplane
(Part Number AS-HDTA-202).

Gas Flow Enabler


(130 HEK 301 01/02)

30-Pin A120
I/O Expansion
Receptacle

Figure 6 130 HEK 301 01/02 Gas Flow Enabler Placement

1.4.2 For Micro 110 CPU 612 04 PLC


When using a 110 CPU 612 04 without additional A120 backplanes,
insert the Gas Flow Enabler (1.64 in x1.18 in x .42 in PCB with
30-pins) (Part Number 130 HEK 301 0x) into the 30-pin A120
expansion receptacle on the side of the PLC. When using a 110 CPU
612 04 with additional A120 backplanes, insert the Gas Flow Enabler
into the 30-pin A120 expansion receptacle on the last A120 backplane.
The Gas Flow Enabler is inserted in only one manner. Refer to
Figure 7.

Note: All I/O slots may still be used with a Gas Flow Enabler
installed in AS-HDTA-201 backplane.

Note: Do not use the Gas Flow Enabler on a two slot backplane
(Part Number AS-HDTA-202).

14 Introduction 890 USE 137 00


30-pin A120 expansion
receptacle

comm 1 (RJ45) port


comm 2 (RJ45) port
Gas Flow Enabler
I/O exp link (RJ11) port
(130 HEK 301 0x)

Figure 7 130 HEK 301 01/02 Gas Flow Enabler Placement

Caution: The AS WBXT 201 or AS WBXT 202 cable is not


supported.

PLC DTA 201

A
Rack 1
Rack 2

Figure 8 A120 I/O Expansion with 110 CPU 612 04 PLC

890 USE 137 00 Introduction 15


1.5 Customer Service

Schneider Automation telephone numbers are as follows:

V To call us from anywhere in North America except from within the


state of Massachusetts: 1-(800) 468-5342

V To call us from within Massachusetts or from outside North Ameri-


ca: 1-(978) 975-5001

V To fax us: 1-(978) 975-9301

Customer Service - When calling the Schneider Automation telephone


number, ask for service from the list below.

When calling the 800 number, you will get a recording asking you to
enter a one digit code for the type of service you want (listed below).
However, this only works with a ”touch tone” phone. If using a dial
phone, hang on and the operator will intercept after a short pause.

The service categories and extra digit code responses for push-button
phones are:
1 - Technical support
2 - Service order administration
3 - Modfax
4 - Training/course registration inquiries
5 - General information other than above.

Note: MODFAX: For available hardware data sheets, application


notes, and software information. Recommended catalogue MC-FAX-
DIR which is the master of all available catalogues (only twelve
pages) lists all catalogues available on the MODFAX system.

Note: BBS (Schneider Automation’s Customer Service Bulletin


Board): For Modsoft updates, conversion utilities, hardware and soft-
ware help, field service bulletins, Modbus and Modbus Plus help, soft-
ware revision levels, FLASH EXEC updates for Modicon equipment,
and more. Parameters are up to 14.4k baud, no parity, 8 data, 1 stop,
phone 1-(978) 975-9779.

Note: Schneider Automation web page (www.modicon.com) provides


user documentation, file updates, access to MODFAX, and other online
services.

16 Introduction 890 USE 137 00


Chapter 2
GD92/GM92 AGA#3&8 1992
Detail Method Gas Flow
Function Block

Tip: Both GD92 and GM92 function the same, except for the number
of passes. GD92 performs one pass, and GM92 performs eight passes.

V Gas Flow Instruction Block

V DX Zoom Screens

V Gas Flow Configuration Table

V Possible Configuration Examples for the Gas Flow Block

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 37
2.1 Gas Flow Instruction Block

2.1.1 Characteristics

2.1.1.1 Size
Three nodes high

2.1.1.2 PLC Compatibility


V Compact PLCs: PC-A984-141, and PC-A984-145 (with no execu-
tive).

V Compact PLCs: PC-E984-241, PC-E984-245, PC-E984-251, and


PC-E984-255 (with 1.02 executive or higher).

V Micro PLCs: 110 CPU 612 04 (with 1.00 executive or higher).

2.1.1.3 Opcode
1f hex for GD92.EXE file.
1f hex for GM92.EXE file.

2.1.2 Representation

2.1.2.1 Block Structure

Start operation #0001 Operation is active

Not used 4xxxx System or Program


Warning
Gx92
Not used System or Program
Length Error

Inputs
GD92/GM92 Gas Flow Block has one control input. The input to the top
node starts the calculation of the gas flow and should remain ON to
continue solving. The calculations are based on your parameters
entered into the input registers.

Outputs
GD92/GM92 may produce three possible outputs. The outputs from the
top node goes ON while a GD92/GM92 operation is in progress. The
38 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
output from the middle node goes ON when GD92/GM92 has detected a
system or program warning. The output from the bottom node goes ON
when GD92/GM92 has detected a system or program error. Refer to
Section 2.3.2.1 for system warning/error codes (4x+0), and to Section
2.3.2.2 for program warning/error codes (4x+1).

Top Node Content


The top node must contain a constant (#0001).
Middle Node Content
The 4x register entered in the middle node is the first in a group of
contiguous holding registers that comprise the configuration
parameters and values associated with the Gas Flow Block. Refer to
Section 2.1.3.1.

Warning! Do not attempt to change the middle node 4x


register while the Gas Flow Block is running. You will lose
your data and generate an error 302. If you need to change
the 4x register, first STOP the PLC.

Bottom Node Content


The integer value entered in the bottom node specifies the length—i.e.,
the maximum number of registers—in the data area. The length must
contain a constant. This is the number of registers used by the Gas
Flow Block. When using only the standard outputs (see Section 2.1.3.2)
the constant is 157. When using the optional outputs (see Section
2.1.3.3) the constant is 181.

2.1.3 GD92/GM92 Configuration Table


You MUST fill in all pertinent values in the configuration table using
either the reference data editor in Modsoft, or the DX Zoom screens in
Modsoft, or Meter Manager (offered by Starling Associates) refer to
Appendix A. The following input table lists all of the configuration
parameters that MUST be filled in. The outputs and optional outputs
show the calculation results of the block. Some of these variables use
multiple registers to hold the specific configuration parameters
required. Refer to Section 2.1.3.1, Section 2.1.3.2, and Section 2.1.3.3
below

Warning! Only valid entries are allowed; entries outside the


valid ranges are not accepted by either Modsoft or Meter
Manager. Illegal entries result in errors or warnings.

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 39
To run the DX Zoom configuration refer to Section 2.2. When using
Meter Manager refer to its user manual provided by Starling
Associates, Inc.

2.1.3.1 Inputs
GD92/GM92 Gas Flow Configuration Table Description
Inputs Description
4x+3: 1 ... 2 Location of Taps: 1=Upstream, 2=Downstream
4x+3: 3 ... 4 Meter Tube Material: 1=Stainless Steel, 2=Monel, 3=Carbon Steel
4x+3: 5 ... 6 Orifice Material: 1=Stainless Steel, 2=Monel, 3=Carbon Steel
4x+3: 7 ... 8 Reserved for Future Use (Do not use)
4x+3: 9 ... 10 Optional Outputs: 1=Yes, 2=No
4x+3: 11 ... 16 Reserved for Future Use (Do not use)
4x+4: 1 ... 4 Reserved for Future Use (Do not use)
4x+4: 5 ... 6 Continue Accumulation on Error
4x+4: 7 ... 8 Input Register Type: 1=3X Pointer, 2=4X
4x+4: 9 ... 10 Mole % Error Limits: 1=Enable, 2=Disable
4x+4: 11 ... 12 Dual Range Differential Pressure Option: 1=Yes, 2=No
4x+4: 13 ... 14 Compressible/Incompressible: 1=Compressible, 2=Incompressible
4x+4: 15 ... 16 Averaging Methods: 0=Flow Dependent Time Weighted, 1=Flow Dependent Time
Weighted Formulaic, 2=Flow Weighted Linear Formulaic, 3=Flow Weighted Linear
Formulaic
4x+5: 1 ... 2 Measurement Units: 1=US, 2=Metric (SI)
4x+5: 3 ... 16 Reserved for Future Use (Do not use)
4x+6 Temperature 3X Pointer or 4X Register
4x+7 Pressure (absolute) 3X Pointer or 4X Register
4x+8 Differential Pressure 1 3X Pointer or 4X Register
4x+9 Differential Pressure 2 3X Pointer or 4X Register
4x+10 Analog Input Raw Value Minimum Temperature
4x+11 Analog Input Raw Value Maximum Temperature
4x+12 Analog Input Raw Value Minimum Pressure
4x+13 Analog Input Raw Value Maximum Pressure
4x+14 Analog Input Raw Value Minimum Differential Pressure 1
4x+15 Analog Input Raw Value Maximum Differential Pressure 1
4x+16 Analog Input Raw Value Minimum Differential Pressure 2
4x+17 Analog Input Raw Value Maximum Differential Pressure 2
4x+18 ... 19 Engineering Unit Temperature Minimum -200 ... 760°°F (-128.89 ... 404.4°°C)
4x+20 ... 21 Engineering Unit Temperature Maximum -200 ... 760°°F (-128.89 ... 404.4°°C)
4x+22 ... 23 Engineering Unit Pressure Minimum 0 ... 40,000psia (0 ... 275,790.28kPa)

40 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
4x+24 ... 25 Engineering Unit Pressure Maximum 0 ... 40,000psia (0 ... 275,790.28kPa)
4x+26 ... 27 Engineering Unit Differential Pressure 1 Minimum <=0
4x+28 ... 29 Engineering Unit Differential Pressure 1 Maximum <0
4x+30 ... 31 Engineering Unit Differential Pressure 2 Minimum <=0
4x+32 ... 33 Engineering Unit Differential Pressure 2 Maximum <0
4x+34 ... 35 Orifice Plate Diameter, dr (.45<dr<100in) (11.43<dr<2540mm)
4x+36 ... 37 Orifice Plate Diameter Measurement Temperature, Tr (32<Tr<77°°F) (0<Tr<25°°C)
4x+38 ... 39 Meter Tube Internal Diameter, Dr (0<Dr<100in) (0<dr<2540mm)
4x+40 ... 41 Meter Tube Diameter Measurement Temperature, Tr (32<Tr<77°°F) (0<Tr<25°°C)
4x+42 ... 43 Base Temperature, Tb (32.0<Tb<77.0°°F) (0<Tb<25°°C)
4x+44 ... 45 Base Pressure, Pb (13.0<Pb<16.0PSIA) (89.63<Pb<110.32kPa)
4x+46 ... 47 Reference Temperature for Relative Density, Tgr (32.0<Tgr<77.0°°F) (0<Tgr<25°°C)
4x+48 ... 49 Reference Pressure for Relative Density, Pgr (13.0<Pgr<16.0PSIA)
(89.63<Pgr<110.32kPa)
4x+58 ... 59 User Input Correction Factor, Fu (0<Fu<2.0)
4x+60 ... 61 Absolute Viscosity of Flowing Fluid, cP (0.005<=cP<=0.5)
4x+62 ... 63 Isentropic Exponent, k (1.0<=k<=2.0)
4x+64 Beginning of Day Hour, (0 ... 23)
4x+65 ... 82 Reserved for Future Use
4x+83 ... 84 Mole % of Methane, xi (0.0<=xi<=100)
4x+85 ... 86 Mole % of Nitrogen, xi (0.0<=xi<=100)
4x+87 ... 88 Mole % of Carbon Dioxide, xi (0.0<=xi<=100)
4x+89 ... 90 Mole % of Ethane, xi (0.0<=xi<=100)
4x+91 ... 92 Mole % of Propane, xi (0.0<=xi<=12)
4x+93 ... 94 Mole % of Water, xi (0.0<=xi<=10)
4x+95 ... 96 Mole % of Hydrogen Sulfide, xi (0.0<=xi<=100)
4x+97 ... 98 Mole % of Hydrogen, xi (0.0<=xi<=100)
4x+99 ... 100 Mole % of Carbon Monoxide, xi (0.0<=xi<=3)
4x+101 ... 102 Mole % of Oxygen, xi (0.0<=xi<=21)
4x+103 ... 104 Mole % of I Butane, xi Valid Entry for Com-
bined Butanes is
(0.0<=xi<=6)
4x+105 ... 106 Mole % of n Butane, xi Valid Entry for Com-
bined Butanes is
(0.0<=xi<=6)
4x+107 ... 108 Mole % of I Pentane, xi Valid Entry for Com-
bined Pentanes is
(0.0<=xi<=4)
4x+109 ... 110 Mole % of n Pentane, xi Valid Entry for Com-
bined Pentanes is
(0.0<=xi<=4)

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 41
4x+111 ... 112 Mole % of Hexane, xi Valid Entry for Com-
bined Hexanes + is
(0.0<=xi<=10)
4x+113 ... 114 Mole % of Heptane, xi Valid Entry for Com-
bined Hexanes + is
(0.0<=xi<=10)
4x+115 ... 116 Mole % of Octane, xi Valid Entry for Com-
bined Hexanes + is
(0.0<=xi<=10)
4x+117 ... 118 Mole % of Nonane, xi Valid Entry for Com-
bined Hexanes + is
(0.0<=xi<=10)
4x+119 ... 120 Mole % of Decane, xi Valid Entry for Com-
bined Hexanes + is
(0.0<=xi<=10)
4x+121 ... 122 Mole % of Helium, xi (0.0<=xi<=30)
4x+123 ... 124 Mole % of Argon, xi (0.0<=xi<=100)

2.1.3.2 Outputs
GD92/GM92 Gas Flow Configuration Table Description
Outputs Description
4x+0 System Warning/Error Code
4x+1 Program Warning/Error Code
4x+2 Version Number
4x+125 ... 126 Temperature at Flowing Conditions, Tf
4x+127 ... 128 Pressure, Pf
4x+129 ... 130 Differential Pressure, hw
4x+131 ... 132 Integral Value, IV
4x+133 ... 134 Integral Multiplying Value, IMV
4x+135 ... 136 Volume Flow Rate at Base Conditions, (Tb,Pb), Qb
4x+137 ... 138 Mass Flow Rate, Qm
4x+139 ... 140 Accumulated Volume Current Hour
4x+141 ... 142 Accumulated Volume Last Hour
4x+143 ... 144 Accumulated Volume Last Day
4x+145 ... 146 Average Temperature Last Day
4x+147 ... 148 Average Pressure Last Day
4x+149 ... 150 Average Differential Pressure Last Day
4x+151 ... 152 Average IV Last Day
4x+153 ... 154 Average Volume Flow Rate at Base Conditions (Tb,Pb) for the Last Day
4x+155: Reserved for Future Use (Do not use)
1 ... 13

42 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
4x+155: 14 Block is Functioning Heartbeat
4x+155: 15 Flow Rate Solve Complete Heartbeat
4x+155: 16 End of Day Flag (NOTE: This status bit does not appear in the DX Zoom screen but may be used in pro-
gram logic).

2.1.3.3 Optional Outputs


GD92/GM92 Gas Flow Configuration Table Description
Optional Description
Outputs
4x+156 ... 157 Compressibility at Flowing Conditions (Tf,Pf), Zf
4x+158 ... 159 Compressibility at Base Conditions (Tb,Pb), Zb
4x+160 ... 161 Compressibility at Standard Conditions (Ts,Ps), Zs
4x+162 ... 163 Density at Fluid Flowing Conditions, Pt,p
4x+164 ... 165 Density of Fluid at Base Conditions, r
4x+166 ... 167 Supercompressibility (), Fpv
4x+168 ... 169 Gas Relative Density, Gr
4x+170 ... 171 Orifice Plate Coefficient of Discharge, Cd
4x+172 ... 173 Expansion Factor, Y
4x+174 ... 175 Velocity of Approach Factor, Ev
4x+176 ... 177 Reserved for Future Use (Do not use)
4x+178 ... 179 Reserved for Future Use (Do not use)
4x+180 Orifice Plate Coefficient of Discharge Bounds Flag within Iteration Scheme, Cd f

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 43
2.2 DX Zoom Screens

Assuming you have already loaded Gxxx.EXE files into Modsoft.

Step 1 Choose the GD92/GM92 Loadable now.

Note: Both the GD92 and GM92 screens are the same. Therefore,
only the GD92 screens are shown.

Step 2 Place your cursor on the top node of the Gas block, type #0001 and
press enter.

Step 3 Place your cursor on the middle node of the Gas block, enter your 4x
register and press enter.

Step 4 Place your cursor on the bottom node of the Gas block, type #157 or
#181 and press enter.

Step 5 Place your cursor on the Gas Flow Block and hit ALTZ to pull-up the
Gas Flow zoom screens. At this point you may set your parameters
based on your application and the details of the Gas Flow Block found
in Gas Flow Configuration Table, Section 2.3.

Step 6 Enter the required information into the following 11 DX Zoom screens.

Note: You may wish to refer to Section 2.4 for possible configuration
examples for the GD92/GM92 Block.

Note: To access the help screen for the GD92/GM92 Block place your
cursor on the GD92/GM92 Block and hit ALTH.

44 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 9 GD92/GM92 Zoom Screen 1 of 11

Figure 10 GD92/GM92 Zoom Screen 2 of 11

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 45
Figure 11 GD92/GM92 Zoom Screen 3 of 11

Figure 12 GD92/GM92 Zoom Screen 4 of 11

46 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 13 GD92/GM92 Zoom Screen 5 of 11

Figure 14 GD92/GM92 Zoom Screen 6 of 11

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 47
Figure 15 GD92/GM92 Zoom Screen 7 of 11

Figure 16 GD92/GM92 Zoom Screen 8 of 11

48 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 17 GD92/GM92 Zoom Screen 9 of 11

Figure 18 GD92/GM92 Zoom Screen 10 of 11

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 49
Figure 19 GD92/GM92 Zoom Screen 11 of 11

Tip: We recommend you review your data entered in the 11 DX


Zoom screens.

Step 7 Hit Escape twice to the Segment Status Display Screen, then select
Save (F7) to save changes.

Step 8 Hit Escape twice to the main Modsoft screen.

Step 9 Select Transfer (F5), then File to PLC (F3) and hit return.

Step 10 Confirm the name of the program file. If correct hit return.

Step 11 A message appears asking you to stop the PLC. Enter Y and hit re-
turn. A screen message appears during the transfer.

Step 12 A message appears asking you to start the PLC. Enter Y and hit re-
turn.

Step 13 Modsoft automatically defaults to the Controller Status Information


Screen. Note in the upper right hand side, second item, Status: Run-
ning.

50 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Step 14 Hit Return then Escape twice. Then select Online (F3), Select Pro-
gram.

Step 15 From the Segment Status Display Screen select PlcOps (F2), then
Start (F1). A message appears asking you to confirm; enter Y.

Step 16 Select Set Hardware Clock (F9). A message appears asking you to
write panel clock data to PLC; enter Y, then hit return twice.

Step 17 From the Segment Status Display Screen select Stop (F2). A message
appears asking you to confirm; enter Y.

Step 18 From the Segment Status Display Screen select Start (F1). A message
appears asking you to confirm; enter Y. The Controller Status In-
formation Screen automatically appears.

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 51
2.3 Gas Flow Configuration Table

The following is a detailed description of configuration variables for the


GD92/GM92 gas flow instruction block: input, output and optional
output variables. When applicable, the reference publication, page
number, and formula number are provided noting where this variable
may be found. AGA#3 refers to AGA Report No.3, Part 3, 1992 (aka
GPA 8185, Part 3; ANSI/API 2530-1991). AGA#8 refers to AGA Report
No. 8, 1992 (aka API 14.2). API#21 refers to API 21.1, 1993. AGA
stands for the American Gas Association.

2.3.1 Gas Flow Configuration Input Table


The following is a detailed description of each of the input variables to
the GD92/GM92 gas flow instruction block.

2.3.1.1 Location of Taps (4x +3 bits 1 ... 3)


The location of the Taps may be either upstream or downstream. Two
bits are assigned for the input of this variable. Set the variable to 1 for
upstream or 2 for downstream.

Reference None

2.3.1.2 Meter Tube Material (4x +3 bits 3 ... 4)


Construction material of the Meter Tube. The orifice material may be
set to either stainless steel, carbon steel or monel. Two bits are
assigned for the input of this variable. Enter 1 for stainless steel, 2 for
carbon steel, or 3 for monel.

Reference: AGA#3, pp8, formula#3-10

2.3.1.3 Orifice Material (4x +3 bits 5 ... 6)


Construction material of the Orifice Plate. The orifice material may be
set to either stainless steel, carbon steel or monel. Two bits are
assigned for the input of this variable. Enter 1 for stainless steel, 2 for
carbon steel, or 3 for monel.

Reference: AGA#3, pp8, formula#3-10

2.3.1.4 Reserved for Future Use (4x +3 bits 7 ... 8)


These bits are reserved for future use, and therefore may not be used.

Reference: None

52 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
2.3.1.5 Optional Outputs (4x +3 bits 9 ... 10)
You may select optional outputs that may be desirable, yet not required
in all cases. Simply enter 1 to turn optional outputs on or 2 to turn
optional outputs off. Two bits are assigned to specify this selection.
When set to 2 (turned off) the output registers for the optional outputs
are not used by GD92/GM92.

Reference: None

2.3.1.6 Reserved for Future Use (4x +3 bits 11 ... 16)


These bits are reserved for future use, and therefore may not be used.

Reference: None

2.3.1.7 Reserved for Future Use (4x +4 bits 1 ... 4)


These bits are reserved for future use, and therefore may not be used.

Reference: None

2.3.1.8 Continue Accumulation on Error (4x +4 bits 5 ... 6)


You may select if the block continues to accumulate at the last correct
rate when an error occurs. Simply enter 1 to turn this on or 2 to turn
off. Two bits are assigned to specify this selection.

Reference: None

2.3.1.9 Input Register Type (4x +4 bits 7 ... 8)


You may specify either 3X as pointers or 4X address for the live inputs
(temperature, static pressure and differential pressure). Two bits are
assigned to input this variable. Set the variable to 1 for 3X addresses
and use (4X +6 ... 9) as pointers to the proper 3X addresses, or set to 2
for 4X addresses and use (4X +6 ... 9) to hold the raw value of these
inputs.

Reference: None

2.3.1.10 Mole Percent Error Limits (4x +4 bits 9 ... 10)


You may select to enable or disable error checking for mole percent
limits. If this option is selected as disabled, no errors or warnings for
individual mole percent will be generated. The sum of mole percents
must always be >99.99 and <100.01. Two bits are assigned to input of
this variable. Set the variable to 1 when error detection is desirable, or
set to 2 when you need the values that are outside the AGA#8.

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 53
Reference: None

2.3.1.11 Dual Range Differential Pressure Option (4x +4 bits 11 ... 12)
To cover a wider range of pressure differential, GD92/GM92 allows the
use of two staggered range differential pressure measurement devices.
You may specify either single or dual differential pressures scales. Two
bits are assigned for the input of this variable. Set the variable to 1 for
two differential pressure scales, or set to 2 for single differential range.

Reference: None

2.3.1.12 Compressible/Incompressible (4x +4 bits 13 ... 14)


The natural gas you are measuring must be specified as being
compressible incompressible. Two bits are assigned for the input of this
variable. Set the variable to 1 for compressible, or 2 for incompressible.
When a gas is assumed to be incompressible, the expansion factor is
Y=1. Therefore, we recommend setting it to 2 for best results.

Reference: None

2.3.1.13 Averaging Methods (4x +4 bits 15 ... 16)


You may select one of four different averaging methods suggested by
(API21.1). Two bits are assigned for the input of this variable. Set the
variable to 0 for flow dependent time weighted linear averaging
technique, 1 for flow dependent time weighted formulaic averaging
technique, 2 for flow weighted linear averaging technique, or 3 for flow
weighted linear formulaic averaging technique.

Reference: API#21, pp31, formula#2-31

2.3.1.14 Measurement Units (4x +5 bits 1 ... 2)


You may select from two units of measurement. Two bits are assigned
for the input of this variable. Set the variable to 1 for US, or 2 for
Metric (SI). The table below defines the units.

Reference: None

Measurement Units Defined (4X +5 bits 1 .. 2)


Type of Measure- US Metric (SI)
ment
Temperature °F °C
Static pressure psia kPa

54 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Differential pressure Inches of kPa
H2O
Length Inches mm
Volume SCFD Sm3/D
Mass Lbm/hr kg/D
Density Lbm/ft3 kg/m3
Viscosity cP cP

2.3.1.15 Reserved for Future Use (4x +5 bits 3 ... 16)


These bits are reserved for future use, and therefore may not be used.

Reference: None

2.3.1.16 Temperature 3X Pointer or 4X Register (4x +6)


You may select to gather temperature data from either analog input
devices via 3X registers or use 4X registers. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+6) is the input value for
temperature. When Input Register Type (4X +4 bits 7 ... 8) is 1 this
register (4X+6) is a pointer to the 3X address used for the temperature
input. For 30002 the entry for temperature 3X pointer or 4X register
would be 2. You MUST enter the register pointer for temperature as an
unsigned decimal value.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

2.3.1.17 Pressure (absolute) 3X Pointer or 4X Register (4x +7)


You may select to gather static pressure data from either analog input
devices via 3X registers or use input value. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+7) is the input value for static
pressure. When Input Register Type (4X +4 bits 7 ... 8) is 1 this register
(4X+7) is a pointer to the 3X address used for the static pressure input.
For 30003 the entry for static pressure pointer or input value would be
3. You MUST enter the register pointer for static pressure as an
unsigned decimal value.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 55
2.3.1.18 Differential Pressure 1 3X Pointer or 4X Register (4x +8)
You may select to gather static pressure data from either analog input
devices via 3X registers or use 4X registers. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+8) is the input value for
differential pressure 1. When Input Register Type (4X +4 bits 7 ... 8) is
1 this register (4X+8) is a pointer to the 3X address used for the
differential pressure 1 input. For 30004 the entry for differential
pressure 1 3X pointer or 4X register would be 4. You MUST enter the
register pointer for static pressure as an unsigned decimal value.
GD92/GM92 allows two differential pressure input devices of different
ranges that provides a higher accuracy over a wider range.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

2.3.1.19 Differential Pressure 2 3X Pointer or 4X Register (4x +9)


You may select to gather static pressure data from either analog input
devices via 3X registers or use input value. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+9) is the input value for
differential pressure 2. When Input Register Type (4X +4 bits 7 ... 8) is
1 this register (4X+9) is a pointer to the 3X address used for the
differential pressure 2 input. For 30005 the entry for differential
pressure 2 3X pointer or input value would be 5. You MUST enter the
register pointer for static pressure as an unsigned decimal value.
GD92/GM92 allows two differential pressure input devices of different
ranges that provides a higher accuracy over a wider range.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

2.3.1.20 Analog Input Raw Value Minimum Temperature (4x +10)


This is the lower limit (raw value) of the temperature input device
(read from the analog input module). You MUST enter the raw value
minimum for the temperature input device as a decimal unsigned
integer value.

Reference: None

56 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
2.3.1.21 Analog Input Raw Value Maximum Temperature (4x +11)
This is the upper limit (raw value) of the temperature input device
(read from the analog input module). You MUST enter the raw value
maximum for the temperature input device as a decimal unsigned
integer value.

Reference: None

2.3.1.22 Analog Input Raw Value Minimum Pressure (4x +12)


This is the lower limit (raw value) of the static pressure input device
(read from the analog input module). You MUST enter the raw value
minimum for the static pressure input device as a decimal signed
integer value.

Reference: None

2.3.1.23 Analog Input Raw Value Maximum Pressure (4x +13)


This is the upper limit (raw value) of the static pressure input device
(read from the analog input module). You MUST enter the raw value
maximum for the static pressure input device as a decimal signed
integer value.

Reference: None

2.3.1.24 Analog Input Raw Value Minimum Differential Pressure 1 (4x +14)
This is the lower limit (raw value) of the differential pressure 1 input
device (read from the analog input module). You MUST enter the raw
value minimum for the differential pressure 1 input device as a decimal
signed integer value.

Reference: None

2.3.1.25 Analog Input Raw Value Maximum Differential Pressure 1 (4x +15)
This is the upper limit (raw value) of the differential pressure 1 input
device (read from the analog input module). You MUST enter the raw
value maximum for the differential pressure 1 input device as a
decimal signed integer value.

Reference: None

2.3.1.26 Analog Input Raw Value Minimum Differential Pressure 2 (4x +16)
This is the lower limit (raw value) of the differential pressure 2 input
device (read from the analog input module). You MUST enter the raw
value minimum for the differential pressure 2 input device as a decimal
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 57
signed integer value.

Reference: None

2.3.1.27 Analog Input Raw Value Maximum Differential Pressure 2 (4x +17)
This is the upper limit (raw value) of the differential pressure 2 input
device (read from the analog input module). You MUST enter the raw
value maximum for the differential pressure 2 input device as a
decimal signed integer value.

Reference: None

2.3.1.28 Engineering Unit Temperature Minimum (4x +18 ... 19)


This is the lower limit (°F or°C value) of the temperature input device
(read from the analog input module) in engineering units. You MUST
enter the engineering unit scale minimum for temperature input device
as a floating point number.

Reference: None

2.3.1.29 Engineering Unit Temperature Maximum (4x +20 ... 21)


This is the upper limit (°F or°C value) of the temperature input device
(read from the analog input module) in engineering units. You MUST
enter the engineering unit scale maximum for temperature input
device as a floating point number.

Reference: None

2.3.1.30 Engineering Unit Pressure Minimum (4x +22 ... 23)


This is the lower limit (PSIA or kPa) of the pressure input device (read
from the analog input module) in engineering units. You MUST enter
the engineering unit scale minimum for pressure input device as a
floating point number. This entry is the absolute pressure. When
gauge pressure is required you MUST enter the atmospheric pressure
(if it is a constant) plus the minimum EU. For example, if the
atmospheric pressure is 14.73 and the EU minimum is 0, then 14.73
+0=14.73. Thus, the entry would be 14.73.

Reference: None

2.3.1.31 Engineering Unit Pressure Maximum (4x +24 ... 25)


This is the upper limit (PSIA or kPa) of the pressure input device (read
from the analog input module) in engineering units. You MUST enter
the engineering unit scale maximum for pressure input device as a

58 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
floating point number. This entry is the absolute pressure. When
gauge pressure is required you MUST enter the atmospheric pressure
(if it is a constant) plus the maximum EU. For example, if the
atmospheric pressure is 14.73 and the EU maximum is 100, then 14.73
+100=114.73. Thus, the entry would be 14.73.

Reference: None

2.3.1.32 Engineering Unit Differential Pressure 1 Minimum (4x +26 ... 27)
This is the lower limit (inches H2O or kPa) of the differential pressure 1
input device (read from the analog input module) in engineering units.
You MUST enter the engineering unit scale minimum for differential
pressure 1 input device as a floating point number.

Reference: None

2.3.1.33 Engineering Unit Differential Pressure 1 Maximum (4x +28 ... 29)
This is the upper limit (inches H2O or kPa) of the differential pressure
1 input device (read from the analog input module) in engineering
units. You MUST enter the engineering unit scale maximum for
differential pressure 1 input device as a floating point number.

Reference: None

2.3.1.34 Engineering Unit Differential Pressure 2 Minimum (4x +30 ... 31)
This is the lower limit (inches H2O or kPa) of the differential pressure 2
input device (read from the analog input module) in engineering units.
You MUST enter the engineering unit scale minimum for differential
pressure 2 input device as a floating point number.

Reference: None

2.3.1.35 Engineering Unit Differential Pressure 2 Maximum (4x +32 ... 33)
This is the upper limit (inches H2O or kPa) of the differential pressure
2 input device (read from the analog input module) in engineering
units. You MUST enter the engineering unit scale maximum for
differential pressure 2 input device as a floating point number.

Reference: None

2.3.1.36 Orifice Plate Diameter, dr (4x +34 ... 35)


The orifice plate bore diameter (measured at reference temperature),
dr=inches or mm and MUST be entered as a floating point number.
The valid entry range is 0.45<dr<Dr, the Meter Tube Internal Diameter

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 59
(Section 2.3.1.38)

Reference: AGA#3, pp8, formula#3-9

2.3.1.37 Orifice Plate Diameter Measurement Temperature, Tdm (4x +36 ... 37)
The measured orifice plate bore diameter temperature, Tdm[=]°F or (°C)
and MUST be entered as a floating point number. The valid entry
range is 2.0<Tdm<100.0.

Reference: AGA#3, pp8, formula#3-9

2.3.1.38 Meter Tube Internal Diameter, Dr (4x +38 ... 39)


The meter tube internal diameter calculated at reference temperature,
Dr[=]in or (mm) and MUST be entered as a floating point number. The
valid entry range is 0.0<Dr<100.0.

Reference: AGA#3, pp8, formula#3-10

2.3.1.39 Measured Meter Tube Internal Diameter Temperature, Tdm (4x


+40 ... 41)
The measured meter tube internal diameter temperature, Tdm[=]°F or
(°C) and MUST be entered as a floating point number. The valid entry
range is 2.0<Tdm<100.0.

Reference: AGA#3, pp8, formula#3-10

2.3.1.40 Base Temperature, Tb (4x +42 ... 43)


The base temperature, Tb[=]°F or (°C) and MUST be entered as a
floating point number. The valid entry range is 32.0<Tb<77.0.

Reference: AGA#8, pp11, formula#7

2.3.1.41 Base Pressure, Pb (4x +44 ... 45)


The base pressure, Pb[=]PSIA or (kPa A) and MUST be entered as a
floating point number. The valid entry range is 13.0<Pb<16.0.

Reference: AGA#8, pp11, formula#7

2.3.1.42 Reference Temperature for Relative Density, Tgr (4x +46 ... 47)
The reference temperature for relative density, Tgr[=]°F or (°C) and
MUST be entered as a floating point number. The valid entry range is
32.0<Tgr<77.0.

Reference: AGA#8, pp12, formula#9


60 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
2.3.1.43 Reference Pressure for Relative Density, Pgr (4x +48 ... 49)
The reference pressure for relative density, Pgr[=]PSIA or (kPa A) and
MUST be entered as a floating point number. The valid entry range is
13.0<Pgr<16.0.

Reference: AGA#8, pp12, formula#9

2.3.1.44 User Input Correction Factor, Fu (4x +58 ... 59)


The user input calibration factor, Fu MUST be entered as a floating
point number. The valid entry range is 0.0<Fu<2.0. Use this variable
cautiously, as the calculated volume deviates proportionally to this
factor. Also, when no information is available about correction factors,
set this variable to 1.

Reference: AGA#8, pp136, formula#C.4.5

2.3.1.45 Absolute Viscosity of Flowing Fluid, cP (4x +60 ... 61)


The absolute viscosity of flowing fluid, cP MUST be entered as a
floating point number. The valid entry range is 0.005<cP<0.5.

Reference: AGA#3, pp10, formula#3-23

2.3.1.46 Isentropic Exponent, k (4x +62 ... 63)


The isentropic exponent, k MUST be entered as a floating point
number. The valid entry range is 1.0<k<2.0. The recommended value
per the standard is 1.3.

Reference: AGA#3, pp12, formula#3-32

2.3.1.47 Beginning of Day Hour (4x +64)


Denotes the hour of the day to start calculation of daily values. The
valid entry range is 0 ... 23.

Reference: None

2.3.1.48 Reserved for Future Use (4x +65 ... 82)


These bits are reserved for future use, and therefore may not be used.

Reference: None

2.3.1.49 Mole Percentages, Xi (4x +83 ... 124)


This value is the mole percentages for all twenty-one possible gas
components.

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 61
Reference: AGA#8, pp17, formula#12

2.3.2 Gas Flow Configuration Output Table


The following is a detailed description of each of the output variables
from the GD92/GM92 gas flow instruction block.

2.3.2.1 System Warning/Error Codes (4x + 0)


This field displays a fault code generated by the Gas Flow block. A
complete list is shown in the table below. System warning codes do
NOT halt the calculation. In contrast, system error codes DO halt the
calculation. When a system or program warning is detected by the
block the middle output turns ON. When a system or program error is
detected by the block the bottom output turns ON. Refer to the first DX
Zoom screen to view the system warning/error codes detected by the
Gas Flow Block.

System Warning/Error Codes (4x + 0)


Displayed Type of Description
Code Code
0101 Hex Warning Hardware enabler is missing. Gas
flow only operates for 48 hours
without enabler present, 60 se-
conds when enabler present then
removed. Please insert the hard-
ware enabler.
0201 Hex Error Engineering Units min. is > Engi-
neering Units max. on temperature,
pressure or differential pressure.
0202 Hex Error Raw value min. = raw value max.
on temperature, pressure or differ-
ential pressure.
0301 Hex Error Hardware enabler is missing, gas
flow blocks stop solving.
0302 Hex Error Create a second meter attempted
on a single meter function block.
0303 Hex Error Time of day clock not configured, or
TOD clock 4X registers being over-
written.
0304 Hex Error Optional outputs are selected and
the table length specified in the bot-
tom node of the gas block is <180,
or when optional outputs are off it is
<155.
FFXX Hex Error System error. Please contact Modi-
con Technical Support.

62 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
0401 Hex Error Insufficient amount of heap memory
to run ANY meter, or PLC is not
compatible.
0402 Hex Error Not enough heap memory.

2.3.2.2 Program Warning/Error Codes (4x + 1)


This field displays a fault code generated by the Gas Flow block. A
complete list is shown in the table below. Program warning codes do
NOT halt the calculation. In contrast, program error codes DO halt the
calculation. When a system or program warning is detected by the
block the middle output turns ON. When a system or program error is
detected by the block the bottom output turns ON. Refer to the first DX
Zoom screen to view the program warning/error codes detected by the
Gas Flow Block.

Program Warning/Error Code (4x + 1)


Displayed Type of Description
Code Code
1 Warning Pressure has a negative derivative.
2 Warning Density calculated exceeds the
maximum, and the gas density de-
fault is used.
3 Warning Number of iterations to bracket the
density has exceeded the maxi-
mum.
4 Warning Number of iterations to obtain the
density has exceeded the maxi-
mum.
36 Warning Mole percent exceeds limits.
Warning only occurs when the mole
percent limits are disabled. Refer to
Error 136 for valid limits.
42 Warning Pressure is <0.0 or >1750 psia
(<0.0 or >12, 065.82 kPa)
43 Warning Temperature is <17 or >143
(<-8.334>61.667°°C)

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 63
46 Warning Methane < 45 or > 100
Nitrogen > 50
Carbon Dioxide < 0.0 or >30
Ethane > 10
Propane > 4
Water > 0.05
Hydrogen Sulfide > 0.02
Hydrogen > 10
Carbon Monoxide >3
Oxygen >0
Butanes > 1
Pentanes > 0.3
Hexanes+ > 0.2
Helium > 0.2
Argon >0
49 Warning Sum of mole % are <99.99 or >
100.01
75 Warning Orifice diameter is < 0.45 in
(11.44mm)
76 Warning Pipe diameter is <= 2.0 in
79 Warning Beta ratio => 0.75
132 Error Pressure Engineering Units min. or
max. is specified as < 0.0 or >
40,000 psia (<0.0 or >
275,790.78kPa) or measured pres-
sure is <=0.0 or > 40,000 PSIA
133 Error Temperature Engineering Units min.
or max. is specified as < -200 or >
760°°F (<-128.89 or > 404.444°°C) or
measured pressure is <=0.0 or >
40,000 PSIA
136 Error Methane < 0.0 or > 100
Nitrogen < 0.0 or > 100
Carbon Dioxide < 0.0 or >100
Ethane < 0.0 or > 100
Propane < 0.0 or > 12
Water < 0.0 or > 10
Hydrogen Sulfide < 0.0 or > 100
Hydrogen < 0.0 or >100
Carbon Monoxide < 0.0 or > 3
Oxygen < 0.0 or > 21
Butanes < 0.0 or > 6
Pentanes < 0.0 or > 4
Hexanes+< 0.0 or > 10
Helium < 0.0 or > 3
Argon < 0.0 or > 100
137 Error Reference temperature or base
temperature< 32.0 or > 77°°F (<0 or
> 25°°C)
138 Error Reference pressure or base pres-
sure< 13.0 or >16.0 psia (<89.63 or
> 110.32 kPa)
139 Error Sum of mole % < 98 or > 102
154 Error Pipe or orifice material is NOT 1,2
or 3

64 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
155 Error Orifice diameter is <=0 or => 100.0
in (<=0 or=> 2540mm)
156 Error Pipe diameter is <=0 or => 100.0 in
(<=0 or=> 2540mm)
157 Error Flowing or base density is <= 0.0
Ibm/ft3 (<=0.0kg/m3)
158 Error Differential pressure Engineering
Units min. is specified as < 0.0 in
H2O (<0.0kPa) or measured differ-
ential pressure is <=0.0 lbm/ft3
(<=0.0kg/m3)
159 Error Absolute viscosity is < 0.005 or >
0.5 cP
160 Error Isentropic exponent < 1.0 or > 2.0
161 Error Compressible/Incompressible is set
to something other than 1 or 2
164 Error Tap location is NOT 1 for upstream
or 2 for downstream
165 Error Supercompressibility is <= 0.0
166 Error Relative density at standard condi-
tions are < 0.07 or > 1.52
167 Error Calibration factor is < = 0.0 or > 2.0
168 Error Compressibility factor at standard
conditions is <= 0.0
169 Error Beta ratio <= 0.0 or => 1.0
170 Error Dm <= 0.0
186 Error Optional outputs not 1 or 2
190 Error Orifice diameter measurement tem-
perature or Tube internal diameter
measurement temperature
32<Tr<=77°° F (0<Tr<=25°° C)
193 Error Input register type not set to 1 for
3X pointer or 2 for 4X register
194 Error Mole percent limits not set to 1 for
enable or 2 for disable
195 Error Continue to accumulate on error is
not set to1 for enable or 2 for dis-
able
196 Error Measurement units not set to 1 for
US or to 2 for metric (SI)
197 Error Differential pressure is > flowing
pressure
198 Error Dual range differential pressure not
1 or 2
199 Error Entered ranges into 4X registers
are not valid or input registers for
dual range differential pressure is
incorrect

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 65
2.3.2.3 Version Number (4x +2)
Displays the current revision number of Gas Flow block. This number
is automatically loaded by the block and the block over writes any other
number entered into this register.

2.3.2.4 Temperature at Flowing Conditions, Tf (4x +125 ... 126)


This value is the temperature at fluid flowing conditions Tf[=]°F or (°C).

Reference: AGA#3, pp5, formula#3-2

2.3.2.5 Pressure, Pf (4x +127 ... 128)


This value is the static pressure of fluid at pressure tap Pf[=]PSIA or
(kPa A).

Reference: AGA#3, pp5, formula#3-2

2.3.2.6 Differential Pressure, hw (4x +129 ... 130)


This value is the orifice differential pressure hw[=]in H2O or (kPa A).

Reference: AGA#3, pp12, formula#3-30

2.3.2.7 Integral Value, IV (4x +131 ... 132)


This value is the integral value IV.

Reference: API#21, pp6, formula#1.4.2.5

2.3.2.8 Volume Flow Rate at Base Conditions, (Tb,Pb), Qb (4x +135 ... 136)
This value is the volume flow rate at base conditions value Qb[=]ft3/hr
or (m3/hr).

Reference: AGA#3, pp7, formula#3-7

2.3.2.9 Mass Flow Rate, Qm (4x +137 ... 138)


This value is the mass flow rate per hour value Qm[=]lbm/hr or (kg/hr).

Reference: AGA#3, pp7, formula#3-3

66 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
2.3.2.10 Accumulated Volume Current Hour, (4x +139 ... 140)
This value is the volume that has accumulated for the last running
hour in Sft3 or (Sm3). This value is reset every hour.

Reference: None

2.3.2.11 Accumulated Volume Last Hour, (4x +141 ... 142)


This value is the volume that has accumulated during the last hour in
Sft3 or (Sm3). This value is reset every hour to the current
accumulated volume at the end/beginning of every hour.

Reference: None

2.3.2.12 Accumulated Volume Last Day, (4x +143 ... 144)


This value is the volume that has accumulated during the last day in
Sft3 or (Sm3). This value is reset every day to the sum of the previous
twenty-four hours of accumulated volume.

Reference: None

2.3.2.13 Average Temperature Last Day, (4x +145 ... 146)


This value is the average temperature for the last day in °F or (°C).
This value is reset every day to the arithmetic average of the
twenty-four hourly averages of temperature obtained.

Reference: None

2.3.2.14 Average Pressure Last Day, (4x +147 ... 148)


This value is the average static pressure for the last day in PSIA or
(kPa A). This value is reset every day to the arithmetic average of the
twenty-four hourly averages of static pressure obtained.

Reference: None

2.3.2.15 Average Differential Pressure Last Day, (4x +149 ... 150)
This value is the average differential pressure for the last day in H2O
or (kPa A). This value is reset every day to the arithmetic average of
the twenty-four hourly averages of differential pressure obtained.

Reference: None

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 67
2.3.2.16 Average IV Last Day (4x +151 ... 152)
This value is the integral value for the last day. This value is reset
every day to the arithmetic average of the twenty-four hourly averages
of volume flow rates obtained.

Reference: None

2.3.2.17 Average Volume Flow Rate at Base Conditions Last Day,Tb,Pb (4x
+153 ... 154)
This value is the average volume flow rate for the last day in ft3/hr or
(m3/hr). This value is reset every day to the arithmetic average of the
twenty-four hourly averages of volume flow rates obtained.

Reference: None

2.3.2.18 Reserved for Future Use (4x +155 1 ... 13)


These bits are reserved for future use, and therefore may not be used.

Reference: None

2.3.2.19 Block is Functioning Heartbeat (4x +155: 14)


This heartbeat occurs once per second when the flow block is
functioning correctly. When the flow block is not functioning properly
the heartbeat stops.

Reference: None

2.3.2.20 Flow Rate Solve Complete Heartbeat (4x +155: 15)


This bit goes on each time the flow block completes one solve. When
this bit is not toggling between 0 and 1, the block is not solving the flow
equation.

Reference: None

2.3.2.21 End of Day (4x +155: 16)


This bit goes on for one scan when the block resets the daily
accumulators. This bit may be monitored for peripheral control in the
program.

Reference: None

Note: This bit does not appear in the DX Zoom screen, but, may be
used in program logic peripheral to the gas flow block.

68 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
2.3.3 Gas Flow Configuration Optional Output Table
The following is a detailed description of each of the optional output
variables from the GD92/GM92 gas flow instruction block.

2.3.3.1 Compressibility at Flowing Conditions, (Tf,Pf) Zf (4x +156 ... 157)


This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#8, pp7, formula#12

2.3.3.2 Compressibility at Base Conditions, (Tb,Pb) Zb (4x +158 ... 159)


This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#3, pp7, formula#3-7

2.3.3.3 Compressibility at Standard Conditions, (Ts,Ps) Zs (4x +160 ... 161)


This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#3, pp7, formula#3-7

2.3.3.4 Density at Fluid Flowing Conditions, rt,p (4x +162 ... 163)
This value rt,p[=]lbm/ft3 or (kg/m3) is calculated by GD92/GM92 gas flow
instruction block.

Reference: AGA#3, pp6, formula#3 4a

2.3.3.5 Density of a Fluid at Base Conditions, rb (4x +164 ... 165)


This value rb[=]lbm/ft3 or (kg/m3) is calculated by GD92/GM92 gas flow
instruction block.

Reference: AGA#3, pp6, formula#3 4b

2.3.3.6 Supercompressibility, Fpv (4x +166 ... 167)


This value is calculated by GD92/GM92 gas flow instruction block.

Reference: None

2.3.3.7 Gas Relative Density, Gr (4x +168 ... 169)


This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#8, pp132, formula#C.3.10

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 69
2.3.3.8 Orifice Plate Coefficient of Discharge, Cd (4x +170 ... 171)
This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#3, pp9, formula#3-11

2.3.3.9 Expansion Factor, Y (4x +172 ... 173)


This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#3, pp82, formula#3-D-13

2.3.3.10 Velocity of Approach Factor, Ev (4x +174 ... 175)


This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#3, pp10, formula#3-22

2.3.3.11 Reserved for Future Use (4x +176 ... 177)


This register is reserved for future use, and therefore may not be used.

Reference: None

2.3.3.12 Reserved for Future Use (4x +178 ... 179)


This register is reserved for future use, and therefore may not be used.

Reference: None

2.3.3.13 Orifice Plate Coefficient of Discharge Bounds Flag within Iteration


Scheme, Cd_f (4x +180)
This value is calculated by GD92/GM92 gas flow instruction block.

Reference: AGA#3, pp30, formula#4-44

70 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
2.4 Possible Configuration Examples for the
Gas Flow Block

Using the inputs given with the GD92/GM92 instruction block you
should obtain the same outputs as noted below for the examples that
calculates a volumetric flow rate. They may be used to: troubleshoot,
measure accuracy, compare different inputs and how they affect the
flow rate.

2.4.1 Example 1 with US Units

Figure 20 DX Zoom Screen 1

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 71
Figure 21 DX Zoom Screen 2

Figure 22 DX Zoom Screen 3

72 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 23 DX Zoom Screen 4

Figure 24 DX Zoom Screen 5

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 73
Figure 25 DX Zoom Screen 6

Figure 26 DX Zoom Screen 7

74 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 27 DX Zoom Screen 8

Figure 28 DX Zoom Screen 9

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 75
Figure 29 DX Zoom Screen 10

Figure 30 DX Zoom Screen 11

76 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
2.4.2 Example 2 with Metric Units

Figure 31 DX Zoom Screen 1

Figure 32 DX Zoom Screen 2

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 77
Figure 33 DX Zoom Screen 3

Figure 34 DX Zoom Screen 4

78 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 35 DX Zoom Screen 5

Figure 36 DX Zoom Screen 6

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 79
Figure 37 DX Zoom Screen 7

Figure 38 DX Zoom Screen 8

80 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 39 DX Zoom Screen 9

Figure 40 DX Zoom Screen 10

890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 81
Figure 41 DX Zoom Screen 11

82 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Chapter 3
G392 AGA#3 1992 Gas Flow
Function Block

V Gas Flow Instruction Block

V DX Zoom Screens

V Gas Flow Configuration Table

V Possible Configuration Examples for the Gas Flow Block

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 83
3.1 Gas Flow Instruction Block

3.1.1 Characteristics

3.1.1.1 Size
Three nodes high

3.1.1.2 PLC Compatibility


V Compact PLCs: PC-A984-141, and PC-A984-145 (with no execu-
tive).

V Compact PLCs: PC-E984-241, PC-E984-245, PC-E984-251, and


PC-E984-255 (with 1.02 executive or higher).

V Micro PLCs: 110 CPU 612 04 (with 1.00 executive or higher).

3.1.1.3 Opcode
1f hex for G392.EXE file.

3.1.2 Representation

3.1.2.1 Block Structure

Start operation #0001 Operation is active

Not used 4xxxx System or Program


Warning
G392
Not used System or Program
length Error

Inputs
G392 Gas Flow Block has one control input. The input to the top node
starts the calculation of the gas flow and should remain ON to continue
solving. The calculations are based on your parameters entered into
the input registers.

Outputs
G392 may produce three possible outputs. The outputs from the top
node goes ON while a G392 operation is in progress. The output from
the middle node goes ON when G392 has detected a system or program
84 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
warning. The output from the bottom node goes ON when G392 has
detected a system or program error. Refer to Section 3.3.2.1 for system
warning/error codes (4x+0), and to Section 3.3.2.2 for program
warning/error codes (4x+1).

Top Node Content


The top node must contain a constant (#0001).
Middle Node Content
The 4x register entered in the middle node is the first in a group of
contiguous holding registers that comprise the configuration
parameters and values associated with the Gas Flow Block. Refer to
Section 3.1.3.1.

Warning! Do not attempt to change the middle node 4x


register while the Gas Flow Block is running. You will lose
your data and generate an error 302. If you need to change
the 4x register, first STOP the PLC.

Bottom Node Content


The integer value entered in the bottom node specifies the length—i.e.,
the maximum number of registers—in the data area. The length must
contain a constant. This is the number of registers used by the Gas
Flow Block. When using only the standard outputs (see Section 3.1.3.2)
the constant is 157. When using the optional outputs (see Section
3.1.3.3) the constant is 181.

3.1.3 G392 Configuration Table


You MUST fill in all pertinent values in the configuration table using
either the reference data editor in Modsoft, or the DX Zoom screens in
Modsoft, or Meter Manager (offered by Starling Associates) refer to
Appendix A. The following three tables (inputs, outputs and optional
outputs) lists all of the configuration parameters that MUST be filled
in. Some of these variables use multiple registers to hold the specific
configuration parameters required. Refer to Section 3.1.3.1, Section
3.1.3.2, and Section 3.1.3.3 below.

Warning! Only valid entries are allowed; entries outside the


valid ranges are not accepted in either Modsoft or Meter
Manager. Illegal entries result in errors or warnings.

To run the DX Zoom configuration refer to Section 3.2. When using


Meter Manager refer to its user manual provided by Starling
Associates, Inc.
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 85
3.1.3.1 Inputs
G392 Gas Flow Configuration Table Description
Inputs Description
4x+3: 1 ... 2 Location of Taps: 1=Upstream, 2=Downstream
4x+3: 3 ... 4 Meter Tube Material: 1=Stainless Steel, 2=Monel, 3=Carbon Steel
4x+3: 5 ... 6 Orifice Material: 1=Stainless Steel, 2=Monel, 3=Carbon Steel
4x+3: 7 ... 8 Reserved for Future Use (Do not use)
4x+3: 9 ... 10 Optional Outputs: 1=Yes, 2=No
4x+3: 11 ... 16 Reserved for Future Use (Do not use)
4x+4: 1 ... 4 Reserved for Future Use (Do not use)
4x+4: 5 ... 6 Continue Accumulation on Error
4x+4: 7 ... 8 Input Register Type: 1=3X Pointer, 2=4X
4x+4: 9 ... 10 Reserved for Future Use
4x+4: 11 ... 12 Dual Range Differential Pressure Option: 1=Yes, 2=No
4x+4: 13 ... 14 Compressible/Incompressible: 1=Compressible, 2=Incompressible
4x+4: 15 ... 16 Averaging Methods: 0=Flow Dependent Time Weighted, 1=Flow Dependent Time
Weighted Formulaic, 2=Flow Weighted Linear Formulaic, 3=Flow Weighted Linear
Formulaic
4x+5: 1 ... 2 Measurement Units: 1=US, 2=Metric (SI)
4x+5: 3 ... 16 Reserved for Future Use (Do not use)
4x+6 Temperature 3X Pointer or 4X Register
4x+7 Pressure (absolute) 3X Pointer or 4X Register
4x+8 Differential Pressure 1 3X Pointer or 4X Register
4x+9 Differential Pressure 2 3X Pointer or 4X Register
4x+10 Analog Input Raw Value Minimum Temperature
4x+11 Analog Input Raw Value Maximum Temperature
4x+12 Analog Input Raw Value Minimum Pressure
4x+13 Analog Input Raw Value Maximum Pressure
4x+14 Analog Input Raw Value Minimum Differential Pressure 1
4x+15 Analog Input Raw Value Maximum Differential Pressure 1
4x+16 Analog Input Raw Value Minimum Differential Pressure 2
4x+17 Analog Input Raw Value Maximum Differential Pressure 2
4x+18 ... 19 Engineering Unit Temperature Minimum -200 ... 760°°F (-128.89 ... 404.4°°C)
4x+20 ... 21 Engineering Unit Temperature Maximum -200 ... 760°°F (-128.89 ... 404.4°°C)
4x+22 ... 23 Engineering Unit Pressure Minimum 0 ... 40,000psia (0 ... 275,790.28kPa)
4x+24 ... 25 Engineering Unit Pressure Maximum 0 ... 40,000psia (0 ... 275,790.28kPa)
4x+26 ... 27 Engineering Unit Differential Pressure 1 Minimum <=0
4x+28 ... 29 Engineering Unit Differential Pressure 1 Maximum <0
4x+30 ... 31 Engineering Unit Differential Pressure 2 Minimum <=0

86 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
4x+32 ... 33 Engineering Unit Differential Pressure 2 Maximum <0
4x+34 ... 35 Orifice Plate Diameter, dr (.45<dr<100in) (11.43<dr<2540mm)
4x+36 ... 37 Orifice Plate Diameter Measurement Temperature, Tr (32<Tr<77°°F) (0<Tr<25°°C)
4x+38 ... 39 Meter Tube Internal Diameter, Dr (0<Dr<100in) (0<dr<2540mm)
4x+40 ... 41 Meter Tube Diameter Measurement Temperature, Tr (32<Tr<77°°F) (0<Tr<25°°C)
4x+42 ... 43 Base Temperature, Tb (32.0<Tb<77.0°°F) (0<Tb<25°°C)
4x+44 ... 45 Base Pressure, Pb (13.0<Pb<16.0PSIA) (89.63<Pb<110.32kPa)
4x+46 ... 47 Reserved for Future Use (Do not use)
4x+48 ... 57 Reserved for Future Use (Do not use)
4x+58 ... 59 User Input Correction Factor, Fu (0<Fu<2.0)
4x+60 ... 61 Absolute Viscosity of Flowing Fluid, cP (0.005<=cP<=0.5)
4x+62 ... 63 Isentropic Exponent, k (1.0<=k<=2.0)
4x+64 Beginning of Day Hour, (0 ... 23)
4x+65 ... 82 Reserved for Future Use (Do not use)
4x+83 ... 84 Density at Flowing Conditions, (rf) (0<rf<=100.0lbm/ft3) (0< rf<=1601.846kg/m3)
4x+85 ... 86 Density at Base Conditions (rb)(0<rb<=100.0lbm/ft3) (0< rb<=1601.846kg/m3)
4x+87 ... 88 Compressibility Factor at Flowing Conditions (Zf) (0<Zf<=3)
4x+89 ... 90 Compressibility Factor at Base Conditions (Zb) (0<Zb<=3)
4x+91 ... 92 Gas Relative Density at Base Conditions (Gr) (0.07<=Gr<=1.52)
4x+93 ... 124 Reserved for Future Use (Do not use)

3.1.3.2 Outputs
G392 Gas Flow Configuration Table Description
Outputs Description
4x+0 System Warning/Error Code
4x+1 Program Warning/Error Code
4x+2 Version Number
4x+125 ... 126 Temperature at Flowing Conditions, Tf
4x+127 ... 128 Pressure, Pf
4x+129 ... 130 Differential Pressure, hw
4x+131 ... 132 Integral Value, IV
4x+133 ... 134 Integral Multiplying Value, IMV
4x+135 ... 136 Volume Flow Rate at Base Conditions, (Tb,Pb), Qb
4x+137 ... 138 Mass Flow Rate, Qm
4x+139 ... 140 Accumulated Volume Current Hour
4x+141 ... 142 Accumulated Volume Last Hour
4x+143 ... 144 Accumulated Volume Last Day

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 87
4x+145 ... 146 Average Temperature Last Day
4x+147 ... 148 Average Pressure Last Day
4x+149 ... 150 Average Differential Pressure Last Day
4x+151 ... 152 Average IV Last Day
4x+153 ... 154 Average Volume Flow Rate at Base Conditions (Tb,Pb) for the Last Day
4x+155: Reserved for Future Use (Do not use)
1 ... 13
4x+155: 14 Block is Functioning Heartbeat
4x+155: 15 Flow Rate Solve Complete Heartbeat
4x+155: 16 End of Day Flag (NOTE: This status bit does not appear in the DX Zoom screen but may be used in pro-
gram logic).

3.1.3.3 Optional Outputs


G392Gas Flow Configuration Table Description
Optional Description
Outputs
4x+156 ... 157 Compressibility at Flowing Conditions (Tf,Pf), Zf
4x+158 ... 159 Compressibility at Base Conditions (Tb,Pb), Zb
4x+160 ... 161 Compressibility at Standard Conditions (Ts,Ps), Zs
4x+162 ... 163 Density at Fluid Flowing Conditions, Pt,p
4x+164 ... 165 Density of Fluid at Base Conditions, r
4x+166 ... 167 Supercompressibility (), Fpv
4x+168 ... 169 Gas Relative Density, Gr
4x+170 ... 171 Orifice Plate Coefficient of Discharge, Cd
4x+172 ... 173 Expansion Factor, Y
4x+174 ... 175 Velocity of Approach Factor, Ev
4x+176 ... 177 Reserved for Future Use (Do not use)
4x+178 ... 179 Reserved for Future Use (Do not use)
4x+180 Orifice Plate Coefficient of Discharge Bounds Flag within Iteration Scheme, Cd f

88 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.2 DX Zoom Screens

Assuming you have already loaded Gxxx.EXE files into Modsoft.

Step 1 Choose the G392 Loadable now.

Step 2 Place your cursor onto the top node of the Gas block and type #0001
and press enter.

Step 3 Place your cursor onto the middle node of the Gas block and enter
your 4x register and press enter.

Step 4 Place your cursor onto the bottom node of the Gas block and type
#157 or #181 and press enter.

Step 5 Place your cursor onto the Gas Flow Block and hit ALTZ to pull-up
the Gas Flow zoom screens. At this point you may set your parame-
ters based upon your application and the details of the Gas Flow
Block found in Gas Flow Configuration Table, Section 3.3.

Step 6 Enter the required information into the following 11 DX Zoom screens.

Note: You may wish to refer to Section 3.4 for possible configuration
examples for the G392 Block.

Note: To access the help screen for the G392 Block place your cursor
on the G392 Block and hit ALTH.

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 89
Figure 42 G392 Zoom Screen 1 of 11

Figure 43 G392 Zoom Screen 2 of 11

90 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 44 G392 Zoom Screen 3 of 11

Figure 45 G392 Zoom Screen 4 of 11

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 91
Figure 46 G392 Zoom Screen 5 of 11

Figure 47 G392 Zoom Screen 6 of 11

92 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 48 G392 Zoom Screen 7 of 11

Figure 49 G392 Zoom Screen 8 of 11

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 93
Figure 50 G392 Zoom Screen 9 of 11

Figure 51 G392 Zoom Screen 10 of 11

94 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 52 G392 Zoom Screen 11 of 11

Tip: We recommend you review your data entered in the 11 DX


Zoom screens.

Step 7 Hit Escape twice to return to the Segment Status Display Screen,
then select Save (F7) to save changes.

Step 8 Hit Escape twice to return to the main Modsoft screen.

Step 9 Select Transfer (F5), then File to PLC (F3) and hit return.

Step 10 Confirm the name of the program file. If correct hit return.

Step 11 A message appears asking you to stop the PLC. Enter Y and hit re-
turn. A screen message appears during the transfer.

Step 12 A message appears asking you to start the PLC. Enter Y and hit re-
turn.

Step 13 Modsoft automatically defaults to the Controller Status Information


Screen. Note in the upper right hand side, second item, Status: Run-
ning.

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 95
Step 14 Hit Return then Escape twice. Then select Online (F3), Select Pro-
gram.

Step 15 From the Segment Status Display Screen select PlcOps (F2), then
Start (F1). A message appears asking you to confirm; enter Y.

Step 16 Select Set Hardware Clock (F9). A message appears asking you to
write panel clock data to PLC; enter Y, then hit return twice.

Step 17 From the Segment Status Display Screen select Stop (F2). A message
appears asking you to confirm; enter Y.

Step 18 From the Segment Status Display Screen select Start (F1). A message
appears asking you to confirm; enter Y. The Controller Status In-
formation Screen automatically appears.

96 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.3 Gas Flow Configuration Table

The following is a detailed description of each of the configuration


variables for the G392 gas flow instruction block: input, output and
optional output variables. When applicable, the reference publication,
page number, and formula number are provided noting where this
variable may be found. AGA#3 refers to AGA Report No.3, Part 3, 1992
(aka GPA 8185, Part 3; ANSI/API 2530-1991). AGA#8 refers to AGA
Report No. 8, 1992 (aka API 14.2). API#21 refers to API 21.1, 1993.
AGA stands for the American Gas Association.

3.3.1 Gas Flow Configuration Table (Inputs)


The following is a detailed description of each of the input variables to
the G392/GM92 gas flow instruction block.

3.3.1.1 Location of Taps (4x +3 bits 1 ... 3)


The location of the Taps may be either upstream or downstream. Two
bits are assigned for the input of this variable. Set the variable to 1 for
upstream or 2 for downstream.

Reference None

3.3.1.2 Meter Tube Material (4x +3 bits 3 ... 4)


Construction material of the Meter Tube. The orifice material may be
set to either stainless steel, carbon steel or monel. Two bits are
assigned for the input of this variable. Enter 1 for stainless steel, 2 for
carbon steel, or 3 for monel.

Reference: AGA#3, pp8, formula#3-10

3.3.1.3 Orifice Material (4x +3 bits 5 ... 6)


Construction material of the Orifice Plate. The orifice material may be
set to either stainless steel, carbon steel or monel. Two bits are
assigned for the input of this variable. Enter 1 for stainless steel, 2 for
carbon steel, or 3 for monel.

Reference: AGA#3, pp8, formula#3-10

3.3.1.4 Reserved for Future Use (4x +3 bits 7 ... 8)


These bits are reserved for future use, and therefore may not be used.

Reference: None
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 97
3.3.1.5 Reserved for Future Use (4x +3 bits 9 ... 10)
These bits are reserved for future use, and therefore may not be used.

Reference: None

3.3.1.6 Reserved for Future Use (4x +3 bits 11 ... 16)


These bits are reserved for future use, and therefore may not be used.

Reference: None

3.3.1.7 Reserved for Future Use (4x +4 bits 1 ... 4)


These bits are reserved for future use, and therefore may not be used.

Reference: None

3.3.1.8 Continue Accumulation on Error (4x +4 bits 5 ... 6)


You may select if the block continues to accumulate at the last correct
rate when an error occurs. Simply enter 1 to turn this on or 2 to turn
off. Two bits are assigned to specify this selection.

Reference: None

3.3.1.9 Input Register Type (4x +4 bits 7 ... 8)


You may specify either 3X as pointers or 4X address for the live inputs
(temperature, static pressure and differential pressure). Two bits are
assigned to input this variable. Set the variable to 1 for 3X addresses
and use (4X +6 ... 9) as pointers to the proper 3X addresses, or set to 2
for 4X addresses and use (4X +6 ... 9) to hold the raw value of these
inputs.

Reference: None

3.3.1.10 Mole Percent Error Limits (4x +4 bits 9 ... 10)


You may select to enable or disable error checking for mole percent
limits. Two bits are assigned to input of this variable. Set the variable
to 1 when error detection is desirable, or set to 2 when you need the
values that are outside the AGA#8. The sum of mole percents must
always be 100.

Reference: None

98 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.3.1.11 Dual Range Differential Pressure Option (4x +4 bits 11 ... 12)
To cover a wider range of pressure differential, G392 allows the use of
two staggered range differential pressure measurement devices. You
may specify either single or dual differential pressures scales. Two bits
are assigned for the input of this variable. Set the variable to 1 for two
differential pressure scales, or set to 2 for single differential range.

Reference: None

3.3.1.12 Compressible/Incompressible (4x +4 bits 13 ... 14)


The natural gas you are measuring must be specified as being
compressible incompressible. Two bits are assigned for the input of this
variable. Set the variable to 1 for compressible, or 2 for incompressible.
When a gas is assumed to be incompressible, the expansion factor is
Y=1. Therefore, we recommend setting it to 2 for best results.

Reference: None

3.3.1.13 Averaging Methods (4x +4 bits 15 ... 16)


You may select one of four different averaging methods suggested by
(API21.1). Two bits are assigned for the input of this variable. Set the
variable to 0 for flow dependent time weighted linear averaging
technique, 1 for flow dependent time weighted formulaic averaging
technique, 2 for flow weighted linear averaging technique, or 3 for flow
weighted linear formulaic averaging technique.

Reference: API#21, pp31, formula#2-31

3.3.1.14 Measurement Units (4x +5 bits 1 ... 2)


You may select from two units of measurement. Two bits are assigned
for the input of this variable. Set the variable to 1 for US, or 2 for
Metric (SI). The table below defines the units.

Reference: None

Measurement Units Defined (4X +5 bits 1 .. 2)


Type of Measure- US Metric (SI)
ment
Temperature °F °C
Static pressure psia kPa
Differential pressure Inches of kPa
H2O
Length Inches mm

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 99
Volume SCFD Sm3/D
Mass Lbm/hr kg/D
Density Lbm/ft3 kg/m3
Viscosity cP cP

3.3.1.15 Reserved for Future Use (4x +5 bits 3 ... 16)


These bits are reserved for future use, and therefore may not be used.

Reference: None

3.3.1.16 Temperature 3X Pointer or 4X Register (4x +6)


You may select to gather temperature data from either analog input
devices via 3X registers or use input value. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+6) is the input value for
temperature. When Input Register Type (4X +4 bits 7 ... 8) is 1 this
register (4X+6) is a pointer to the 3X address used for the temperature
input. For 30002 the entry for temperature 3X pointer or input value
would be 2. You MUST enter the register pointer for temperature as an
unsigned decimal value.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

3.3.1.17 Pressure (absolute) 3X Pointer or 4X Register (4x +7)


You may select to gather static pressure data from either analog input
devices via 3X registers or use input value. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+7) is the input value for static
pressure. When Input Register Type (4X +4 bits 7 ... 8) is 1 this register
(4X+7) is a pointer to the 3X address used for the static pressure input.
For 30003 the entry for static pressure pointer or input value would be
3. You MUST enter the register pointer for static pressure as an
unsigned decimal value.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

100 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.3.1.18 Differential Pressure 1 3X Pointer or 4X Register (4x +8)
You may select to gather static pressure data from either analog input
devices via 3X registers or use input value. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+8) is the input value for
differential pressure 1. When Input Register Type (4X +4 bits 7 ... 8) is
1 this register (4X+8) is a pointer to the 3X address used for the
differential pressure 1 input. For 30004 the entry for differential
pressure 1 3X pointer or input value would be 4. You MUST enter the
register pointer for static pressure as an unsigned decimal value. G392
allows two differential pressure input devices of different ranges that
provides a higher accuracy over a wider range.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

3.3.1.19 Differential Pressure 2 3X Pointer or 4X Register (4x +9)


You may select to gather static pressure data from either analog input
devices via 3X registers or use input value. When Input Register Type
(4X +4 bits 7 ... 8) is 2 this register (4X+9) is the input value for
differential pressure 2. When Input Register Type (4X +4 bits 7 ... 8) is
1 this register (4X+9) is a pointer to the 3X address used for the
differential pressure 2 input. For 30005 the entry for differential
pressure 2 3X pointer or input value would be 5. You MUST enter the
register pointer for static pressure as an unsigned decimal value. G392
allows two differential pressure input devices of different ranges that
provides a higher accuracy over a wider range.

Reference: None

Note: Ensure the 3X pointer address selected matches those used in


your Modsoft I/O Map configuration.

3.3.1.20 Analog Input Raw Value Minimum Temperature (4x +10)


This is the lower limit (raw value) of the temperature input device
(read from the analog input module). You MUST enter the raw value
minimum for the temperature input device as a decimal unsigned
integer value.

Reference: None

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 101
3.3.1.21 Analog Input Raw Value Maximum Temperature (4x +11)
This is the upper limit (raw value) of the temperature input device
(read from the analog input module). You MUST enter the raw value
maximum for the temperature input device as a decimal unsigned
integer value.

Reference: None

3.3.1.22 Analog Input Raw Value Minimum Pressure (4x +12)


This is the lower limit (raw value) of the static pressure input device
(read from the analog input module). You MUST enter the raw value
minimum for the static pressure input device as a decimal signed
integer value.

Reference: None

3.3.1.23 Analog Input Raw Value Maximum Pressure (4x +13)


This is the upper limit (raw value) of the static pressure input device
(read from the analog input module). You MUST enter the raw value
maximum for the static pressure input device as a decimal signed
integer value.

Reference: None

3.3.1.24 Analog Input Raw Value Minimum Differential Pressure 1 (4x +14)
This is the lower limit (raw value) of the differential pressure 1 input
device (read from the analog input module). You MUST enter the raw
value minimum for the differential pressure 1 input device as a decimal
signed integer value.

Reference: None

3.3.1.25 Analog Input Raw Value Maximum Differential Pressure 1 (4x +15)
This is the upper limit (raw value) of the differential pressure 1 input
device (read from the analog input module). You MUST enter the raw
value maximum for the differential pressure 1 input device as a
decimal signed integer value.

Reference: None

3.3.1.26 Analog Input Raw Value Minimum Differential Pressure 2 (4x +16)
This is the lower limit (raw value) of the differential pressure 2 input
device (read from the analog input module). You MUST enter the raw
value minimum for the differential pressure 2 input device as a decimal

102 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
signed integer value.

Reference: None

3.3.1.27 Analog Input Raw Value Maximum Differential Pressure 2 (4x +17)
This is the upper limit (raw value) of the differential pressure 2 input
device (read from the analog input module). You MUST enter the raw
value maximum for the differential pressure 2 input device as a
decimal signed integer value.

Reference: None

3.3.1.28 Engineering Unit Temperature Minimum (4x +18 ... 19)


This is the lower limit (°F or°C value) of the temperature input device
(read from the analog input module) in engineering units. You MUST
enter the engineering unit scale minimum for temperature input device
as a floating point number.

Reference: None

3.3.1.29 Engineering Unit Temperature Maximum (4x +20 ... 21)


This is the upper limit (°F or°C value) of the temperature input device
(read from the analog input module) in engineering units. You MUST
enter the engineering unit scale maximum for temperature input
device as a floating point number.

Reference: None

3.3.1.30 Engineering Unit Pressure Minimum (4x +22 ... 23)


This is the lower limit (PSIA or kPa) of the pressure input device (read
from the analog input module) in engineering units. You MUST enter
the engineering unit scale minimum for pressure input device as a
floating point number. This entry is the absolute pressure. When
gauge pressure is required you MUST enter the atmospheric pressure
(if it is a constant) plus the minimum EU. For example, if the
atmospheric pressure is 14.73 and the EU minimum is 0, then 14.73
+0=14.73. Thus, the entry would be 14.73.

Reference: None

3.3.1.31 Engineering Unit Pressure Maximum (4x +24 ... 25)


This is the upper limit (PSIA or kPa) of the pressure input device (read
from the analog input module) in engineering units. You MUST enter
the engineering unit scale maximum for pressure input device as a

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 103
floating point number. This entry is the absolute pressure. When
gauge pressure is required you MUST enter the atmospheric pressure
(if it is a constant) plus the maximum EU. For example, if the
atmospheric pressure is 14.73 and the EU maximum is 100, then 14.73
+100=114.73. Thus, the entry would be 14.73.

Reference: None

3.3.1.32 Engineering Unit Differential Pressure 1 Minimum (4x +26 ... 27)
This is the lower limit (inches H2O or kPa) of the differential pressure 1
input device (read from the analog input module) in engineering units.
You MUST enter the engineering unit scale minimum for differential
pressure 1 input device as a floating point number.

Reference: None

3.3.1.33 Engineering Unit Differential Pressure 1 Maximum (4x +28 ... 29)
This is the upper limit (inches H2O or kPa) of the differential pressure
1 input device (read from the analog input module) in engineering
units. You MUST enter the engineering unit scale maximum for
differential pressure 1 input device as a floating point number.

Reference: None

3.3.1.34 Engineering Unit Differential Pressure 2 Minimum (4x +30 ... 31)
This is the lower limit (inches H2O or kPa) of the differential pressure 2
input device (read from the analog input module) in engineering units.
You MUST enter the engineering unit scale minimum for differential
pressure 2 input device as a floating point number.

Reference: None

3.3.1.35 Engineering Unit Differential Pressure 2 Maximum (4x +32 ... 33)
This is the upper limit (inches H2O or kPa) of the differential pressure
2 input device (read from the analog input module) in engineering
units. You MUST enter the engineering unit scale maximum for
differential pressure 2 input device as a floating point number.

Reference: None

3.3.1.36 Orifice Plate Diameter, dr (4x +34 ... 35)


The orifice plate bore diameter (measured at reference temperature),
dr=inches or mm and MUST be entered as a floating point number.
The valid entry range is 0.45<dr<100.0.

104 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Reference: AGA#3, pp8, formula#3 9

3.3.1.37 Orifice Plate Diameter Measurement Temperature, Tdm (4x +36 ... 37)
The measured orifice plate bore diameter temperature, Tdm[=]°F or (°C)
and MUST be entered as a floating point number. The valid entry
range is 2.0<Tdm<100.0.

Reference: AGA#3, pp8, formula#3-9

3.3.1.38 Meter Tube Internal Diameter, Dr (4x +38 ... 39)


The meter tube internal diameter calculated at reference temperature,
Dr[=]in or (mm) and MUST be entered as a floating point number. The
valid entry range is 0.0<Dr<100.0.

Reference: AGA#3, pp8, formula#3-10

3.3.1.39 Measured Meter Tube Internal Diameter Temperature, Tdm (4x


+40 ... 41)
The measured meter tube internal diameter temperature, Tdm[=]°F or
(°C) and MUST be entered as a floating point number. The valid entry
range is 2.0<Tdm<100.0.

Reference: AGA#3, pp8, formula#3-10

3.3.1.40 Base Temperature, Tb (4x +42 ... 43)


The base temperature, Tb[=]°F or (°C) and MUST be entered as a
floating point number. The valid entry range is 32.0<Tb<77.0.

Reference: AGA#8, pp11, formula#7

3.3.1.41 Base Pressure, Pb (4x +44 ... 45)


The base pressure, Pb[=]PSIA or (kPa A) and MUST be entered as a
floating point number. The valid entry range is 13.0<Pb<16.0.

Reference: AGA#8, pp11, formula#7

3.3.1.42 Reserved for Future Use (4x +46 ... 47)


These bits are reserved for future use, and therefore may not be used.

Reference: None

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 105
3.3.1.43 Reserved for Future Use (4x +48 ... 55)
These bits are reserved for future use, and therefore may not be used.

Reference: None

3.3.1.44 User Input Correction Factor, Fu (4x +58 ... 59)


The user input calibration factor, Fu MUST be entered as a floating
point number. The valid entry range is 0.0<Fu<2.0. Use this variable
cautiously, as the calculated volume deviates proportionally to this
factor. Also, when no information is available about correction factors,
set this variable to 1.

Reference: AGA#8, pp136, formula#C.4.5

3.3.1.45 Absolute Viscosity of Flowing Fluid, cP (4x +60 ... 61)


The absolute viscosity of flowing fluid, cP MUST be entered as a
floating point number. The valid entry range is 0.005<cP<0.5.

Reference: AGA#3, pp10, formula#3-23

3.3.1.46 Isentropic Exponent, k (4x +62 ... 63)


The isentropic exponent, k MUST be entered as a floating point
number. The valid entry range is 1.0<k<2.0. The recommended value
per the standard is 1.3.

Reference: AGA#3, pp12, formula#3-32

3.3.1.47 Beginning of Day Hour (4x +64)


Denotes the hour of the day to start calculation of daily values. The
valid entry range is 0 ... 23.

Reference: None

3.3.1.48 Reserved for Future Use (4x +65 ... 82)


These bits are reserved for future use, and therefore may not be used.

Reference: None

3.3.1.49 Density at Flowing Conditions, rf (4x +83 ... 84)


This value is the mass of a gas per unit of volume at flowing conditions.
In US units the density at flowing conditions corresponds to the
mass-pounds of gas contained in a volume of ft 3 at flowing conditions
(Tf, Pf).

106 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Reference: AGA#3, pp5, formula#3-1

3.3.1.50 Density at Base Conditions, rb (4x +85 ... 86)


This value is the mass of a gas per unit of volume at base conditions
(contract reference conditions) In US units the density at base
conditions corresponds to the mass-pounds of gas contained in a
volume of 1 ft3 at base conditions (Tb, Pb).

Reference: AGA#3, pp5, formula#3-1

3.3.1.51 Compressibility Factor at Flowing Conditions Zf (4x +87 ... 88)


This value is the measure of the deviation of the gas from ideal
behavior such that PV=ZnRT. The compressibility factor is a function
of temperature, pressure and the composition of the gas. The
compressibility factor at flowing conditions (Zf) corresponds to Z at
flowing conditions (Tf, Pf).

Reference: AGA#3, pp5, formula#3-2

3.3.1.52 Compressibility Factor at Base Conditions Zb (4x +89 ... 90)


This value is the measure of the deviation of the gas from ideal
behavior such that PV=ZnRT. The compressibility factor is a function
of temperature, pressure and the composition of the gas. The
compressibility factor at base conditions (Zb) corresponds to Z at base
conditions (Tb, Pb).

Reference: AGA#3, pp7, formula#3-7

3.3.1.53 Gas Relative Density at Base Conditions Gr (4x +91 ... 92)
This value corresponds to the ratio of the mass density of the gas at
base conditions over the mass density of air at base conditions. Gas
relative density at base conditions is not expressed in any units.

Reference: AGA#3, pp5, formula#3-3

3.3.1.54 Reserved for Future Use (4x +93 ... 124)


These bits are reserved for future use, and therefore may not be used.

Reference: None

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 107
3.3.2 Gas Flow Output Table
The following is a detailed description of each of the output variables
from the G392 gas flow instruction block.

3.3.2.1 System Warning/Error Codes (4x + 0)


This field displays a fault code generated by the Gas Flow block. A
complete list is shown in the table below. System warning codes do
NOT halt the calculation. In contrast, system error codes DO halt the
calculation. When a system or program warning is detected by the
block the middle output turns ON. When a system or program error is
detected by the block the bottom output turns ON. Refer to the first DX
Zoom screen to view the system warning/error codes detected by the
Gas Flow Block.

System Warning/Error Codes (4x + 0)


Displayed Type of Description
Code Code
0101 Hex Warning Hardware enabler is missing. Gas
flow only operates for 48 hours
without enabler present, 60 se-
conds when enabler present then
removed. Please insert the hard-
ware enabler.
0201 Hex Error Engineering Units min. is > Engi-
neering Units max. on temperature,
pressure or differential pressure.
0202 Hex Error Raw value min. = raw value max.
on temperature, pressure or differ-
ential pressure.
0301 Hex Error Hardware enabler is missing, gas
flow blocks stop solving.
0302 Hex Error Create a second meter attempted
on a single meter function block.
0303 Hex Error Time of day clock not configured, or
TOD clock 4X registers being over-
written.
0304 Hex Error Optional outputs are selected and
the table length specified in the bot-
tom node of the gas block is <180,
or when optional outputs are off it is
<155.
FFXX Hex Error System error. Please contact Modi-
con Technical Support.
0401 Hex Error Insufficient amount of heap memory
to run ANY meter, or PLC is not
compatible.
0402 Hex Error Not enough heap memory.

108 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.3.2.2 Program Warning/Error Codes (4x + 1)
This field displays a fault code generated by the Gas Flow block. A
complete list is shown in the table below. Program warning codes do
NOT halt the calculation. In contrast, program error codes DO halt the
calculation. When a system or program warning is detected by the
block the middle output turns ON. When a system or program error is
detected by the block the bottom output turns ON. Refer to the first DX
Zoom screen to view the program warning/error codes detected by the
Gas Flow Block.

Program Warning/Error Code (4x + 1)


Displayed Type of Description
Code Code
1 Warning Pressure has a negative derivative.
2 Warning Density calculated exceeds the
maximum, and the gas density de-
fault is used.
3 Warning Number of iterations to bracket the
density has exceeded the maxi-
mum.
4 Warning Number of iterations to obtain the
density has exceeded the maxi-
mum.
42 Warning Pressure is <0.0 or >1750 psia
(<0.0 or >12, 065.82 kPa)
43 Warning Temperature is <17 or >143
(< 8.334>61.667°°C)
75 Warning Orifice diameter is < 0.45 in
(11.44mm)
76 Warning Pipe diameter is <= 2.0 in
79 Warning Beta ratio => 0.75
132 Error Pressure Engineering Units min. or
max. is specified as < 0.0 or >
40,000 psia (<0.0 or >
275,790.78kPa) or measured pres-
sure is <=0.0 or > 40,000 PSIA
133 Error Temperature Engineering Units min.
or max. is specified as < -200 or >
760°°F (<-128.89 or > 404.444°°C) or
measured pressure is <=0.0 or >
40,000 PSIA
154 Error Pipe or orifice material is NOT 1,2
or 3
155 Error Orifice diameter is <=0 or => 100.0
in (<=0 or=> 2540mm)
156 Error Pipe diameter is <=0 or => 100.0 in
(<=0 or=> 2540mm)

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 109
157 Error Flowing or base density is
0.0<r<=100.0
0.0<r<=1601.846
158 Error Differential pressure Engineering
Units min. is specified as < 0.0 in
H2O (<0.0kPa) or measured differ-
ential pressure is <=0.0 lbm/ft3
(<=0.0kg/m3)
159 Error Absolute viscosity is < 0.005 or >
0.5 cP
160 Error Isentropic exponent < 1.0 or > 2.0
161 Error Compressible/Incompressible is set
to something other than 1 or 2
164 Error Tap location is NOT 1 for upstream
or 2 for downstream
165 Error Supercompressibility is <= 0.0
166 Error Relative density at standard condi-
tions are < 0.07 or > 1.52
167 Error Calibration factor is < = 0.0 or > 2.0
168 Error Compressibility factor at standard
conditions are <= 0.0
169 Error Beta ratio <= 0.0 or => 1.0
170 Error Dm <= 0.0
171 Error 0.0<Zb or Zf<=3.0
172 Error 0.07<=Gr<=1.52
186 Error Optional outputs not 1 or 2
190 Error Orifice diameter measurement tem-
perature or Tube internal diameter
measurement temperature
32<Tr<=77°° F (0<Tr<=25°° C)
192 Error User input type has not been se-
lected as one or two
193 Error Input register type not set to 1 for
3X pointer or 2 for 4X register
195 Error Continue to accumulate on error is
not set to1 for enable or 2 for dis-
able
196 Error Measurement units not set to 1 for
US or to 2 for metric (SI)
197 Error Differential pressure is > flowing
pressure
198 Error Dual range differential pressure not
1 or 2
199 Error Entered ranges into 4X registers
are not valid or input registers for
dual range differential pressure is
incorrect

110 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.3.2.3 Version Number (4x +2)
Displays the current revision number of Gas Flow block. This number
is automatically loaded by the block and the block over writes any other
number entered into this register.

3.3.2.4 Temperature at Flowing Conditions, Tf (4x +125 ... 126)


This value is the temperature at fluid flowing conditions Tf[=]°F or (°C).

Reference: AGA#3, pp5, formula#3-2

3.3.2.5 Pressure, Pf (4x +127 ... 128)


This value is the static pressure of fluid at pressure tap Pf[=]PSIA or
(kPa A).

Reference: AGA#3, pp5, formula#3-2

3.3.2.6 Differential Pressure, hw (4x +129 ... 130)


This value is the orifice differential pressure hw[=]in H2O or (kPa A).

Reference: AGA#3, pp12, formula#3-30

3.3.2.7 Integral Value, IV (4x +131 ... 132)


This value is the integral value IV.

Reference: API#21, pp6, formula#1.4.2.5

3.3.2.8 Volume Flow Rate at Base Conditions, (Tb,Pb), Qb (4x +135 ... 136)
This value is the volume flow rate at base conditions value Qb[=]ft3/hr
or (m3/hr).

Reference: AGA#3, pp7, formula#3-7

3.3.2.9 Mass Flow Rate, Qm (4x +137 ... 138)


This value is the mass flow rate per hour value Qm[=]lbm/hr or (kg/hr).

Reference: AGA#3, pp7, formula#3-3

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 111
3.3.2.10 Accumulated Volume Current Hour, (4x +139 ... 140)
This value is the volume that has accumulated for the last running
hour in Sft3 or (Sm3). This value is reset every hour.

Reference: None

3.3.2.11 Accumulated Volume Last Hour, (4x +141 ... 142)


This value is the volume that has accumulated during the last hour in
Sft3 or (Sm3). This value is reset every hour to the current
accumulated volume at the end/beginning of every hour.

Reference: None

3.3.2.12 Accumulated Volume Last Day, (4x +143 ... 144)


This value is the volume that has accumulated during the last day in
Sft3 or (Sm3). This value is reset every day to the sum of the previous
twenty-four hours of accumulated volume.

Reference: None

3.3.2.13 Average Temperature Last Day, (4x +145 ... 146)


This value is the average temperature for the last day in °F or (°C).
This value is reset every day to the arithmetic average of the
twenty-four hourly averages of temperature obtained.

Reference: None

3.3.2.14 Average Pressure Last Day, (4x +147 ... 148)


This value is the average static pressure for the last day in PSIA or
(kPa A). This value is reset every day to the arithmetic average of the
twenty-four hourly averages of static pressure obtained.

Reference: None

3.3.2.15 Average Differential Pressure Last Day, (4x +149 ... 150)
This value is the average differential pressure for the last day in H2O
or (kPa A). This value is reset every day to the arithmetic average of
the twenty-four hourly averages of differential pressure obtained.

Reference: None

112 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.3.2.16 Average IV Last Day (4x +151 ... 152)
This value is the integral value for the last day. This value is reset
every day to the arithmetic average of the twenty-four hourly averages
of volume flow rates obtained.

Reference: None

3.3.2.17 Average Volume Flow Rate at Base Conditions Last Day,Tb,Pb (4x
+153 ... 154)
This value is the average volume flow rate for the last day in ft3/hr or
(m3/hr). This value is reset every day to the arithmetic average of the
twenty-four hourly averages of volume flow rates obtained.

Reference: None

3.3.2.18 Reserved for Future Use (4x +155 1 ... 13)


These bits are reserved for future use, and therefore may not be used.

Reference: None

3.3.2.19 Block is Functioning Heartbeat (4x +155: 14)


This heartbeat occurs once per second when the flow block is
functioning correctly. When the flow block stops functioning properly
the heartbeat stops.

Reference: None

3.3.2.20 Flow Rate Solve Complete Heartbeat (4x +155: 15)


This bit goes on each time the flow block completes one solve. When
this bit stops the block has stopped solving the flow equation.

Reference: None

3.3.2.21 End of Day (4x +155: 16)


This bit goes on for one scan when the block resets the daily
accumulators. This bit may be monitored for peripheral control in the
program.

Reference: None

Note: This bit does not appear in the DX Zoom screen, but, may be
used in program logic peripheral to the gas flow block.

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 113
3.3.3 Gas Flow Output Table (Optional Outputs)
The following is a detail description of each of the optional output
variables from the G392 gas flow instruction block.

3.3.3.1 Compressibility at Flowing Conditions, (Tf,Pf) Zf (4x +156 ... 157)


This value is calculated by G392 gas flow instruction block.

Reference: AGA#8, pp7, formula#12

3.3.3.2 Compressibility at Base Conditions, (Tb,Pb) Zb (4x +158 ... 159)


This value is calculated by G392 gas flow instruction block.

Reference: AGA#3, pp7, formula#3-7

3.3.3.3 Compressibility at Standard Conditions, (Ts,Ps) Zs (4x +160 ... 161)


This value is calculated by G392 gas flow instruction block.

Reference: AGA#3, pp7, formula#3-7

3.3.3.4 Density at Fluid Flowing Conditions, rt,p (4x +162 ... 163)
This value rt,p[=]lbm/ft3 or (kg/m3) is calculated by G392 gas flow
instruction block.

Reference: AGA#3, pp6, formula#3 4a

3.3.3.5 Density of a Fluid at Base Conditions, rb (4x +164 ... 165)


This value rb[=]lbm/ft3 or (kg/m3) is calculated by G392 gas flow
instruction block.

Reference: AGA#3, pp6, formula#3-4b

3.3.3.6 Supercompressibility, Fpv (4x +166 ... 167)


This value is calculated by G392 gas flow instruction block.

Reference: None

3.3.3.7 Gas Relative Density, Gr (4x +168 ... 169)


This value is calculated by G392 gas flow instruction block.

Reference: AGA#8, pp132, formula#C.3.10

114 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.3.3.8 Orifice Plate Coefficient of Discharge, Cd (4x +170 ... 171)
This value is calculated by G392 gas flow instruction block.

Reference: AGA#3, pp9, formula#3-11

3.3.3.9 Expansion Factor, Y (4x +172 ... 173)


This value is calculated by G392 gas flow instruction block.

Reference: AGA#3, pp82, formula#3-D-13

3.3.3.10 Velocity of Approach Factor, Ev (4x +174 ... 175)


This value is calculated by G392 gas flow instruction block.

Reference: AGA#3, pp10, formula#3-22

3.3.3.11 Reserved for Future Use (4x +176 ... 177)


This register is reserved for future use, and therefore may not be used.

Reference: None

3.3.3.12 Reserved for Future Use (4x +178 ... 179)


This register is reserved for future use, and therefore may not be used.

Reference: None

3.3.3.13 Orifice Plate Coefficient of Discharge Bounds Flag within Iteration


Scheme, Cd_f (4x +180)
This value is calculated by G392 gas flow instruction block.

Reference: AGA#3, pp30, formula#4-44

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 115
3.4 Possible Configuration Examples for the
Gas Flow Block

Using the inputs given with the G392 instruction block you should
obtain the same outputs as noted below for the application example
that calculates a volumetric flow rate. They may be used to:
troubleshoot, measure accuracy, compare different inputs and how they
affect the flow rate.

3.4.1 Example 1 with US Units

Figure 53 DX Zoom Screen 1

116 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 54 DX Zoom Screen 2

Figure 55 DX Zoom Screen 3

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 117
Figure 56 DX Zoom Screen 4

Figure 57 DX Zoom Screen 5

118 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 58 DX Zoom Screen 6

Figure 59 DX Zoom Screen 7

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 119
Figure 60 DX Zoom Screen 8

Figure 61 DX Zoom Screen 9

120 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 62 DX Zoom Screen 10

Figure 63 DX Zoom Screen 11

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 121
3.4.2 Example 2 with Metric Units

Figure 64 DX Zoom Screen 1

Figure 65 DX Zoom Screen 2

122 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 66 DX Zoom Screen 3

Figure 67 DX Zoom Screen 4

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 123
Figure 68 DX Zoom Screen 5

Figure 69 DX Zoom Screen 6

124 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 70 DX Zoom Screen 7

Figure 71 DX Zoom Screen 8

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 125
Figure 72 DX Zoom Screen 9

Figure 73 DX Zoom Screen 10

126 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 74 DX Zoom Screen 11

890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 127
Appendix A
Technical References

V End User Part Numbers

V Formula Nomenclature

V Conversion Factors

V Possible Application Examples for PLCs

V Technical Expertise in Gas Measurement

890 USE 137 00


Technical References 129
A.1 End User Part Numbers

Compact and Micro PLC Descriptions


Models PC-A984-141* With two Modbus communication ports standard;
User logic size: 8.0K words, 8Mhz.
PC-A984-145* With one Modbus communication port and one
Modbus Plus peer-to-peer network communica-
tion port standard; User logic size: 8.0K words,
8Mhz.
PC-E984-241* With two Modbus communication port standard;
User logic size: 8.0K words, FLASH RAM,
16Mhz.
PC-E984-245* With one Modbus communication port and one
Modbus Plus peer-to-peer network communica-
tion port standard; User logic size: 8.0K words
FLASH RAM, 16Mhz.
PC-E984-251* With two Modbus communication ports standard;
User logic size:16.0K Words FLASH RAM,
16Mhz, 24K of extended registers.
PC-E984-255* With one Modbus communication port and one
Modbus Plus peer-to-peer network communica-
tion port standard; User logic size: 16.0K words
FLASH RAM, 16Mhz, 24K of extended registers.
110CPU61204*** With a 24Vdc power supply, fixed discrete and
analog I/O, 8.0K user logic size.
* Refer to the Modicon 984 A120 Compact Programmable Controllers
User Guide (890 USE 108 00).
*** Refer to the Modicon 512/612 Micro PLC Hardware User Manual
(890 USE 145 00).

130 Technical References 890 USE 137 00


PLC Programming Tools
Programming Panel Soft- SW-MSxD-9SA Full-feature Modsoft
ware
371SPU921000 Modsoft Lite

Analog Input Modules


Analog Input Modules 4 channel +500 mV RTD AS-BADU-204
4 channel +10 V/+20 mA AS-BADU-205
4 channel 12 bit AS-BADU-206*
8 channel 12 bit, RTD, TC, AS-BADU-211*
Vdc, mA
8 channel 12 bit, RTD, TC, AS-BADU-212*
Vdc, mA
8 channel 12 bit, RTD, Vdc, AS-BADU-214*
mA
8 channel 15 bit, TC, Vdc AS-BADU-216*
*Indicates A120 I/O Modules that are not supported by the
PC-0984-1xx controller.
For a full list of Compact I/O, please refer to the A120 Se-
ries I/O Modules User Guide (890 USE 109 00 formerly
GM-A984-IOS).

Note: Some A120 I/O modules need loadables for proper operation.
Refer to the A120 Series I/O Modules User Guide (890 USE 109 00
formerly GM-A984-IOS).

890 USE 137 00


Technical References 131
A.2 Formula Nomenclature

Refer to the table below for descriptions of various symbols used in the
formulas to calculate gas flow.

Gas Flow Formula Nomenclature


Symbols Description
Cd Orifice Plate Coefficient of Discharge
Cd_f Orifice Plate Coefficient of Discharge bounds Flag within Iteration Scheme
Ev Velocity of Approach Factor
Fpv Gas Supercompressibility Factor
Fpwl Local Gravitational Correction for Deadweight Tester Static Pressure Cal-
ibration
Fu User Input Correction Factor
Fwl Local Gravitational Correction for Water Column Calibration
Fwlhw Local Gravitational Correction for Deadweight Tester Differential Pressure
Calibration
Fwt Water Density Correction (Temperature or Composition) for Water Column
Calibration
Gr Gas Relative Density (Specific Gravity)
rt,p Density of a Fluid at Flowing Conditions (Pf, Tf), Ibm/ft3
r Density of a Fluid at Base Conditions, Ibm/ft3
Y Expansion Factor
Zb Compressibility at Base Conditions (Pb, Tb)
Zf Compressibility at Flowing Conditions (Pf, Tf)
Zs Compressibility at Standard Conditions (Ps, Ts)

132 Technical References 890 USE 137 00


A.3 Conversion Factors

Refer to the table below for conversion factors.

Conversion Factors
Problem Conversion Formula
°F to °C (°°F -32) * 5/9
Psi to kPa Psi * 6.894757
Inches H2O @ 60°°F to kPa Inches H2O * 0.2488429
Inches to mm Inches * 25.4
ft3 to m3 ft3 * 0.02831685
ft3 to US gallons ft3 * 7.480520
M3 to liters M3 * 1000.0
US gallons to liters US gallons * 3.785412

890 USE 137 00


Technical References 133
A.4 Possible Application Examples for PLCs

A
N
P A
COMPACT 1 L
GAS FLOW SOFTWARE IN CPU CPU
(LOADABLE FUNCTION) 2 O
0 G
I
N

TT PT DPT DPT
1 1 1 2

FLOW

PIPELINE

Figure 75 Single Meter Run in a Compact 984 PLC

A A
N N
A A
COMPACT P L L
GAS FLOW SOFTWARE IN CPU CPU 1 O O
(LOADABLE FUNCTION) 2 G G
0
REGULATION SOFTWARE I O
IN CPU (USER DEVELOPED) N U
T

TT PT DPT DPT I/P


1 1 1 2

FLOW
Control Valve
PIPELINE

Figure 76 Single Meter Run in a Compact 984 PLC with Pressure Regulation

134 Technical References 890 USE 137 00


GAS FLOW SOFTWARE IN CPU
(LOADABLE FUNCTION) MICRO 612-04

ANALOG
IN

TT PT DPT DPT
1 1 1 2

FLOW

PIPELINE

Figure 77 Single Meter Run in a Mirco 612 04 PLC

GAS FLOW SOFTWARE IN CPU


(LOADABLE FUNCTION) MICRO 612-04

REGULATION SOFTWARE ANALOG ANALOG


IN CPU (USER DEVELOPED) IN OUT

TT PT DPT DPT I/P


1 1 1 2

FLOW
Control Valve
PIPELINE

Figure 78 Single Meter Run in a Micro 612 04 PLC with Pressure Regulation

890 USE 137 00


Technical References 135
A A
N N
P A A
COMPACT 1 L L
CPU 2 O O
0 G G
I I
N N

PT TT DPT DPT
1 1 1 2

DPT DPT
RUN #1 3 4
FLOW
DPT DPT
RUN #2 5 6
FLOW
DPT DPT
RUN #3 7 8
FLOW

RUN #4
FLOW

PIPELINE

Figure 79 Four Meter Run in Compact 984 PLC using Upstream Temperature and
Pressure

136 Technical References 890 USE 137 00


A A A A
N N N N
P A A A A
COMPACT 1 L L L L
CPU 2 O O O O
0 G G G G

I I O O
N N U U
T T

TT PT DPT DPT I/P


1 1 1 2

DPT DPT I/P


3 4
FLOW Control Valve
DPT DPT I/P
5 6
FLOW Control Valve
DPT DPT I/P
7 8
FLOW Control Valve

FLOW Control Valve


PIPELINE

Figure 80 Four Meter Run in Compact 984 PLC using Upstream Temperature and
Pressure with Pressure Regulation

XMIT XMIT
BLOCK BLOCK
IN CPU IN CPU

HSBY LINK
REMOTE I/O
MODBUS MODBUS

PORT SHARING DEVICE

ONE OR MORE MICRO 612-04s SERVE AS P


DISTRIBUTED ”COMPUTATION ENGINES”, MICRO 612-04
DP1
OFFLOADING QUANTUM CPU DP2
T
Figure 81 Gas Flow in Quantum HSBY Systems using Distributed Micro 612 04 PLCs

890 USE 137 00


Technical References 137
XMIT XMIT
BLOCK BLOCK
IN CPU IN CPU

HSBY LINK
REMOTE I/O
MODBUS MODBUS

PORT SHARING DEVICE

P
MICRO 612-04 DP1
PARENT DP2
T

P
MICRO 612-04 DP1
DP2 UP TO 5 MICRO 612-04s
CHILD T (PARENT AND CHILDREN) SERVE
AS DISTRIBUTED ”COMPUTATION
P ENGINES”, OFFLOADING
MICRO 612-04 DP1 QUANTUM CPU. EACH MICRO
DP2 CAN HANDLE UP TO 8 GAS
CHILD T FLOW METER RUNS.

P
MICRO 612-04 DP1
CHILD DP2
T

Figure 82 Gas Flow in Quantum HSBY Systems using Distributed Micro 612 04
PLCs, Parent/Child

HSBY LINK
REMOTE I/O

MODBUS MODBUS
P P
MICRO 61-04 DP1 MICRO 612-04 DP1
DP2 DP2
T T
REDUNDANT MICRO 612-04s SERVE AS
DISTRIBUTED ”COMPUTATION ENGINES”,
OFFLOADING QUANTUM CPU
Figure 83 Gas Flow in Quantum HSBY Systems using Redundant Distributed Micro
612 04 PLCs

138 Technical References 890 USE 137 00


HSBY LINK
REMOTE I/O

MODBUS MODBUS

COMPACT 984 SERVES AS A


P DISTRIBUTED ”COMPUTATION
COMPACT DP1 ENGINE”, OFFLOADING
984 DP2 QUANTUM CPU. COMPACT
T CAN USE ITS OWN INPUTS
FOR GAS FLOW EQUATIONS.
Figure 84 Gas Flow in Quantum HSBY Systems using Distributed Compact 984
PLCs

HSBY LINK
REMOTE I/O
REMOTE
I/O DROP

P
DP1
DP2
T
GAS FLOW I/O CAN BE
CONNECTED TO QUANTUM

MODBUS PLUS
COMPACT 984 SERVES AS A DISTRIBUTED
COMPACT ”COMPUTATION ENGINE”, OFFLOADING
984 QUANTUM CPU. COMPACT CAN USE
”PEERCOPPED” QUANTUM INPUTS FOR
GAS FLOW WQUATIONS.
Figure 85 Gas Flow in Quantum HSBY Systems using Distributed Compact 984
PLCS and Quantum I/O

890 USE 137 00


Technical References 139
A.5 Technical Expertise in Gas Measurement

For technical expertise in gas measurement theory, or to order Meter


Manager please contact the following:

Starling Associates, Inc.


7136 S. Yale, Suite 300
Tulsa, OK 74136

Telephone (918) 488-0024


Fax (918) 499-9610

Starling Associates, Inc. (SAI) has considerable experience in


implementing the 1992 AGA Reports No. 3 and 8. The personal
experience of Dr. Kenneth Starling, SAI chairman, is extensive,
starting with field experience with Republic Pipeline, continuing
through natural gas properties and flow research at the Institute of
Gas Technology, EXXON and the University of Oklahoma and
compressibility factor research for the Gas Research Institute and the
American Gas Association and as a participant in developing both the
1985 and 1992 versions of AGA Reports No. 3 and 8. As Chairman of
the Executive Committee of the International School of Hydrocarbon
Measurement from 1981 to 1992, Dr. Starling observed the industry
direction toward increased real-time measurement, more rapid
accounting and editing and development of more defensible audit trails.

Starling Associates, Inc. offers a number of educational classes on


various Gas Measurement topics. For more information on these
offerings and other services provided, please call them at (918)
488-0024.

140 Technical References 890 USE 137 00

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy