Gas Book PLC
Gas Book PLC
Gas Book PLC
Introduction
V Software Installation
V Customer Service
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.
Start
Op Code
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.
*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.
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.
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 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.
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.
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 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.
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.
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.
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.
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.
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.
Step 8 Select Loadable (F5) from menu to access the Gas Flow Loadable.
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.
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.
Note: All I/O slots may still be used with a Gas Flow Enabler
installed in AS-HDTA-200, or AS-HDTA-201 backplane.
30-Pin A120
I/O Expansion
Receptacle
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).
A
Rack 1
Rack 2
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.
Tip: Both GD92 and GM92 function the same, except for the number
of passes. GD92 performs one pass, and GM92 performs eight passes.
V DX Zoom Screens
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.3 Opcode
1f hex for GD92.EXE file.
1f hex for GM92.EXE file.
2.1.2 Representation
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).
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).
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 43
2.2 DX Zoom Screens
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
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
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
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
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
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
Step 7 Hit Escape twice to the Segment Status Display Screen, then select
Save (F7) to save changes.
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.
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
Reference None
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
Reference: None
Reference: None
Reference: None
Reference: None
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
Reference: None
Reference: None
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
Reference: None
Reference: None
Reference: None
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
Reference: None
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
Reference: None
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
Reference: None
Reference: None
Reference: None
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
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 59
(Section 2.3.1.38)
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.
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: None
Reference: None
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 61
Reference: AGA#8, pp17, formula#12
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.
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.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).
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
Reference: None
Reference: None
Reference: None
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
Reference: None
Reference: None
Reference: None
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.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: None
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: None
Reference: None
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.
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 71
Figure 21 DX Zoom Screen 2
72 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 23 DX Zoom Screen 4
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 73
Figure 25 DX Zoom Screen 6
74 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 27 DX Zoom Screen 8
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 75
Figure 29 DX Zoom Screen 10
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
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 77
Figure 33 DX Zoom Screen 3
78 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 35 DX Zoom Screen 5
890 USE 137 00 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 79
Figure 37 DX Zoom Screen 7
80 GD92/GM92 AGA#3&8 1992 Detail Method Gas Flow Function Block 890 USE 137 00
Figure 39 DX Zoom Screen 9
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 DX Zoom Screens
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.3 Opcode
1f hex for G392.EXE file.
3.1.2 Representation
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).
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).
88 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
3.2 DX Zoom Screens
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
90 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 44 G392 Zoom Screen 3 of 11
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 91
Figure 46 G392 Zoom Screen 5 of 11
92 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 48 G392 Zoom Screen 7 of 11
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 93
Figure 50 G392 Zoom Screen 9 of 11
94 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 52 G392 Zoom Screen 11 of 11
Step 7 Hit Escape twice to return to the Segment Status Display Screen,
then select Save (F7) to save changes.
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.
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
Reference None
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
Reference: None
Reference: None
Reference: None
Reference: None
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
Reference: None
Reference: None
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
Reference: None
Reference: None
Reference: None
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
Reference: None
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
Reference: None
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
Reference: None
Reference: None
Reference: None
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
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: 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
Reference: None
Reference: None
106 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Reference: AGA#3, pp5, formula#3-1
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: 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.
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.
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.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).
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
Reference: None
Reference: None
Reference: None
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
Reference: None
Reference: None
Reference: None
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.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: None
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: None
Reference: None
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.
116 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 54 DX Zoom Screen 2
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 117
Figure 56 DX Zoom Screen 4
118 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 58 DX Zoom Screen 6
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 119
Figure 60 DX Zoom Screen 8
120 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 62 DX Zoom Screen 10
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 121
3.4.2 Example 2 with Metric Units
122 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 66 DX Zoom Screen 3
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 123
Figure 68 DX Zoom Screen 5
124 G392 AGA#3 1992 Gas Flow Function Block 890 USE 137 00
Figure 70 DX Zoom Screen 7
890 USE 137 00 G392 AGA#3 1992 Gas Flow Function Block 125
Figure 72 DX Zoom Screen 9
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 Formula Nomenclature
V Conversion Factors
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).
Refer to the table below for descriptions of various symbols used in the
formulas to calculate gas flow.
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
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
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
FLOW
Control Valve
PIPELINE
Figure 76 Single Meter Run in a Compact 984 PLC with Pressure Regulation
ANALOG
IN
TT PT DPT DPT
1 1 1 2
FLOW
PIPELINE
FLOW
Control Valve
PIPELINE
Figure 78 Single Meter Run in a Micro 612 04 PLC with Pressure Regulation
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
I I O O
N N U U
T T
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
HSBY LINK
REMOTE I/O
MODBUS MODBUS
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
MODBUS MODBUS
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