FMC Technologies MPU B Series Procedures Manual

Multipath ultrasonic gas flow meter external data communication
Hide thumbs Also See for MPU B Series:

Advertisement

Multipath Ultrasonic Gas Flow Meter
External Data Communication,
MPU Series B
Procedure Manual
PRD-0000022543 / Rev. 00D / FL / nb / April 2008
MNKS008 0.0 (4/08)
The Most Trusted Name In Measurement

Advertisement

Table of Contents
loading

Summary of Contents for FMC Technologies MPU B Series

  • Page 1 Multipath Ultrasonic Gas Flow Meter External Data Communication, MPU Series B Procedure Manual PRD-0000022543 / Rev. 00D / FL / nb / April 2008 MNKS008 0.0 (4/08) The Most Trusted Name In Measurement...
  • Page 2 External Data Communication External Data Communication, MPU Series B Procedure History Revision Date Editor Status Description 50000058026 Take over from KOS SAP System Rev. 03 / C 01.03.2007 released 20207 New Logo Rev. 00D April 2008 released Important All information and technical specifications in this documentation have been carefully checked and compiled by the author.
  • Page 3: Table Of Contents

    TABLE OF CONTENT INTRODUCTION..................5 1.1. GENERAL ....................5 1.2. References ....................5 1.3. Abbreviations..................5 1.4. Definitions .....................5 PROTOCOL DETAILS ................7 2.1. ModBus On Serial Port ................7 2.1.1. Serial Port 1 .................7 2.1.2. Serial Port 2 .................7 2.1.3. Hardware interface details............8 2.1.4. Timing considerations for RS-485 ..........8 2.2.
  • Page 4 6.1.4. Status Return Codes ..............27 6.2. MPU Series B WinScreen ..............27 Figures Figure 1 - Flow Computer Application Example ............13 Figure 2 - ModBus Read Message Example..............14 Figure 3 - ModBus Read Reply Message Example ............14 Figure 4 - ModBus Write Message Example..............15 Figure 5 - ModBus Write Reply Message Example ............
  • Page 5: Introduction

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ INTRODUCTION 1.1. GENERAL This document contains a description of how to use the MPU Series B ModBus interfaces. Both the serial interface and the Ethernet interface is described. 1.2. References Doc. No Title USM-0000020565 MPU Series B User Manual: Operators...
  • Page 6 MPU Dispatch Check Procedure ______________________________________________________________________ This page is intentionally left blank ______________________________________________________________________ Page 6 of 28 PRD-0000022543 Rev .00D MNKS008 0.0 (4/08)
  • Page 7: Protocol Details

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 2. PROTOCOL DETAILS The MPU Series B ModBus protocol will only operate in RTU mode. All floating point values are represented as 32-bit real numbers in two consecutive 16-bit ModBus registers. All integer values are represented as 32-bit integers in two consecutive 16-bit ModBus registers.
  • Page 8: Hardware Interface Details

    MPU Dispatch Check Procedure _____________________________________________________________________ 2.1.3. Hardware interface details The actual hardware interface used can be one of the following: RS-232 (Full Duplex) 2-wire RS-485 (Half Duplex) 4-wire RS-485, i.e. RS-422 (Full Duplex) 2.1.4. Timing considerations for RS-485 For the Half Duplex RS-485 (2-wire) interface, the following timing considerations must be taken into account by the software on the ModBus master: There must be at least a 20 mS "silent interval"...
  • Page 9: Register Mappings

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 3. REGISTER MAPPINGS This section lists the specific MPU Series B database object numbers and ModBus addresses. 3.1. Input Registers The following registers should be updated continuously by the external system to ensure proper functioning of the MPU Series B. Object ModBus Description...
  • Page 10: Results/Output Registers

    MPU Dispatch Check Procedure _____________________________________________________________________ 3.2. Results/Output Registers The following registers are the results registers of the MPU Series B. They are all 32-bit float values. They are updated on the completion of every measurement cycle. Object ModBus Description Unit number Address Log count...
  • Page 11: High Resolution Accumulators

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ Object ModBus Description Unit number Address Percentage Of Bursts Used Transducer 1B Gain Transducer 1A Gain Transducer 2A Gain Transducer 3A Gain Transducer 4A Gain Transducer 5A Gain Transducer 6A Gain Transducer 6B Gain Transducer 5B Gain Transducer 4B Gain Transducer 3B...
  • Page 12: Parameter Registers

    MPU Dispatch Check Procedure _____________________________________________________________________ 3.4. Parameter Registers The following registers are the parameter registers of the MPU Series B. They are all 32-bit float values. 3.4.1. Spoolpiece Geometry The table below identifies the parameters defining the spoolpiece geometry. Object ModBus Description Unit...
  • Page 13: Register Usage

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 4. REGISTER USAGE Figure 1 below describes the most common way to implement a master application that is synchronised with the MPU Series B. In this example, the master application running on an external flow computer is responsible for writing the correct pressure and temperature to the MPU Series B.
  • Page 14: The Modbus Protocol - Message Exchange Example

    MPU Dispatch Check Procedure _____________________________________________________________________ 4.2. The ModBus Protocol – Message Exchange Example This chapter describes the exchange of messages taking place in a typical Flow Computer - MPU communication. 4.2.1. Modbus Read Message Example In the following example the flow computer performs the following task: - Read temperature and pressure from the MPU Series B The database objects used for pressure and temperature from an...
  • Page 15: Modbus Write Message Example

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 4.2.2. ModBus Write Message Example In this example the flow computer performs the following task: - Write temperature and pressure from the MPU Series B The database objects used for pressure and temperature from an external source are object numbers 10000 and 10001.
  • Page 16 MPU Dispatch Check Procedure _____________________________________________________________________ This page is intentionally left blank ____________________________________________________________________ Page 16 of 28 PRD-0000022543 Rev .00D MNKS008 0.0 (4/08)
  • Page 17: Register Mappings For The Deca Calculations

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 5. REGISTER MAPPINGS FOR THE DECA CALCULATIONS The DECA algorithms running on the MPU uses a separate set of ModBus registers. These are described in this chapter. 5.1. External Input Values The table below identifies external input values required by the DECA algorithms.
  • Page 18: Input Parameters

    MPU Dispatch Check Procedure _____________________________________________________________________ 5.3. Input Parameters The table below identifies parameters required as input by the DECA algorithms. Object ModBus Description Unit number Address 1140 Calculated composition : Minimum avg. kg/mol mole weight 1142 Calculated composition : Maximum avg. kg/mol mole weight 1144...
  • Page 19: Calculation Results

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 5.4. Calculation Results The table below identifies the results of the DECA algorithms. Object ModBus Description Unit number Address Calculated Velocity of Sound Calculated average Mole Weight kg/mol Calculated DZ/DP 1/Pa Calculated DZ/DT Calculated Isobaric Heat Capacity J/kmol Calculated gas compressibility, line...
  • Page 20 MPU Dispatch Check Procedure _____________________________________________________________________ This page is intentionally left blank ____________________________________________________________________ Page 20 of 28 PRD-0000022543 Rev .00D MNKS008 0.0 (4/08)
  • Page 21: Windows Communication Software

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 6. WINDOWS COMMUNICATION SOFTWARE 6.1. MPUCOMM Dynamic Link Library This communication link provides a fast and simple way of communicating with the MPU Series B using the network interface. The interface is based on a Microsoft Windows DLL. This DLL encapsulate all the communication with the MPU Series B, and offers a set of library functions that can be called from your program.
  • Page 22: Running The Test Programs

    MPU Dispatch Check Procedure _____________________________________________________________________ 4. SimpleTalk.cpp – A very simple working example program in C showing the use of the DLL. 5. MPUBCommExample.exe - Executable of the above. 6. W95ws2setup.exe – Installation of windows socket version 2 for Windows 95. Note: The library uses windows socket version 2.
  • Page 23: Figure 7 - Running The Simpletalk.exe Application

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ Figure 7 shows a sample run of this application. Figure 7 - Running the SimpleTalk.exe application 6.1.3. The Network Programmers Interface The following functions are implemented in the DLL: GetFloatValues This functions reads object as float values from the MPU Series B database.
  • Page 24 MPU Dispatch Check Procedure _____________________________________________________________________ NFirstObjectNumber Specifies the object number of the first database value to read. These object numbers are defined in section 3. NNOfObject Specifies how many objects to read. This must be a number between 1 and 64. The parameter must be a 16 bit integer. PfValueBuffer Specifies the memory address where the function will place the read values.
  • Page 25 MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ PnValueBuffer Specifies the memory address where the function will place the read values. The parameter must be a pointer to an array of 64 bits integer values. The size of the array must at least be nFirstObjectNumber * 8 bytes.
  • Page 26 MPU Dispatch Check Procedure _____________________________________________________________________ setIntValues This function writes integer values to the MPU Series B database. int DLLAPI setIntValues( // Input const char *lpszHost, Hostname to connect to (MPUsn11) unsigned short nFirstObjectNumber, First database object to read unsigned short nNOfObject, The number of objects to read *pnValueBuffer...
  • Page 27: Status Return Codes

    MPU Series B Ultrasonic Gas Flow Meter ______________________________________________________________________ 6.1.4. Status Return Codes The functions implemented in DLL return a single status code upon return. The code is returned as a 64-bit integer. The table below shows the valid return values. Return Description Code...
  • Page 28: Prd-0000022543 Rev. 00D

    United Arab Emirates, Dubai +971 (4) 331-3646 ____________________________________________________________________ Page 28 of 28 PRD-0000022543 Rev .00D Visit our website at www.fmctechnologies.com/measurementsolutions MNKS008 0.0 (4/08) Printed in U.S.A. © 4/08 FMC Technologies Measurement Solutions, Inc. All rights reserved. ICP-0000022543 .00D/MNKS008 Issue/Rev. 0.0 (4/08)

This manual is also suitable for:

Mpu 1200 v6

Table of Contents