Home

Series 90 Programmable Controllers Flow Computer User`s Manual

image

Contents

1. The COMREQ instruction is fired by a periodic 5 second timer coil T50 located at rung 37 The Flow Computer PCM is assumed to be in slot 2 Rungs 35 and 36 are provided only for reference They perform no function in the ladder logic example Rung 35 detects the COMREQ Status flag which indicates that the previous COMREQ has been received by the Flow Computer Rung 36 provides a five second watchdog timer for the Flow Computer OK heartbeat located at T100 The watchdog output Q1 will turn on if the Flow Computer heartbeat is not being detected These flags are reset in rungs 39 and 40 CIMPLICITY 90 ADS If CIMPLICITY 90 ADS is used ladder logic must be present in the PLC to manage the configuration download to the Flow Computer and the calculated results from the Flow Computer to the PLC registers The ladder logic example in Appendix D can be used with the example ADS screens provided on the Flow Computer diskette Any configuration parameters changed in an ADS screen will be downloaded to the Flow Computer from the PLC registers within 5 seconds The register data structure starts at R500 The register data structure starting address can be changed However moving the register data structure will require the ADS parameters with register pointers to be manually changed GFK 0685 Chapter 2 Installation and Configuration 2 9 Configuration Using the Local Operator Interface Ladder logic is unnecessary if the local operator interf
2. 2 15 B s das software to flow computer 2 1 E Engineering units for flow computer re sults Entering configuration D 15 Example of ladder logic External operator interface 1 1 External operator interface example 1 2 F Features flow computer Files for installation Flag flow computer OK Flow computer analog input requirements archiving configuration 2 CIMPLICITY 90 ADS 2 9 configuration parameters description basic l 1 diskettes software features and benefits installation and configuration interfaces tvpes of list of cables P 1 local operator interface 2 10 OIT tested for flow computer operation power up register based configuration b 7 RS Index 1 Index Index 2 software installation 2 3 system configuration terminals for use with bia al ADS screens subdirectory B 1 Flow computer flag OK update frequen ob Flow computer OK flag B 3 FLOW30 PCM subdirectory FLOW30E subdirectory FLOW70 PCM subdirectory FLOW7OE subdirectory Folder screen pon flow computer diskettes 2 1 IC690CBL701 cable IBM AT 2 1 IC690CBL702 cable IBM XT P 1 IC690CBL705 cable Workmaster II or IBM PS 2 IC693ADC311 ADC module for Series 90 30 IC693PCM311 PCM module Series 90 30 1C697ADC701 ADC module for Series 90 70 IC697PCM711 PCM module Series 90 70 Initial startup 2 5 Initializing an OIT Inputs analog
3. Register based operation Related publications liv Resetting volume S Saving configuration to diskette Screens examples of folder screen katz supercompressibility screen 2 15 main menu PCOD main screen Logicmaster 90 meter configuration screen nx 19 supercompressibility screen results screen scaling screen system screen title screen Index utility SI units 2 7 Soft reset 3 1 Software downloading Software installation of Starting the flow computer Startup initial Status message 3 2 Subdirectory ADS B 1 FLOW30 PCM B 1 FLOW30E FLOW70 PCM FLOW70E T Tables register data structure A 1 Terminals list of Terms definition of Time display Timer 2 5 second U Utility screen V Volume resetting vT100 2 2 W Warm start 3 3 Index 3
4. 2 2 Installation information Installation files for Installing software DA Instruction COMREQ Interrupt 2 5 second timer Interrupt calculations B 2 Interrupt COMREQ 3 1 IP units 2 7 L Ladder logic example D 1 Ladder logic example description of Ladder logic requirements 2 8 List of related publications lv Local operator interface 1 1 Local operator interface example 1 2 Local operator interface screens katz supercompressibility screen 2 13 meter configuration screen nx 19 supercompressibility screen results screen scaling screen system screen title screen Local operator interface configuration with Logicmaster 90 configuration package 122 Logicmaster 90 main screen Main menu PCOP Main screen Logicmaster 90 2 3 Message status B 2 Modules required 2 1 O OIT for flow computer ba OIT initializing Bel Operation of flow computer 3 1 Operation RAM disk Operator interface CIMPLICITY 90 ADS illustration of local P PCM development software PCM requirements GFK 0685 PCOP main menu 2 4 PCOP software PCOP for installation DA PLC configuration 2 2 Power up 3 1 Process units 2 7 Product description Publications related iv R RAM disk operation 8 3 Range checking B 2 Register data structure 2 7 Register data structure tables of A 1 Register size requirements Register based configuration
5. AI table starting at AI1 and ending at AI12 For meter 1 Static Pressure is located in AI1 Static Temperature in AI2 and Differential Pressure in AI3 The same format is repeated for meters 2 through 4 Relocating Analog Inputs The AI1 starting address can be changed by using the local operator interface System screen as explained later under Configuration Using the Local Operator Interface Software Installation The PCM development software package PCOP is used to install the Flow Computer diskette files on the PCM RAM See Appendix B for a description of these files Use the following steps for installing the Flow Computer software 1 Connect the PCM programming cable from the Workmaster II computer to the Flow Computer PCM port 1 2 Hard reset the PCM by depressing the pushbutton on the front of the module for at least five seconds Boot up the Workmaster II computer Invoke PCOP from either the Logicmaster 90 main screen by pressing the F3 function key or type PCOP at the DOS prompt a 90 20 IZ po 7o UN gea em ron cm Be or mmm Bt util Beconenupesetup my Exit LOGICMASTER 90 SOFTWARE FOR SERIES 90 c PROGRAMMABLE CONTROLLERS Shift F2 Series 90 20 Programmable Controller Shift F3 Series 90 30 Programmable Controller Series 90 70 Programmable Controller Logicmaster 90 Programmer Package Logicmaster 90 Configuration Package PCM Development Package PCOP Axis Posi
6. LEN 000011 lt RUNG 33 gt gt TO0006 INT l l LEN 100001 Program FLOW70E MOVE_ MOVE_ MOVE_ IMOVE IMOVE GE FANUC SERIES 90 70 DOCUMENTATION v3 03 Page FLOW COMPUTER LADDER LOGIC EXAMPLE IMOVE INT CONST IN QI MN P CT 00000 LEN 00001 MOVE INT CONST IN JQ MN T CT 00005 LEN 00001 IMOVE INT CONST IN Q MNDP_CT 00000 LEN 100001 p IMOVE MOVE INT INT l l l l CONST IN QI STAT T CONST_ IN Ql DIFF P 30720 LEN 06080 LEN 100001 100001 MOVE MOVE INT INT l l l STAT P IN Q AI0004 STAT P IN Q AI0007 STAT P IN Q AI0010 l l LEN LEN 100001 100001 C FLOW70E Block _MAIN 8 D 8 Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 GFK 0685 01 20 92 10 44 GE FANUC SERIES 90 70 DOCUMENTATION v3 03 Page FLOW COMPUTER LADDER LOGIC EXAMPLE lt RUNG 34 gt gt A ae ea Me MOVE gt gt gt MOVE IMOVE l INT INT INT SROO508 IN Q RO0616 SROO508 IN QI SROO724 RO0508 IN Q RO0832 14640 LEN 30720 LEN 06080 LEN 100076 100076 10
7. Operation 3 3 Appendix A GFK 0685 Register Data Structure The required data structure for the flow computer is provided in Tables A 1 through A 6 in this appendix Table A 1 Flow Computer Data Table Block Name Offset words Length words Common Parameters 0 8 Meter 1 Configuration 8 32 Meter 1 Gas Composition 40 32 Meter 1 Scaling Parameter 72 12 Meter 1 Output Data 84 32 Meter 2 Configuration 116 32 Meter 2 Gas Composition 148 32 Meter 2 Scaling Parameters 180 12 Meter 2 Output Data 192 32 Meter 3 Configuration 224 32 Meter 3 Gas Composition 256 32 Meter 3 Scaling Parameters 288 12 Meter 3 Output Data 300 32 Meter 4 Configuration 332 32 Meter 4 Gas Composition 364 32 Meter 4 Scaling Parameters 396 12 Meter 4 Output Data 408 32 Table A 2 Common Input Parameters Register Offset Parameter Minimum Maximum Comment 0 Number of Meters 1 4 To PCM 1 COMREQ Status 0 2 Not Ready 1 Ready FromPCM 2 CalculationTime ms 0 From PCM 3 7 Not Used A 1 Table A 3 Meter Configuration Register Offset Parameter Minimum Maximum Comment 0 Not Used 1 Not Used 2 Not Used 3 Units 0 USA 1 not used 4 Not Used 5 Tap Style 1 Flange 2 Pipe 6 Tap Location 1 Upstream 2 Downstream 7 SupercompressibilityMethod 1 NX 19 2 KATZ 8 Density 0 1 0000 Multiplier 10 000 9 Barometric Pressure 0 655 35 M
8. sequence to initialize the OIT select the LOCAL mode press the Enter key press the Esc key enter the key sequence gt 255u press the Ctrl 1 key sequence select the ONLINE mode Remove the keyboard connection from the back of the OIT Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 Flow Computer Configuration The configuration parameters and options for configuring the Flow Computer are discussed in the following paragraphs Process Units There are two choices of process units documented for the AGA 3 standard IP USA and SI International This version of the Flow Computer product supports the IP units only Source code changes to the flow computer program are required to accept input and display results in SI International units To find the units used for a particular input or output parameter of the Flow Computer see page 34 of the AGA report number 3 entitled Orifice Metering of Natural Gas referenced in the Related Publications List in the Preface of this manual Analog Inputs Each analog input must be a two s complement 16 bit value within the AI 16 bit word If third party VME analog modules are used ladder logic may be needed to left justify or sign extend the data in the AI input word to a full 16 bit value The Flow Computer provides programmable scaling that allows the analog inputs to be converted from counts to process units Th
9. the PCM This is further described in the discussion below under COMREO Instruction The Flow Computer register structure consists of 108 registers per meter plus 8 registers at the beginning of the database for information common to all meters The database format is illustrated in Appendix A Chapter 2 Installationand Configuration 2 7 The Flow Computer requires only those registers needed for the number of meters configured For example if two meters are configured then the register database will consume 8 2 x 108 or 224 registers The maximum number of registers used with 4 meters is 8 4 x 108 or 440 registers For convenience in retrofit applications the register database can be relocated anywhere in the PLC register table by specifying the starting address through the COMREQ instruction COMREQ Instruction Ladder logic is necessary to issue a COMREQ instruction to the Flow Computer to e download the configuration registers to the Flow Computer or e enable the Flow Computer to periodically write the calculated results to the PLC registers The Flow Computer reads the PLC register configuration data and saves it in its non volatile RAM configuration file CONFIG DAT whenever the PLC issues a COMREQ instruction to the PCM The COMREQ must specify a starting register address for a group of register parameters which contain the register pointer to the Flow Computer database An external operator interface can downlo
10. 00 LEN 00001 IMOVE INT CONST IN QI TUBEDIA 07625 LEN 00001 IMOVE INT CONST IN QI CRIT P2 00000 LEN 00001 MOVE INT CONST IN QI CRIT T2 00000 LEN 100001 C FLOW70E Block Page _MAIN D 4 Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 GFK 0685 01 20 92 lt RUNG T00006 CONST 00000 lt RUNG T00006 CONST 00000 lt RUNG T00006 CONST 00000 lt RUNG T00006 CONST 00000 lt RUNG T00006 CONST 00000 Program 10 42 GE FANUC SERIES 90 70 DOCUMENTATION v3 03 FLOW COMPUTER LADDER LOGIC EXAMPLE l IN Q KATZCO2 LEN 00001 l IN Q BASECOM LEN 00001 IN QI NITROGN LEN 000011 FLOW70E IMOVE INT CONST IN Q KATZH2S 00000 LEN 00001 MOVE INT CONST IN Q NXMTHD 00000 LEN 100001 MOVE_ INT l l CONST IN QI HELIUM2 00000 LEN 000011 MOVE_ INT l l CONST IN Ql CO 00000 LEN 000011 MOVE INT l l CONST IN QI OXXGEN 00000 LEN 000011 C FLOW70E Block Page _MAIN AppendixD Example Ladder Logic D 5 01 20 92 10 42 lt RUNG 19 gt gt lt RUNG 20 gt gt lt RUNG 21 gt gt S
11. 0076 lt RUNG 35 gt gt eM EQ l INT T00052 A jQ ee ee emere a a es ee j CONST I2 00001 lt RUNG 36 gt gt ALW ON ee 000001 ONDTRT 11 00s T00100 ad Pall ge iR DRE IR CONST PV CV 00005 s s R00012 lt RUNG 37 gt gt ALW ON 2 2 000050 ONDTRT 10 10s T00050 dj ede ee eo IR CONST PV CV 400050 RO0001 Program FLOW70E C NFLOW70E Block MAIN 9 AppendixD Example Ladder Logic D 9 01 20 92 10 45 lt RUNG 38 gt gt T00050 lt RUNG 40 gt gt ALW_OFF END OF PROGRAM Program FLOW70E GE FANUC SERIES 90 70 DOCUMENTATION FLOW COMPUTER LADDER LOGIC EXAMPLE Eh SEN BLKMV INT CONST 1 QI SRO0005 400001 CONST 2 400000 CONST 3 400008 CONST 4 100009 CONST 5 400000 CONST 6 400000 CONST 7 400500 lt RUNG 39 gt gt IMOVE INT CONST IN Q RO0501 R0O0005 00000 LEN 00001 CONST 0002 CONST 000000003 LOGIC C FLOW70E v3 03 ES Block Page T00100 _MAIN 10 D 10 Series90 Programm
12. 1 Appendix B Diskette Piles unn AAA B 1 AppendixC Config dat and Volume dat Files Default Values C 1 AppendixD Example Ladder Loge D 1 GFK 0685A Series90 Programmable Controllers Flow Computer User s Manual September 1993 V Contents Figure 1 1 Flow Computer System with Local Operator Interface Figure 1 2 Flow Computer System with CIMPLICITY 90 ADS GFK 0685A Series90 Programmable Controllers Flow Computer User s Manual September 1993 vi Table 2 1 Table A 1 Engineering Units for Flow Computer Results Flow Computer Data Table Table A 2 Table A 3 Table A 4 Table A 5 Table A 6 Table C 1 Table C 2 Common Input Parameters Meter Configuration Gas Composition Analog Scaling Parameters Output Data Block Config dat File Defaults Volume dat File Default GFK 0685A Contents Series90 Programmable Controllers Flow Computer User s Manual September 1993 vil 2 11 A 1 A 1 A 2 A 3 A 3 A 4 C 1 C 1 Chapter Introduction to the Flow Computer 1 This chapter provides an introduction to the GE Fanuc Flow Computer for the Series 90 30 and Series 90 70 Programmable Logic Controllers Product Overview The Series 90 Flow Computer is a Series 90 30 or Series 90 70 Programmable Coprocessor Module PCM based Megabasic program catalog number IC641SWP064 which calculates the gas flow rate and volume for orifice meter applications in accordance with the AGAS standard using eit
13. 26 gt gt T00006 INT CONST IN QI MX P EU 120000 LEN 100001 lt RUNG 27 gt gt T00006 INT CONST IN Q MX_T_EU 10000 LEN 00001 lt RUNG 28 gt gt S IDOUDO INT l l CONST IN QI MXDP EU 10000 LEN 000011 Program FLOW7OE IMOVE IMOVE IMOVE MOVE IMOVE GE FANUC SERIES 90 70 DOCUMENTATION v3 03 FLOW COMPUTER LADDER LOGIC EXAMPLE MOVE_ INT l l CONST IN QI NHEPTAN 00000 LEN 000011 MOVE INT l l CONST IN QI NNONANE 00000 LEN 000011 MOVE INT CONST IN QI MN P EU 00000 LEN 00001 MOVE_ INT CONST IN Q MN_T_EU 00000 LEN 00001 MOVE INT l l CONST IN QI MNDP EU 00000 LEN 100001 C FLOW70E Block Page _MAIN 7 AppendixD Example Ladder Logic D 7 01 20 92 10 43 lt RUNG 29 gt gt TOO006 INT CONST IN QI MX P CT 32000 LEN 00001 lt RUNG 30 gt gt T00006 INT CONST IN Q MX_T_CT 32000 LEN 1000011 lt RUNG 31 gt gt T00006 INT CONST IN Q MXDP_CT 32000 LEN 00001 lt RUNG 32 gt gt 100006 INT l l CONST IN QI STAT P 14640
14. E 2 PIPE sad TAP LOCATION l UPSTRM 2 DOWNSTRM SLE ORIFICE DIAMETER INCHES or CENTIMETERS 58 15 TUBE DIAMETER INCHES or CENTIMETERS 2 625 RELATIVE DENSITY f x45 BAROMETRIC PRESSURE PSIA or KPascal 2 FALT BASE PRESSURE PSIA or KPascal t 15 02 BASE TEMPERATURE FARENHEIT or CENTIGRADE 60 6 10 FLOW COMPUTER OK MC SYSTEM CONFIG KATZ NX19 SCALING RESULTS F8 F9 SEN 5 Katz supercompressibility screen this screen allows entry of five parameters required to configure the meter for Katz supercompressbility l UN STANDING KATZ INPUT PARAMETERS FOR METER 1 CRITICAL PRESS PSIA 0 CRITICAL TEMP deg R 0 MOLE FRACTIONS CARBON DIOXIDE 0 HYDROGEN SULFIDE 0 BASE SUPERCOMPRESSIBILITY 0 6 05 FLOW COMPUTER OK EDIT SYSTEM CONFIG KATZ NX19 SCALING RESULTS F8 F9 HELP GFK 0685 Chapter 2 Installationand Configuration 2 13 2 14 6 NX 19 supercompressibility screen This screen requires selection of one of the two NX 19 supercompressibility methods These methods are described in the Manual for the Determination of Supercompressibility Factors for Natural Gas as referenced in the Related Publications list in the preface in this manual They are the Standard Method for gas densities less than 0 75 and the Methane Gravity Method for densities greater than 0 75 The MolalAnalysis and Heating Value methods are not supported by the Flo
15. FANUC GE Fanuc Automation Programmable Control Products Series 90 Programmable Controllers Flow Computer User s Manual GFK0685A September 1993 GFL 002 Warnings Cautions and Notes as Used in this Publication Warning notices are used in this publication to emphasize that hazardous voltages currents temperatures or other conditions that could cause personal injury exist in this equipment or may be associated with its use In situations where inattention could cause either personal injury or damage to equipment a Warning notice is used Caution notices are used where equipment might be damaged if care is not taken Note Notes merely call attention to information that is especially significant to understanding and operating the equipment This document is based on information available at the time of its publication While efforts have been made to be accurate the information contained herein does not purport to cover all details or variations in hardware or software nor to provide for every possible contingency in connection with installation operation or maintenance Features may be described herein which are not present in all hardware and software systems GE Fanuc Automation assumes no obligation of notice to holders of this document with respect to changes subsequently made GE Fanuc Automation makes no representation or warranty expressed implied or statutory with respect to and assumes no responsibi
16. IBM PS 2 use PCM cable IC690CBL705 IBM PC AT use PCM cable IC690CBL701 e IBM PC XT use PCM cable IC690CBL702 IBMand PS 2 are registered trademarks of InternationalBusinessMachinesCorporation GFK 0685 2 1 A local operator interface VT100 compatible terminal is optional and can be connected to port 2 on the PCM The IC690CBL705 cable can be used for distances up to 10 feet If you need a longer cable detailed information on cable connections for port 2 is specified in Appendix A of the PCM and Support Software User s Manual GFK 255 The default baud rate for port 2 is 19 2K If hardware handshaking is selected but a local operator interface is not connected to the PCM change the handshake select to software handshake For other baud rates the PCM configuration file can be modified and downloaded to the PCM using PCOP PCM Development Software For detailed information on using PCOP see the Series 90 PCM Development Software PCOP User s Manual GFK 0487B or later version The following VT100 compatible terminals have been tested and are recommended for operation with the Flow Computer e GE Fanuc color OIT catalog number IC600KT512D e DEC VT100 Other VT100 terminals or terminal emulators may be compatible with the Flow Computer but have not been tested PLC Configuration Register Size The requirements for configuring the PLC for operation of the Flow Computer are described in this section Connect the Work
17. LOT PLC ID M Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 5 Select F9 Utility CONFIG Im TERMF STATUS JCTL FOLDER UTILTY cave jissa em A Lon St E EE PROGRAM UTILITY FUNCTIONS c Save File s gt From PCM to Current Folder Load Filets gt To PCM from Current Folder Directory of Files Currently Resident on PCM and in Current Folder c Delete File 8 from PCM or Current Folder Delete fill Files from PCM CIMPLICITY Ctm 98 Alphanumeric Display System Graphics Display System ONL INE FACTORY a FLOW70 PCM DES PCM ID RACK E SLOT E PLC ID AM v 6 Select Load with the F2 key Tab through the selections to the Specify mode then enter the first file to be loaded and type Return Repeat this process until all files from the following list have been loaded to the PCM AGA PGM CALC CRN OLPGM VT100 5 PGM UCDECDF CONFIG DAT VOLUME DAT Initial Startup GFK 0685 To startup the Flow Computer and check it for correct operation connect an OIT or DEC VT100 compatible terminal to port 2 on the PCM stop the PLC and do a soft reset press button for less than 5 seconds of the PCM At initial startup the Flow Computer uses the default configuration in its non volatile RAM CONFIG DAT file as listed in Appendix C The copyright screen will appear for five seconds followed by the results screen A stat
18. METER_CALC_PERIOD 2 5 seconds A watchdog timer can be used to sense Flow Computer OK as illustrated by the ladder logic in Appendix D If it is necessary to change the location of the Flow Computer OK flag from T100 use the Megabasic editor or the Basic87 exe program provided with PCOP to edit the line FLOC T100 in the AGA PGM source file When the Flow Computer is started for the first time by a soft reset hard reset or power cycle the volume will equal zero in the VOLUME DAT file Within twenty seconds the Flow Computer will begin calculating a flow rate and volume based on the configuration in the CONFIG DAT file and the analog values in the PLC AI table Warm Start By definition the only difference between a cold start and warm start is that the volume parameter is zero at a cold start On a warm start the volume parameter is non zero and the Flow Computer will begin accumulating volume from there To reset the volume to zero see Resetting Volume below Resetting Volume GFK 0685 There is an automatic volume reset which takes place once each day at the time specified by the Reset Time parameter in the System screen Volume can also be reset manually by selecting the meter number in the System screen parameter Reset volume for meter number The volume for all meters can also be cleared by reloading the VOLUME DAT file from diskette to the Flow Computer PCM then restarting the Flow Computer Chapter 3
19. PCOP SOFTWARE Figure 1 2 Flow Computer System with CIMPLICITY 90 ADS 1 2 Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 Definition of Terms The following acronyms are used throughout this manual and are defined here for clarity ADC Alphanumeric Display Coprocessor ADS Alphanumeric Display System AGA American Gas Association ASCII American National Standard Code for Information Interchange BCD Binary Coded Decimal COMREQ Communications Request instruction CPU Central Processing Unit EPROM Erasable Programmable Read Only Memory H Hexadecimal UO Input Output K 1024 KB Kilobyte 1024 bytes LD Ladder Diagram language same as RLD MB Megabyte 1 048 576 bytes OEM Original Equipment Manufacturer PC Personal Computer IBM compatible PCM Programmable Coprocessor Module PCOP PCM development software PLC Programmable Logic Controller PROM Programmable Read Only Memory PS Power Supply RAM Random Access Memory RLD Relay Ladder Diagram SCADA Supervisory Control and Data Acquisition UCDF User Configuration Data For a complete definition of AGA terms relevant to the use of the Flow Computer refer to page 34 of the Orifice Metering of Natural Gas dated May 1991 GFK 0685 Chapter 1 Introduction to the Flow Computer 1 3 Chapter Installation and Configuration 2 This chapter describes hardware requirements configuration requirements and explains how to install and start the Flow Comp
20. R 2048 REGISTER R00907 ANALOG INPUT AI 64 ANALOG INPUT A10012 Ki ANALOG OUTPUT AQ 64 ANALOG OUTPUT ONE C a PROGRAM SIZE BXTES 2000 K GE 6t Si bere Kok BEE BEEK BEEK e Kok CEE BEEK EEE OE CE GEE OE EE EE OE LE Neko EE EE BEE EE EE BEE EE Program FLOW70E C FLOW70E 01 20 92 10 40 GE FANUC SERIES 90 70 DOCUMENTATION v3 03 Page 2 FLOW COMPUTER LADDER LOGIC EXAMPLE KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK PROGRAM BLOCK MAIN E CT PROGRAM REGISTER P MEMORY SIZE BYTES 0 PROGRAM BLOCK SIZE BYTES 1939 DECLARATIONS ENTRIES 58 HIGHEST REFERENCE USED S ee AAA AA NPUT 1 NONE OUTPUT Q 000002 INTERNAL M NONE TEMPORARY T T00100 LOCAL REGISTER L NONE PROGRAM REGISTER P NONE REGISTER R R00907 As ANALOG INPUT AI AI0012 ANALOG OUTPUT AQ NONE X 3 KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK Program FLOW70E C FLOW70E Block _MAIN Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 GFK 0685 01 20 92 10 41 I START OF LD PROGRAM INTERRUPTS lt RUNG 5 gt gt T00006 MOVE l INT l l CONST IN Q D_BASE 00500 LEN 000011 lt RUNG 6 g
21. RE NR E UCEES ER RA ER eee AS 1 3 Chapter 2 Installation and Configuration oooooooooooommomooPoPo 2 1 What You Will Need sssssssss e 2 1 PLC Configuration ia a Eeer Ee 2 2 Register Size ii e eoe eee Bede aye A eee 2 2 Analog Inputs c A A Sha Mee 2 2 Relocating Analog Inputs 0 ccc eee eee 2 3 Software Installation 2 3 Initial Startup rsrs zoe ld dle 2 5 Flow Computer Configuration 0 0 cece eee eee 2 7 Process Units eL eelere ag 2 7 Amalog EE 2 7 Register Based Configuration ss 2 7 Register Data Structure 2 7 COMREO Instruction 0 00 ccc cent een n eens 2 8 Ladder Logic Example 6 2 9 EIMELICIT ADA DS 50h MA A A Y a do 29 Configuration Using the Local Operator Interface 2 10 Entering Configuration 2 15 Time Display Ji mee mee EES e en bon aed And 2 15 Archiving the Flow Computer Configuration oooooocccooooo 2 16 Chapter 3 Operation EE 3 1 Fower Upee iati ati da e e Pane his oie oed ere De 3 1 COMREQ Interrupts ooa a i e E EE E a 3 1 Calculations Interrupt 0 n saerad cee a e eee 3 2 RAM Disk Operation nenicur pien i eaaa eee eens 3 3 Flow Computer OK serge wile e wf phe eda E beste Rien 3 3 Cold Hat EE eebe eebe 3 3 Warmiotart e quoe dece eege ioe Sharan tan Biel sone E 3 3 Resetting Volume see REES eee Ee ae aaa 3 3 AppendixA Register Data Structure 0 ccc ccc cece ee eee nnn A
22. S S A8 MAX DIFF PRESS COUNTS 32000 M DIFF PRESS COUNTS 0 6 07 FLOW COMPUTER OK SYSTEM CONFIG KATZ SCALING RESULTS F8 F9 NS HELP A Entering Configuration To enter or change the value of a parameter on any of the screens you must be in the edit mode To select the editor press the F1 key A reverse video cursor will appear at the first parameter To scroll to a particular parameter use the UP and DOWN arrow cursor keys To change the value of the parameter type in the new number then press the Enter key The editor supports free form entry of integers or real numbers and correction of errors by using the Back Space key The Flow Computer performs range checking of all configuration parameters during entry If a parameter is rejected an out of range message will appear for five seconds the original value will be restored and you can then re enter the parameter A table of the valid input range and usable significance for each parameter is shown in Appendix A To exit the editor and save the new configuration press the F1 key again or select another screen using the appropriate function key Note The screen status message Flow Computer OK is not updated while in the edit mode When editing has been completed the message will be updated with the new Flow Computer status The Flow Computer OK flag in T100 is updated while in the edit mode Time Display For convenience the time is p
23. T00006 INT CONST IN QI ETHANE 00000 LEN 100001 lt RUNG 22 gt gt T00006 INT l l CONST IN Q ISOBUT 00000 LEN 000011 lt RUNG 23 gt gt TO0006 CONST IN QI ISOPENT 00000 LEN 00001 Program FLOW70E TOO006 p p IMOVE p INT CONST IN Ql H2S 00000 LEN 00001 T00006 IMOVE INT l l CONST IN Ql C02 00000 LEN 100001 MOVE_ MOVE_ MOVE_ GE FANUC SERIES 90 70 DOCUMENTATION v3 03 Page FLOW COMPUTER LADDER LOGIC EXAMPLE IMOVE INT CONST IN Q ARGON 00000 LEN 100001 MOVE INT CONST IN Q METHANE 00000 LEN 00001 MOVE INT CONST IN QI PROPANE 00000 LEN 00001 MOVE_ INT l l CONST IN QI NBUTANE 00000 LEN 000011 IMOVE INT l l CONST IN QI NPENTAN 00000 LEN 000011 C FLOW70E Block _MAIN D 6 Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 GFK 0685 01 20 92 10 43 lt RUNG 24 gt gt 1700006 INT l l CONST IN QI NHEXANE 00000 LEN 000011 lt RUNG 25 gt gt TOO006 ENT CONST IN QI NOCTANE 00000 LEN 00001 lt RUNG
24. able Controllers Flow Computer User s Manual September 1993 GFK 0685 GFK 0685 01 20 92 10 45 GE FANUC SERIES 90 70 DOCUMENTATION v3 03 Contents 1 OMEN LOGIC TABLE OF CONTENTS AER FLOW70E 1 _MAIN 2 logic 3 Program FLOW70E C NFLOW70E TABLE OF CONTENTS AppendixD Example Ladder Logic GFK 0685 A Acronyms List of ADC module Series 90 30 ADC module Series 90 70 aps fi DEZ ADSsubdirectory AGA 3 standard IP USA AGA 3 standard SI international Analog inputs for flow computer Analog inputs parameters required b 7 Analog inputs relocating 2 3 Appendices list of Config dat and Volume dat Default files dde files example ladder logic 1 register data structure A Archiving configuration to diskette B Benefits flow computer C Cables required Calculations interrupt Checking range 8 2 CIMPLICITY 90 ADS external operator interface A Cold start 3 3 Computer requirements COMREQ frequency of execution instruction interrupt ladder logic requirements 2 8 Configuration information Configuration range checking Configuration with local operator inter face Configuration entering Index Configuration PLC Configuration register based P 7 D Data structure register 2 7 Definition of terms 1 3 Description of flow computer Disk RAM 3 3 Diskette files list of Diskette for archiving configuration Displaving time
25. ace is being used for configuration The Flow Computer local operator interface consists of seven built in screens which are described below These screens have the same look and feel as those provided for CIMPLICITY 90 ADS A Help screen is also provided The local operator interface is function key driven Remember that the four configuration screens display parameters for one meter ata time The displayed meter number can be changed in the System screen The local operator interface consists of the following seven screens 1 Title screen this screen displays a copyright notice and the Flow Computer Revision number for the first five seconds after startup l UN GE FANUC FLOW COMPUTER COPYRIGHT 1991 GE FANUC AUTOMATION NORTH AMERICA INC Published in a limited copyright sense and all rights including trade secret rights are reserved Unauthorized use of information or program is strictly prohibited Revision 1 01 2 10 Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 GFK 0685 2 Results screen this screen displays the calculated results Since the configuration file in the non volatile PCM RAM is defaulted to four meters the results screen should be displaying the results for these meters soon after initial startup There is no operator input required in the results screen A Series 90 70 PCM will update its screen about once every two seconds with four meters confi
26. ad new meter configuration to the PLC registers then cause the registers to be read by the Flow Computer by activating the COMREO instruction in one of the following ways e by activating a one shot contact placed in series with the COMREQ instruction The advantage of this method is higher performance since there is no continuous COMREQ overhead e by activating a COMREO periodically such as once every five seconds through a PLC timer This is the method chosen for the ladder logic example in Appendix D which must be used to operate the example ADS screens provided with the Flow Computer The advantage of this method is simplicity since the Host computer or the external operator interface does not need to cause a one shot triggered COMREQ to occur after the configuration is changed in the registers A disadvantage of this method is that Flow Computer configuration cannot be modified from the local operator interface since the next update from the Flow Computer register database will overwrite any local operator interface changes Note To avoid PCM mis operation the ladder logic should not excessively burden the Flow Computer with COMREQs Frequent more than 1 per second COMREQs may lead to sluggish Flow Computer operator interface response and may slow down the meter calculations to an unacceptable level If COMREQs must be sent more often than once per second use the COMREQ Status flag located in the common parameters area of the F
27. ata sources The AGA1 SCN file contains the Flow Computer ADS title screen def initions The AGA2 SCN file contains the Flow Computer ADS results screen definitions The AGA3 SCN file contains the Flow Computer ADS system screen definitions The AGA4 SCN file contains the Flow Computer ADS meter configu ration screen definitions The AGA5 SCN file contains the Flow Computer ADS Katz super compressibility screen definitions The AGA6 SCN file contains the Flow Computer ADS NX 19 super compressibility screen definitions The AGA7 SCN file contains the Flow Computer ADS title screen def initions The FLOW30E and FLOW70E subdirectories contain the example Logicmaster 90 folder files for the Series 90 30 and Series 90 70 respectively Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 Appendix C GFK 0685 Config dat and Volume dot Files Default Values The two tables in this appendix list the default values for the Config dat and Volume dat files Table C 1 Config dat File Defaults Parameter Value Number of Meters 4 AT Reference 1 Volume Reset Time 800 8 AM Units 0 IP Tap Style 1 Flange Tap Location 2 Downstream SupercompressibilityMethod 1 NX 19 Density 6 Barometric Pressure 14 7 Base Pressure 15 02 Base Temperature 60 Orifice Diameter 4 75 Tube Diameter 7 625 Maximum Static Pressure 2000 0 Minimum Static Pressure 0 Maximum Stati
28. ature 0 655 35 Multiplier 100 3 Minimum Static Temperature 0 655 35 Multiplier 100 4 Maximum Differential Pressure 0 655 35 Multiplier 100 5 Minimum Differential Pressure 0 655 35 Multiplier 100 6 Maximum Static Pressure counts 32000 32000 7 Minimum Static pressure counts 32000 32000 8 Maximum Static Temperature counts 32000 32000 9 Minimum Static Temperature counts 32000 32000 10 Maximum Differential Pressure counts 32000 32000 11 Minimum Differential Pressure counts 32000 32000 GFK 0685 Appendix A Register Data Structure A 3 A 4 Table A 6 Output Data Block Register Offset Parameter Comment 0 Density Factor Multiplier 10000 1 Pressure Base Factor Multiplier 10000 2 Temperature Base Factor Multiplier 10000 3 Flow Temperature Factor Multiplier 10000 4 Gas Exp Factor Multiplier 10000 5 Reyn Number Factor Multiplier 10000 6 SupercompressibilityFactor Multiplier 10000 7 FlowingCompressibility Multiplier 10000 8 Basic Orifice Factor Multiplier 10000 9 Unused 10 Orifice Flow Const Double Precision Multiplier 10000 12 Flow per Hour Double PrecisionMMCF HR 14 Volume Double Precision MCF or 103M 16 Flow per Day Double PrecisionMMCF DAY 18 31 Unused Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 Appendix Diskette Files B The FLOW30 PCM and FLOW70 PCM subdirectories conta
29. c Temperature 100 00 Minimum Static Temperature 0 Maximum Differential Pressure 100 00 Minimum Differential Pressure 0 NX 19 Method O standard Nitrogen 001 Carbon Dioxide 005 Other Compounds 0 Table C 2 Volume dat File Default Parameter Value Volume 0 C 1 Appendix Example Ladder Logic GFK 0685 D This appendix provides an example of the ladder logic for the Series 90 70 Flow Computer For a description of this ladder logic see Ladder Logic Example in Chapter 2 Installation and Configuration 01 20 92 10 40 GE FANUC SERIES 90 70 DOCUMENTATION v3 03 Page 1 FLOW COMPUTER LADDER LOGIC EXAMPLE GGGG EEEEE FFFFF AAA N N U U CCEC G E F A AN N U U C G GGG EEEE FFF AAAAA NNN U UC G GE F A AN NN U y GGG EEEEE F A AN N UUU CECE AAA U U TITIT 000 M M AAA TTTTT 11111 000 N N A AU U T O O MM MMA A T T O ONN N AAAAA U U T O O M M M AAAAA T E O ONNN A AU U T O OM MA A T I O ON NN A A UUU T 000 M MA A T IIIII 000 N N CRRA EAR AA AK KKK AK AK AK AK AK AK HK AK AK AK TARTA A BAK BK ABABA ABABA AB AE ABA A KAKA A RAE X Program FLOW70E 2 PLC PROGRAM ENVIRONMENT HIGHEST REFERENCE USED Zeene Kg ene A c Stee Kg eege a ko INPUT I 512 INPUT ONE EZ OUTPUT SO 512 OUTPUT 000002 bb INTERNAL M 2048 INTERNAL ONE TEMPORARV T 256 TEMPORARY T00100 PROGRAM REGISTER P NONE PROGRAM REGISTER ONE REGISTER
30. culations for all meters proceed in a round robin fashion i e meter 1 on the first interrupt meter 2 on the second interrupt etc In a four meter system each meter will be calculated once every 10 seconds The frequency of the calculations was selected to be once every 2 5 seconds based on the performance of a Series 90 30 PCM For the Series 90 30 PCM the time required by the Flow Computer to process one meter ranges from 1 02 seconds with no COMREQs to 1 47 seconds with COMREQs This leaves about 1 second out of every 2 5 second period for the local operator interface background task to update the screen and respond to the keyboard In a Series 90 70 PCM the meter processing time ranges from 45 seconds with no COMREO instructions to 62 seconds with COMREO instructions This leaves about 1 8 seconds out of every 2 5 second period for the local operator interface background task to update the screen and respond to the keyboard When faster calculations are required it may be possible to increase the calculation frequency by decreasing the timer period below 2 5 seconds The Calculation Time is saved in the PLC registers each calculation pass and can be viewed with Logicmaster 90 It is stored in the Common Parameters section of the register table see Appendix A If the Calculation Time is significantly below 2 5 seconds the calculation frequency can be increased by editing the AGA PGM source code line METER_CALC_PERIOD 2500 and cha
31. d in the PLC ladder logic The COMREQ specifies a register pointer which will be used to access the Flow Computer register database on the next calculation interrupt Once a COMREQ has been received by the Flow Computer it reads all of the configuration registers for each meter one time The Flow Computer will not read the PLC registers again until another COMREO interrupt is received Once a COMREQ has been issued the Flow Computer will continue to update the PLC register results until a soft or hard reset or power cycle occurs Range checking is done on a configuration that is downloaded via a COMREQ If an out of range parameter is downloaded it will be ignored The status message Flow Computer Not OK will appear on the local operator interface and the Flow Computer OK flag in T100 will be setto 0 This diagnostic is automatically cleared when the out of range register s is corrected and a new COMREQ instruction executed Calculations Interrupt Acalculations interrupt occurs every 2 5 seconds This interrupt causes the meter configuration to be read from the PLC if a fresh COMREQ has occurred and analog inputs to be read from the PLC and results to be calculated Results will be stored in the PLC registers if any COMREQs have been received since Flow Computer startup The flow volume is saved in non volatile RAM so that it can be restored following a power interruption or soft reset Each timer interrupt processes only one meter Cal
32. e scaling parameters are entered either through the PLC registers or with the local operator interface Four parameters must be supplied for each of the analog inputs 1 Minimum and Maximum Counts this is the maximum range of the AI analog input The default values are 0 and 32000 respectively corresponding to ranges 0 to 5V 0 to 10V and 0 to 20 ma For a 10 to 10 volt input it will be necessary to change the Minimum Counts to 32000 2 Minimum and Maximum Units these are the minimum and maximum process values corresponding to the Minimum and Maximum Counts respectively The default values for these parameters and their maximum ranges are listed in the Register Data Structure Appendix A and in the CONFIG DAT file Appendix C Register Based Configuration GFK 0685 If the PLC registers are to be used for configuration they must be set up prior to starting the Flow Computer If PLC registers will not be used to configure the Flow Computer this discussion can be skipped by proceeding to the discussion under Configuration Using the Local Operator Interface Register Data Structure The Flow Computer may be configured from the PLC registers using Logicmaster 90 Configuration software or from the CIMPLICITY 90 ADS product A complete set of ADS screens is provided on the Flow Computer diskette If the CIMPLICITY 90 ADS operator interface is used ladder logic must be present in the PLC to issue a COMREQ instruction to
33. eriodically read from the PLC and displayed in the Hour Minute HH MM format at the lower right of the screen Chapter 2 Installation and Configuration 2 15 Archiving the Flow Computer Configuration The Flow Computer configuration can be archived to diskette once it has been entered or updated Save the CONFIG DAT file from the Flow Computer PCM to a hard disk or diskette file using the PCOP utility The procedure for using PCOP to save files is similar to that used earlier during Software Installation to load files to the PCM except that Save instead of Load must be selected Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 Chapter Operation 3 This chapter describes the operating features of the Flow Computer Power Up The Flow Computer can be started by pressing the PCM soft reset key or by cycling power to the PLC On start up the Flow Computer restores the meter configuration and last calculated volume from its non volatile RAM then performs calculations on a periodic basis If a configuration parameter or analog input is out of range the status message Flow Computer Not OK will appear at the lower right corner of the screen which means that calculations have been halted for the meter that has an error After the fault is corrected the Flow Computer will automatically clear the diagnostic and resume calculations for that meter Following a soft reset or power c
34. f Natural Gas and Other Hydrocarbon Fluids AGA Transmission Measurement Committee Report No 3A dated 1985 GFK 0262 Series 90 70 Programmable Controller Installation Manual GFK 0356 Series 90 30 Programmable Controller Installation Manual GFK 0263 Logicmaster 90 Programming Software User s Manual GFK 0265 Series 90 70 Programmable Controller Reference Manual GFK 0466 Logicmaster 90 30 and 90 20 Programming Software User s Manual GFK 0467 Series 90 30 90 20 Programmable Controllers Reference Manual GFK 0401 Workmaster amp II PLC Programming Unit Guide to Operation GFK 0255 Series 90 Programmable Coprocessor Module and Support Software User s Manual GFK 0487 Series 90 PCM Development Software PCOP User s Manual GEK 90817 OIT User Manual GFK 0499 CIMPLICITY 90 ADS Alphanumeric Display System User s Manual GFK 0641 CIMPLICITY 6 90 ADS Alphanumeric Display System Reference Manual At GE Fanuc Automation we strive to produce quality technical documentation After you have used this manual please take a few moments to complete and return the Reader s Comment Card located on the next page Henry A Konat Senior Technical Writer Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 Contents Chapter 1 Introduction to the Flow Computer 1 1 Product Overview 2 ected cleanin a a EEN ween 1 1 System Configuration iaee ia eee eens 1 2 Definition Of Terms soc
35. gured A Series 90 30 PCM with four meters will update about once every ten seconds The units displayed for the flow rate and volume results are as follows Table 2 1 Engineering Units for Flow Computer Results Parameter IP Units Flow Hour MMCF Hr Flow Day MMCF Day Volume MCF d AN Meter 1 Meter 2 Meter 3 Meter 4 ANALOG PF 889 31 889 31 889 31 889 31 TF 96 50 96 50 96 50 96 50 HW 24 73 24 73 24 13 24 73 FLOW FACTORS Fb 5000 7980 5000 7980 5000 7980 5000 7980 Fgr 2910 2910 2910 2910 Ftb 0000 0000 0000 0000 Ys 00014 00014 00014 00014 Fpb 98069 98069 98069 98069 Ftf 96663 96663 96663 96663 Fr 00031 00031 00031 00031 Fpv 0560 0560 0560 0560 Z Flowing 00000 00000 00000 00000 FLOW RESULTS OF 6465 7358 6465 7358 6465 7358 6465 7358 FLOW MMCF HR 0 966781 0 966781 0 966781 0 966781 VOLUME MCF 1319 959455 807 848322 797 292448 790 103399 FLOW MMCF DAY 23 20275 23 20275 23 20275 23 20275 6 07 FLOW COMPUTER OK Fl SYSTEM CONFIG KATZ NX19 SCALING RESULTS F8 F9 HELP GH B Chapter 2 Installationand Configuration 2 11 2 12 System screen this screen allows you to enter parameters which are not meter specific The items which you can enter in this screen are Number of meters to be calculated this is the number of meters which will be periodically calculated It can be set to zero to improve local operator interface res
36. her the NX 19 or Standing Katz supercompressibility methods Gas composition can be manually entered using the operator interface Up to four orifice type meters can be supported by the Flow Computer simultaneously The Flow Computer can be used with only one of two operator interfaces 1 Local operator interface only The local operator interface can configure the Flow Computer and view the calculated results using seven built in screens PLC registers are not used and ladder logic is unnecessary when the local operator interface is used 2 CIMPLICITV 90 ADS operator interface only there is no local operator interface The CIMPLICITY 90 ADS Alphanumeric Display System operator interface communicates to the Flow Computer through the PLC registers A set of CIMPLICITY 90 ADS screens is provided on the flow computer diskette Note Although the local operator interface and external operator interface can be connected simultaneously restrictions apply as listed below The local operator interface and external operator interface are not intended to be used simultaneously The external operator interface cannot view configuration changes made by the local operator interface The most recent configuration change from either the external operator interface or the local operator interface takes precedence GFK 0685 1 1 System Configuration Two typical Flow Computer systems are illustrated below Figure 1 1 is a Flow Computer system
37. in the Flow Computer application program and data files Following is a list of these files AGAPGM CALC CRN OI PGM VT100 5 PGM UCDECDF CONFIG DA VOLUME DAT GFK 0685 The AGA PGM file is a PCM MegaBasic source file that contains the upper level Flow Computer procedures The CALC CRN file contains all of the calculation procedures called by the Flow Computer application program The calculations proce dures cannot be viewed or modified The OI PGM file is a PCM MegaBasic source file that contains the local operator interface procedures The VT100_5 PGM file is a PCM MegaBasic source file that contains utility functions called by the Flow Computer application program The UCDECDF file is a data file that contains the PCM user configu ration data The values are set to those required for the Flow Com puter application The CONFIG DAT file is a data file that contains the default Flow Computer configuration The configuration is changed by the user to those required by the application The VOLUME DAT file is a data file containing the current volume for all meters The default value is zero The ADS subdirectory contains a set of example Flow Computer ADS screens AGAALM AGACFG AGA1 SCN AGA2 SCN AGA3 SCN AGA4 SCN AGA5 SCN AGA6 SCN AGA7 SCN The AGA ALM file contains the Flow Computer alarm definitions The AGA CFG file contains the Flow Computer ADS configuration data including the PLC d
38. lity for the accuracy completeness sufficiency or usefulness of the information contained herein No warranties of merchantability or fitness for purpose shall apply The following are trademarks of GE Fanuc Automation North America Inc Alarm Master CIMSTAR Helpmate PROMACRO Series Six CIMPLICITY GEnet Logicmaster Series One Series 90 CIMPLICITY 90 ADS Genius Modelmaster Series Three VuMaster CIMPLICITYPowerTRAC Genius PowerTRAC ProLoop Series Five Workmaster Copyright 1992 1993 GE Fanuc Automation North America Inc All Rights Reserved Preface This manual provides the information necessary to install and use the Series 90 Flow Computer which is a Series 90 30 or Series 90 70 PCM based MegaBasic program This program calculates the gas flow rate and volume for orifice meter applications in accordance with the AC A3 standard using either the NX 19 or Standing Katz supercompressibility methods Features and Benefits Features and benefits of the Flow Computer are Feature Benefit PLC based High integration flexibility leads to lower system costs Choice of Series 90 70 or Series 90 30 PLC Series 90 30 facilitates low cost SCADA applications Series 90 70 for higher performance or VME applications Performs AGA3 gas calculations Industry standard Supports NX19 or Standard Katz supercompressibility Gas composition can be manually entered from an operator interface Built in operator interface Lo
39. low Computer database see Appendix A Table A 2 After sending a COMREQ to the PCM the ladder logic should clear this flag The next COMREQ should be issued only if the Flow Computer has restored the flag to a one indicating that the previous COMREO has been received Note that the COMREQ Status flag will not be set until aftera COMREQ has been issued Thus at power up or soft reset the PCM must be primed with the first COMREQ before the COMREQ Status will be set A PCM power up or soft reset can be Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 detected in ladder logic with a 5 second watchdog timer reset by the T100 Flow Computer OK flag as shown in the ladder logic example in Appendix D Ladder Logic Example The ladder logic example shown in Appendix D is provided with the Flow Computer in the FLOW30E and FLOW70E folders This example downloads the configuration registers and analog inputs to the Flow Computer once every five seconds The values correspond to those contained in the default CONFIG DAT file shown in Appendix C The first 34 rungs load this configuration into the register data structure which starts at R500 These rungs only execute when the T6 coil is manually set A Block Move instruction at rung 38 loads the seven registers required for the COMREQ instruction starting at register 5 Register 11 contains the pointer to the Flow Computer data structure which is R500
40. master II programming computer to the Series 90 70 or Series 90 30 PLC programming port To configure the PLC for the Flow Computer PCM enter the Logicmaster 90 Configuration package Select a PCM for the slot in which the Flow Computer is to be installed Configure the PCM for PCM CFG mode which will cause the Flow Computer to use its on board UCDF configuration file following a soft reset If the local operator interface is being used the PLC register table is not used and this section can be skipped For Flow Computer register based operation the PLC register table must be sized to assign a group of contiguous registers to the Flow Computer The Flow Computer register database size is 108 registers per meter plus 8 registers for common meter parameters This means that for a four meter system a total of 440 registers must be allocated This group of registers can be located anywhere within the PLC register table The starting address is assigned with a ladder logic COMREO instruction issued to the Flow Computer which will be explained later Analog Inputs Each Flow Meter requires three analog inputs to be operational Static Pressure Static Temperature and Differential Pressure The Flow Computer reads the analog inputs from the PLC periodically and calculates new results The analog inputs for all four Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 meters is contiguous in the PLC
41. nging the value from 2500 milliseconds to some lower value Note If a local operator interface is being used be careful not to set the interrupt period too low otherwise no time may be left to service the local operator interface This is noticeable by a screen which appears to be sluggish or dead even though the calculations continue Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 RAM Disk Operation The Flow Computer non volatile RAM data storage consists of a CONFIG DAT and VOLUME DAT file Default data files are supplied with the Flow Computer diskette which must be loaded to the PCM before initial startup The default values are shown in Appendix C On startup the CONFIG DAT and VOLUME DAT files are restored from the PCM non volatile RAM If a COMREQ occurs a local operator interface screen is exited or the editor is exited the CONFIG DAT file is updated with the new configuration The VOLUME DAT file is updated at the end of the calculation interrupt with the new calculated meter volume Flow Computer OK Cold Start The Flow Computer OK flag at T100 is a heartbeat from the PCM which when set indicates that all parameters are within range and that the Flow Computer is operational It is updated each time a meter s calculations are completed If an out of range condition exists in either the register parameters or the analog inputs it is reset The update frequency is equal to the
42. ponse time during initial setup Meter number to be displayed this parameter is used to change the meter number displayed in any of the other screens For instance in the Meter Configuration screen only the configuration for the current meter number will be displayed To select another meter it is necessary to change the displayed meter number in the System screen Analog input reference address this is the beginning reference address of the analog inputs in the AI table in the PLC Reset all meter volumes at HHMM this entry determines the time at which all meter volumes will be reset on a daily basis Entry isin HHMM Hour Minute format Reset volume for meter this is a one shot reset of the selected meter s volume N SYSTEM CONFIGURATION Number of meters to be calculated 7 4 Meter number to be displayed z Analog input reference address SZ Reset all meter volumes at HHMM 800 Reset volume for meter 0 6 10 FLOW COMPUTER OK uda SYSTEM CONFIG KATZ NX19 SCALING RESULTS F8 uccE9 uo Series90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 4 Meter configuration screen This screen allows configuration of most of the basic meter parameters such as Pipe and Orifice diameter as well as the supercompressibility method Katz or NX 19 f TA CONFIGURATION FOR METER f 1 SUPERCOMPRESSIBILITY l NX 19 2 KATZ 1 UNITS O IP 0 TAP STYLE 1 FLANG
43. t gt T00006 INT l l CONST IN QI NO MTRS 00004 LEN 100001 lt RUNG 7 gt gt T00006 CONST IN QI TAPSTXL 00001 LEN 00001 lt RUNG 8 gt gt T00006 INT l l CONST IN Q SUPER 00001 LEN 000011 Program FLOW7OE MOVE_ MOVE_ MOVE_ FLOW COMPUTER LADDER LOGIC EXAMPLE FLOW70E J VARIABLE DECLARATIONS PROGRAM BLOCK DECLARATIONS START OF PROGRAM LOGIC MOVE INT CONST IN Q UNITS 00000 LEN 00001 MOVE INT CONST IN Q TAP_LOC 00002 LEN 00001 o MOVE INT CONST IN Q DENSITY 06000 LEN 00001 C FLOW70E Block GE FANUC SERIES 90 70 DOCUMENTATION v3 03 Page _MAIN 3 AppendixD Example Ladder Logic D 3 01 20 92 lt RUNG T00006 CONST 01470 lt RUNG T00006 CONST 415020 lt RUNG T00006 CONST 04750 lt RUNG T00006 CONST 00000 lt RUNG T00006 CONST 00000 Program 10 41 GE FANUC SERIES 90 70 DOCUMENTATION v3 03 FLOW COMPUTER LADDER LOGIC EXAMPLE 9 gt gt IN QI BARPRES LEN 00001 IN QI ORIFDIA LEN 00001 l IN QI CRIT_P1 LEN 00001 l IN Q CRIT_T1 LEN 00001 FLOW70E MOVE_ INT CONST IN Q BASE_T 060
44. tioning Module Package Operator Interface Utilities Logicmaster 90 Utilities User Command Menu Logicmaster 90 Setup Package Exit to DOS Use the Shift function keys to select PLC type Use the function keys to start software package No C NLM90 P GFK 0685 Chapter 2 Installationand Configuration 2 3 3 The PCOP copyright screen will then be displayed Press the Enter key the Folder screen is now displayed f E E kuk E ONERE RR GNE o o SELECT OR CREATE A PROGRAN FOLDER Program Folder Is PLC Program Mame seeeeee Folders in Drawer C NLM90 lt lt Type a folder name or use the cursor keys to select an existing folder gt gt lt lt Use PgUp PgDn to page through folders Press ENTER to start selection gt gt 4 Insert the Flow Computer diskette into the diskette drive on the Workmaster II computer Select the Flow Computer folder by typing a NFLOWS0 PCM or a NFLOW70 PCM then press the ENTER key The PCOP Main menu will now be displayed CONFIG MB TERMF STATUS CTL l FOLDER UTILTY N E 29 SITTIN SE SEMMI Lem mm eE o o SERIES 98 PCM DEVELOPMENT SOFTWARE Configure the PCM Develop Execute a MegaBasic Program Terminal Emulation Operating Status of PCM Control Functions Folder Functions Utility Save Load Clear Etc Exit PCM Softuare ONLINE FACTORY A FLOW70 PCM EE PCM ID RACK E S
45. ultiplier 100 10 Base Pressure 0 65 535 Multiplier 1000 11 Base Temperature 0 655 35 Multiplier 100 12 Orifice Diameter 001 65 535 Multiplier 1000 13 Tube Diameter 001 65 535 Multiplier 1000 14 NotUsed 15 NotUsed 16 NotUsed 17 18 Critical Pressure 0 655 35 Double Precision Multiplier 100 19 20 Critical Temperature 0 655 35 Double Precision Multiplier 100 21 Mole Fraction CO2 0 1 0 Multiplier 10 000 22 Mole Fraction H2S 0 1 0 Multiplier 10 000 23 BaseCompressibility 0 1 0 Multiplier 10 000 24 NX 19 Method 0 2 25 31 NotUsed A 2 Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 Table A 4 Gas Composition Register Offset Compound Register Offset Compound 0 Undefined 12 Propane 1 Hydrogen 13 Iso Butane 2 Helium 14 N Butane 3 Water 15 Iso Pentane 4 Carbon Monoxide 16 N Pentane 5 Nitrogen 17 N Hexane 6 Oxygen 18 N Heptane 7 HydrogenSulfide 19 N Octane 8 Argon 20 N Nonane 9 Carbon Dioxide 21 N Decane 10 Methane 22 31 Not Used 11 Ethane Note min 0 max 1 0000 register multiplier is 10 000 Table A 5 Analog Scaling Parameters Register Offset Parameter Minimum Maximum Comment 0 Maximumstatic Pressure 0 6553 5 Multiplier 10 1 Minimum Static Pressure 0 6553 5 Multiplier 10 2 Maximum Static Temper
46. us message Flow Computer Not OK may appear in the lower right corner of the results screen if an analog input is out of range of the default analog scaling This should be ignored since analog input scaling has not yet been configured for the app To further verify Flow Computer operation the ladder logic example folders lication FLOW30E and FLOW70E provided with the Flow Computer may be loaded and executed Refer to the discussion of the ladder logic example under COMREQ Instruction later in this Chapter 2 Installationand Configuration chapter The Flow Computer PCM is expected to be in slot 2 for this example Using Logicmaster 90 load the appropriate folder to the PLC set the PLC to Run mode and turn T6 on to load the configuration registers and analog inputs The calculated flow rate shown on the local operator interface results screen should be 0 861 MMCF HR for all four meters If the Flow Computer does not startup at all then PLC configuration as well as Flow Computer hardware and software should be checked Once the problem is corrected soft reset the Flow Computer If you get no results or unexpected results when you press the OIT function keys your OIT may need to be initialized To do this plug an IBM XT compatible keyboard into the applicable connector on the back of your OIT Press the Ctrl 1 key sequence on the attached keyboard The OIT Configuration menu will be displayed on the screen Use the following
47. uter What You Will Need 1 A Series 90 30 or 90 70 PCM module PCM Revision 2 50 or later firmware to execute the Flow Computer program e Series 90 30 PCM with 640K Bytes catalog number IC693PCM311 e Series 90 70 PCM catalog number IC697PCM711 with either a 256K Expansion Memory board catalog number 1C697MEM717 or 512K Expansion Memory board catalog number IC697MEM719 Note The Flow Computer has been configured for a 256K Expansion Memory board If a 512K Expansion memory board is used the UCDECDF file supplied with the Flow Computer must be changed using PCOP 2 Flow Computer software diskettes catalog number IC641SWP064 3 A computer for downloading the Flow Computer software files to the PCM This computer can be e AGE Fanuc Workmaster II industrial computer or IBM PS 2 or compatible Personal Computer AnIBM PC AT or compatible Personal Computer e A Workmaster industrial computer or IBM PC XT or compatible Personal Computer 4 Logicmaster 90 software 5 PCOP software IC641SWP061 to configure and download software files to the PCM 6 Optional Alphanumeric Display Coprocessor module IC697ADC701 for a Series 90 70 PLC IC693ADC311 for a Series 90 30 PLC and associated VT100 terminal 7 Acable is needed to connect the computer to the PCM The cable selected depends on which computer you are using Connection is from the computer s serial port to port 1 on the PCM e Workmaster Il or
48. w Computer The gas composition consists of all compounds contained in the gas flow The sum of these must be 1 0 however a warning message appears for five seconds if this is violated Enter a mole fraction of 0 for any compound not present in the gas flow NX 19 GAS COMPOSITION FOR METER NX 19 METHOD O STANDARD 2 GRAVITY Hydrogen Helium Water Carbon Monoxude Nitrogen H Oxygen 001 Hydrogen Sulfide 0 Argon 0 Carbon Dioxide 0 000000 WARNING SUM OF MOLE FRACTIONS NOT EQUAL TO 1 0 EDIT SYSTEM CONFIG KATZ NX19 SCALING RESU 1 Methane 5 4005 Ethane Propane Iso Butane Butane Iso Pentane Pentane Hexane Heptane Octane Nonane Decane OOOO Od Oo OOo Dm 6 06 FLOW COMPUTER OK eS LTS F8 F9 HELP Series 90 Programmable Controllers Flow Computer User s Manual September 1993 GFK 0685 GFK 0685 7 Scaling screen this screen allows the analog input scaling parameters to be modified If a minimum and maximum value are reversed a status message appears for five seconds a N ANALOG SCALING PARAMETERS FOR METER 1 MAX STATIC PRESS PSIA 2000 M STATIC PRESS PSIA 210 MAX STATIC TEMP deg R 100 M STATIC TEMP deg R 0 MAX DIFF PRESS PSIA 100 M DIFF PRESS PSIA 3 0 MAX STATIC PRESS COUNTS 32000 MIN STATIC PRESS COUNTS 0 MAX STATIC TEMP COUNTS 32000 M STATIC TEMP COUNT
49. wer system cost since no external operator interface or computer is required to configure or monitor the Flow Computer CIMPLICITY 90 ADS operator interface Flow Computer operator interface can be customized to fit application Contents of this Manual Chapter 1 Introduction to the Flow Computer Provides an introduction to the Series 90 Flow Computer Chapter 2 Installation and Configuration Describes the hardware requirements and how to install the hardware and software in your Series 90 30 or Series 90 70 Programmable Logic Controller system Chapter 3 Operation of the Flow Computer Describes operation of the Flow Control computer MegaBasicis a trademark of Christopher Cochran GFK 0685 iii Preface Appendix A Register Data Structure A list of register data requirements for the Flow Computer Appendix B Diskette Files List of diskette files included with the Flow Computer software Appendix C Config Dat and Volume Dat Files Default Value A list of the default values for these files Appendix D Example of Ladder Logic An example of the ladder logic which implements the Flow Computer Related Publications Manual of Petroleum Measurement Standards May 1991 Orifice Metering of Natural Gas AGA Report No 3 August 1985 Manual for the Determination of Supercompressibility Factors for Natural Gas PAR Research Project NX 19 published by AGA December 1962 Comparison Analysis of Orifice Metering o
50. which uses the PCM local operator interface while Figure 1 2 illustrates the use of CIMPLICITY 90 ADS as an operator interface communicating to the Flow Computer PCM through the PLC registers The GE Fanuc Workmaster II or IBM compatible computer is used to e install Flow Computer diskette files to the PCM e todownload PLC configuration and ladder logic e and to download ADS screens and configuration to the ADC a45053 SERIES 90 30 C P OR fer SERIES 90 70 PLC i n WORKMASTER II OIT 0 SY OCAL OPERATOR INTERFACE INSTALLATION LOGICMASTER 90 SOFTWARE PCOP SOFTWARE Figure 1 1 Flow Computer System with Local Operator Interface 845052 SERIES 90 30 c E A OR M SERIES 90 70 ke kd a PLC E n WORKMASTER II OIT l O O im ES EXTERNAL OPERATOR INTERFACE INSTALLATION LOGICMASTER 90 SOFTWARE
51. ycle the Flow Computer executes the following detailed sequence 1 Itreads the configuration and volume files from the non volatile disk This is further described in the RAM Disk Operation 2 It defines two interrupts COMREQ and a 2 5 second timer The COMREQ is used to inform the Flow Computer that new register configuration is available The 2 5 second timer is used to execute the next meter s calculations 3 The operator interface background task is then entered and continuously executed The first screen displayed on the local operator interface is the copyright screen This is displayed for five seconds then the Results screen is displayed This screen displays the calculated results No operator input is required in the Results screen Screen operation following the copyright screen is described in the Local Operator Interface section of Chapter 2 Installation and Configuration To exit the Results screen and enter a configuration screen select the function key for the screen you want to enter Once the local operator interface starts it continuously updates the current screen interrupted only by a COMREQ instruction or timer interrupt COMREQ Interrupt Once power up initialization is completed the Flow Computer will continuously execute the local operator interface background task when it is not servicing a COMREQ or timer interrupt GFK 0685 3 1 A COMREQ interrupt will be received whenever a COMREQ instruction is execute

Download Pdf Manuals

image

Related Search

Related Contents

マイクロビューワー SV−3 (VGA用)  FA-5546-3 - BM  Omega Vehicle Security 850i Home Security System User Manual  Atto EPCI-ESTR-000 storage software  XEROX WIDE FORMAT COPY SYSTEM  Neurosign 100 Manual Del Usuario 9883-23-16  Samsung 27" 全高清 曲面 液晶显示器 健康护眼 用户手册  SPECIAL PROVISIONS - State of New Jersey  取扱説明書  Kingston Technology ValueRAM 4GB DDR3-1600MHz ECC  

Copyright © All rights reserved.
Failed to retrieve file