mvi56-afc training

83
MVI56-AFC Training

Upload: carl

Post on 31-Jan-2016

82 views

Category:

Documents


2 download

DESCRIPTION

MVI56-AFC Training. Prosoft Technology. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: MVI56-AFC Training

MVI56-AFC Training

Page 2: MVI56-AFC Training

Prosoft Technology

• ProSoft Technology, Inc. is a US company based in Bakersfield, CA specializing in the

development of communication products for industrial automation. Distribution,

support and services are supplied worldwide by regional offices and an

extensive distribution network.

Page 3: MVI56-AFC Training

Prosoft Technology

ProSoft Technology, Inc is headquartered in California, with 8 regional sales offices: four in

North America (Western, North Central, Southern and North Eastern), one in Latin America, one

which includes Europe, Middle-East and Africa, one in Asia, and a new region encompassing

Australia and New-Zealand.

Our products are distributed and supported through a wide distribution network of more than 250

distributors worldwide.

Page 4: MVI56-AFC Training

Prosoft Technology

Page 5: MVI56-AFC Training

Prosoft Technology

Solutions for the following platforms:

• SLC (MVI46)• Controllogix (MVI56)

• PLC (MVI71)• FLEX (MVI94)• Quantum (PTQ)

• StandAlone (Prolinx)

Page 6: MVI56-AFC Training

Prosoft Technology

Some of the Solutions:

• Modbus

• Modbus Plus

• Modbus/Ethernet

• DF1

• DF1/Ethernet

• IEC 60870-5-101

• IEC 60870-5-103

• IEC 60870-5-104

• Flow Calculation

Page 7: MVI56-AFC Training

Flow Calculation Solutions

MVI46-AFC for SLC PlatformMVI56-AFC for CLX PlatformMVI71-AFC for PLC Platform

Page 8: MVI56-AFC Training

MVI56-AFC

What is the MVI56-AFC?

Flow Computer in a CLX rackCalculates Flow Rate & VolumeSupports Pulse & Orifice Meters

Supports up to 16 meters per moduleSupports Gas & Liquid

Automatically Generates ArchivesEvent Log

Supports Modbus

Page 9: MVI56-AFC Training

MVI56-AFC

The MVI56-AFC uses the following standards:

AGA3 (Orifice Meters)AGA 7 (Pulse Meters)

AGA 8 (Compressibility)API Chapter 21.1 (Liquids)

Page 10: MVI56-AFC Training

Example – Pulse Meter

ANALOG IOHIGH SPEED COUNTER

CONTROLLOGIX MVI56-AFC

•Temperature

•Pressure

•Pulse Count

INPUT VARIABLESTemp, Pressure, Pulse Count, Frequency

CALCULATION RESULTSFlow Rate, Volume, Archives, etc..

Page 11: MVI56-AFC Training

Example – Orifice Meter

ANALOG IO

CONTROLLOGIX MVI56-AFC

•Temperature

•Pressure

•Differential Pressure

INPUT VARIABLESTemp, Pressure, Differential Pressure

CALCULATION RESULTSFlow Rate, Volume, Archives, etc..

Page 12: MVI56-AFC Training

AFC Manager

MVI56-AFC

PC

Null modem cable

The AFC Manager is a software for Windows that provides an easy interface between the module and the user.

Page 13: MVI56-AFC Training

AFC Manager

The AFC Manager allows:

Application Parameters Configuration (Site Configuration)

Meter Configuration

Meter Monitor

Alarm Monitor

Archive Monitor

Event Monitor

Meter Audit

Modbus Master Interface

Page 14: MVI56-AFC Training

AFC Manager

• The configuration file generated by the AFC Manager is saved as a .AFC file.

• The .AFC file can be downloaded or uploaded between the PC and the module (Total Transfer)

• The user can also use the Read or Write buttons to transfer data for each window (Partial Transfer).

•A configuration file can easily be converted between the MVI46-AFC and MVI56-AFC modules

Page 15: MVI56-AFC Training

MVIxx-AFC LEDs

Page 16: MVI56-AFC Training

MVIxx-AFC LEDs

APP STATUS OFF = OKON = At least one meter has an alarm and/or all meters are disabledBLINKING = Processor is Offline (program mode)

BP ACT, P1, P2, P3

ON = Modbus or AFC Manager command for the module is recognizedOFF = No Activity

BBRAM LEDS

OK ON & ERR ON = Initialization StatusOK ON & ERR OFF = Normal OperationOK BLINKING & ERR OFF = Checksum Error / Refer AFC Manager

Page 17: MVI56-AFC Training

MVI56-AFC - Initialization

1) Change the processor mode to run

2) Enable (at least) one meter

3) Move the Date and Time data from the processor.

Obs: Step 3 must be repeated after every power cycle

Page 18: MVI56-AFC Training

Configuration

INTRODUCTION

Site Configuration

• Modbus Address Configuration

• Modbus Pass-Thru Configuration

• Archive Period Configuration

• Site Options

• Firmware Version

Page 19: MVI56-AFC Training

Meter Configuration

Meter Configuration

• The Meter has to be disabled to change Meter Type/Product Group or Units

• Once the meter type or product group is selected, the software automatically displays the specific parameters

• A meter configuration can easily be copied to other meters

Page 20: MVI56-AFC Training

Pulse Meter Configuration

Pulse Meters - Introduction

•A pulse meter requires a high speed counter to transfer pulses to the module

• The module will consider each pulse count increment to add a volume amount to the accumulator

• The meter uses a direct correlation between number of pulses and volume called K-Factor

Example : K-Factor = 100 pulses/cubic feet

Means that 100 pulses is equal to 1 cubic feet

Page 21: MVI56-AFC Training

Pulse Meter - Configuration

Pulse Meters - Introduction

Pulse Count

Volume

Pulse Frequency

Flow Rate

Page 22: MVI56-AFC Training

Pulse Meter - Configuration

Pulse Meters - Introduction

The module uses the following formula to increment the volume:

Gross Vol Incr = [Pulse Count Incr] * MeterFactor

KFactor

Page 23: MVI56-AFC Training

Pulse Meter - Configuration

Pulse Meters - Introduction

As time goes on the actual measured volume (the "gross volume") will tend to drift from the nominal measured volume (the "indicated volume"). The factor that corrects "indicated" to "gross" is called the "meter factor", and is a number very close to 1.

The Meter Factor usually depends on the Flow Rate.

The user may configure up to 5 Meter Factor points to be interpolated, depending on the Flow Rate

Page 24: MVI56-AFC Training

Pulse Meter - Configuration

Pulse Meters - Introduction

Meter Factor Configuration

Meter Factor

0.840.860.88

0.90.920.940.960.98

11.02

1800

1600

1400

1200

1000

Meter Factor

Page 25: MVI56-AFC Training

Pulse Meter - Configuration

Pulse Meters - Introduction

Stream Options

The calculations described up to this point are those recommended by API and performed by the vast majority of users of linear meters. Some users, however, may prefer to keep the meter factor at exactly 1.0000 and periodically adjust the K-factor with a meter prove -- and then the K-factor may depend on the flow rate.

Page 26: MVI56-AFC Training

Pulse Meter - Configuration

Pulse Input Rollover

The module considers a rollover when the current pulse count is less than the previous one. In this case, it will use the following formula to re-calculate the pulse input:

Pulse Count = (Current Pulse + Rollover Value) – Previous Pulse

Ex: For a pulse input rollover value of 32767. Consider the following sequence of pulses:32700, 32750, 30, 50

The module would use the following value forpulse input on the next transition:

(32767+30)-32750 = 47

Page 27: MVI56-AFC Training

Pulse Meter - Configuration

Pulse Input Rollover

“Jumps” in the Accumulator value typically happens when the pulse count is set to zero or the user has configured a wrong pulse input rollover value

In this situation the module “thinks” that a rollover has occurred and add the remaining pulse amount to rollover

Page 28: MVI56-AFC Training

Orifice Meter - Configuration

Orifice Meters - Introduction• Requires tube and orifice diameters configuration

• The static pressure of the gas stream may be measured either upstream of the meter (before the differential pressure drop), or downstream of the meter (after the pressure drop). Both AGA3 and AGA8 require the upstream static pressure for their calculations,

where:

upstream pressure = downstream pressure + differential pressure

If the pressure is measured from a downstream tap (typical), this parameter must be checked.

Page 29: MVI56-AFC Training

Orifice Meter - Configuration

Orifice Meters – Introduction

DP Flow Threshold (kPa)

If at any time the differential pressure input value is less than the DP Flow Threshold parameter, the MVI module will consider the differential pressure as zero (no flow).

•DP Alarm Threshold (kPa)

If at any time the differential pressure input value is less than the DP Alarm Threshold parameter, the MVI module will flag a Differential Pressure Low alarm. Note that this alarm is different than the one the module would flag if the differential pressure would be out of range (Input Out of Range: Differential pressure).

Page 30: MVI56-AFC Training

Gas Product - Configuration

Gas Product

Once gas is selected as the product for the meter, the user may enter the molar concentrations for the elements. The module uses the Detailed Characterization Method that requires all molar concentrations (21 elements).

The molar concentrations can be supplied through:- AFC Manager (static)- Ladder Logic (dynamic w/ Chromatograph device)1

- External Modbus Device (dynamic w/ Chromatograph device) 1

1 Set Ctrl OptionsTreat Analysis as Process Input parameter to disable the generation of events.

Page 31: MVI56-AFC Training

Gas Product - Configuration

SUM CONCENTRATIONS

(100% - T) < S < (100% + T)

N

Y

S=0 ?

Y

N

ALARM!Analysis

Total Not

Normalized

ALARM!Analysis

Total ZERO

CalculateFlow Rate

T = Normalization Total Error Tolerance

Page 32: MVI56-AFC Training

Liquid Product - Configuration

Liquid Product

Liquid Selection(Both API2540 Standard)

CRUDE/LPG REFINED PRODUCTS

StandardUses the base, "A", and "E" tables 23/24/53/54

ApplicationPropane, butane, NGLs (natural gas liquids), and crude oils

StandardUses the "B" tables 23/24/53/54

ApplicationGasoline and jet fuels

(Both selections uses the same input process variables)

Page 33: MVI56-AFC Training

Liquid Product - Configuration

- The ladder logic must move the “Water %” value for Net value calculation

- Density at flowing conditions is required. This value may be either provided directly as a process input, or the AFC may calculate it from the frequency output of a densitometer.

- Default Relative Density parameter = Specific Gravity

Page 34: MVI56-AFC Training

Liquid Product - Configuration

Densitometer

Obs: The input scaling for density should be configured as 4-20mA. The densitometer frequency (Hz) should be moved instead of density

Period Time (s)

Frequency (Hz)

Expected Density (kg/m3)

Calculated Density (kg/m3)

1429.959 699.321 1000 999.9932

1459.109 685.350 1100 1099.858

  Where T= 20C, P = 47.6 kPag

Page 35: MVI56-AFC Training

Meter Configuration

If the Input Value is not within the

configured range, the module will flagan “Input Out of Range” alarm

In this case, the module will perform flow calculation using the configured

DEFAULT value

Page 36: MVI56-AFC Training

Meter Configuration

The Input Values read by the module may be viewed in the meter monitor window.

Using the Calibration feature forces the module to ignore changes in the process input variables.

Page 37: MVI56-AFC Training

Meter Configuration

Input variables may be entered as:

• Floating PointUse Floating Point format in ladder logicEx: 13.42 => T = 13.42 C

• Scaled Integer Use Double Integer format in ladder logic

Ex: 1342 => T = 13.42CEx: 200 => P = 200KpagEx: 35142 => DP = 35.142

• 4-20mAUse Double Integer format in ladder logic

Ex: T,P and DP => 13107 (0%) / 65535 (100%)

Page 38: MVI56-AFC Training

Meter Monitor - Accumulator

What is the difference between Gross Accumulator and Net Accumulator?

Module Calculates Volume

Gross Accumulator

Converts to Reference

Temperatureand Pressure

Gross Standard

Accumulator

Net Accumulator

Module Calculates Volume

Gross Accumulator

Converts to Reference

Temperatureand Pressure

Gross Standard

Accumulator

Net Accumulator

Subtract Water

Amount

LIQUID

GAS

Page 39: MVI56-AFC Training

Meter Monitor - Accumulator

There are two accumulator types :

• Resettable AccumulatorsThe Resettable Accumulators can be reset through:1) AFC Manager2) Archive Period End3) Ladder Logic

• Non-Resettable Accumulators

Both types will be reset when the Accumulator Rollover Value is reached.

Page 40: MVI56-AFC Training

Meter Monitor - Accumulator

The accumulators are represented as Totalizer and Residue values:

ACCUMULATOR

1201.8613

TOTALIZER

1201

RESIDUE

0.8613

Obs: The Totalizer is represented as Double Integer data (32 bits)

Obs: The Residue is represented as Floating Point data (32 bits)The Residue is always less than 0

Page 41: MVI56-AFC Training

Meter Monitor – Scan Count

Using the Meter Monitor window, the user may monitor the backplane scan count and the calculation scan count:

Backplane Scan Count Calculation Scan Count

Page 42: MVI56-AFC Training

Meter Monitor - Wallclock

Using the Meter Monitor window, the user may also monitor the WallClock date and time information.

The WallClock should be transferred from ladder logic.

IMPORTANT: The module will not perform calculation until it receives a valid date and time information from the processor.

Page 43: MVI56-AFC Training

Meter Monitor - Log

• The user may save the Meter Monitor results as a log file or csv file for Excel.

• The user may also print the log file to the local printer.

Page 44: MVI56-AFC Training

Audit Scan

• An Audit Scan snapshots input values, intermediate calculated values, and output results for each of a short series of calculation scans for a single meter. This allows an auditor to rigorously verify the calculations performed by the AFC on live in-service production meters. • The Audit Scan can be viewed as “snapshots” of the process

Steps:

1- Select the meter number2 – Select the number of audit scans3 – Click on “Read” to start audit scans4 – Click on Details for the calculation results5- Save the log/csv file or send the results for the local printer

Page 45: MVI56-AFC Training

Archives

• The module supports the archiving of data for each meter channel. The archives are periodically generated according to the period duration defined in the Site Configuration.

Hourly Archives48 Archives per meter

Daily Archives35 Archives per meter

Page 46: MVI56-AFC Training

Archives

Archive 1Data A(Yesterday)

Archive 2Data B(2 days ago)

Archive 35Data Z(35 days ago)

(…)

Archive Generation (6 steps)

- Step 1 -

Page 47: MVI56-AFC Training

Archives

Period End – New Archive Created !

- Step 2 -

Page 48: MVI56-AFC Training

Archives

Archive 1

(Yesterday)

Archive 2Data A(2 days ago)

Archive 35Data Y(35 days ago)

(…)

- Step 3 -

Page 49: MVI56-AFC Training

Archives

Data Z Archive Deleted (Previous

Last Archive) !

- Step 4 -

Page 50: MVI56-AFC Training

Archives

Archive 1New Data (Yesterday)

Archive 2Data A(2 days ago)

Archive 35Data Y(35 days ago)

(…)

New Archive Included !

- Step 5 -

Page 51: MVI56-AFC Training

Archives

Reset Accumulators !

(if configured)

- Step 6 -

Page 52: MVI56-AFC Training

Archives

• In order to configure the archive generation use words Mh00341 (daily) and Mh00421 (hourly). User interface is coming soon!

Bit 00 – period select, hourlyBit 01 – archive upon period endBit 02 – archive upon eventBit 03 – ReservedBit 04 – reset resettable accumulator 1 upon period endBit 05 – reset resettable accumulator 2 upon period endBit 06 – reset resettable accumulator 3 upon period endBit 07 – reset resettable accumulator 4 upon period endBit 08 – reset resettable accumulator 1 upon eventBit 09 – reset resettable accumulator 2 upon eventBit 10 – reset resettable accumulator 3 upon eventBit 11 – reset resettable accumulator 4 upon eventBits 12 to 15 – Reserved

The default value is set for archive upon period end and archive upon event :Mh00341 = 6Mh00421 = 7

Page 53: MVI56-AFC Training

Archives

• Example: Configure Meters 1 through 3 to generate daily archives upon period end (only) and to reset all accumulators upon period end.

1) Using the Modbus Master interface, read word 8341 from the Primary Slave.2) Replace the default value by a value of 3) Write the new value4) Repeat steps 1 to 3 for Meters 2 and 3. For these meters the following values should be used:

Meter 2 = 10341Meter 3 = 12341

Page 54: MVI56-AFC Training

Archives

The archives can be accessed through:

- AFC Manager Display- AFC Manager Log File- AFC Manager CSV file (for Microsoft Excel)- Local Printer- External Modbus master device

Page 55: MVI56-AFC Training

Archives

The archives can be accessed through:

- AFC Manager Display- AFC Manager Log File- AFC Manager CSV file (for Microsoft Excel)- Local Printer- External Modbus master device

Page 56: MVI56-AFC Training

Events

An event is any occurrence that may affect the manner in which, or whether, measurement is performed.

Events include:

- any change to a sealable parameter

- power-up (product may have been lost during the power-down period)

- change in PLC operating mode (programming changes may alter measurement)

Page 57: MVI56-AFC Training

Events

• Events are stored as a circular file

• The module stores up to 1999 events

Event 1

Event 2

Event 3

(…)

Event 1999

Event 1998

Page 58: MVI56-AFC Training

Events

If all record positions contain events that have not yet been downloaded, the log is full. In this case, the handling of a new event depends on the value of the "Event log unlocked" site option:

What happens when the event buffer is full?

Option Set

Module will overwrite the oldest event with the new one

Option Clear

Module will reject new events (including configuration changes)

Page 59: MVI56-AFC Training

Events

How to use the Event Interface?

1) Click on the Read Button2) Note the Number of Events to be Downloaded3) Click on Download4) Save the Events as a Log File (or CSV)5) Click on Purge to delete all events

Page 60: MVI56-AFC Training

Events

Understanding the Event Codes

In order to use the available memory in the AFC Manager as efficiently as possible, the events are grouped and coded in a specific format before they are logged.

The event codes are displayed as shown:

<Event Type> Group/Subgroup/Item

Page 61: MVI56-AFC Training

Events

Understanding the Event Codes

Examples:

Mtr1 9/1/0 = means that Meter 1 Orifice plate measured diameter has changed.

Mtr 2 4/0/1 = means that Meter 2 Input Scaling Temperature (High) has changed.

Page 62: MVI56-AFC Training

Ladder Logic

The ladder logic allows the processor to request specific tasks to the module. These tasks include:

• Set the Wallclock• Write the Process Input Variables• Read the Calculation Results• Transfer the Molar Analysis Data (Gas Only)• Enable or Disable a Meter• Write an Archive• Reset an Accumulator• Read/Write from the Primary or Virtual Slaves• Modbus Pass-Thru

Page 63: MVI56-AFC Training

Ladder Logic

How does the ladder logic works?

Send Output Block(250 words)

Read Input Block(248 words)

Page 64: MVI56-AFC Training

Ladder Logic

Output Block Structure

0 Sentinel (Transaction Number)

1 Output Block Length (<=245)

247 Anchor (Transaction Number)

Page 65: MVI56-AFC Training

Ladder Logic

Input Block Structure

0 Sentinel (Transaction Number)

1 Output Block Length (<=245)

247 Site Status

248 Meter Alarm

249 Anchor (Transaction Number)

Obs: Output Block Length is negative if formatting error is present

Page 66: MVI56-AFC Training

Ladder Logic - Example

Output Block 11

1

Input Block 11

1

Output Block 22

2

Input Block 22

2

Page 67: MVI56-AFC Training

Ladder Logic

In order for the processor to request specific tasks to the module it uses Function Blocks.

Block ID (Function/Mtr/Length Block ID (Function/Status)

Typical Output Function Block (OFB)

Typical Input Function Block (IFB)

Obs: For the OFB Block ID Bit 8 set to 1 = AFC skips returning the inputBit 9 set to 1 = AFC ignores the received output

Page 68: MVI56-AFC Training

Ladder Logic

Example: Meter Process Input Variables Block

A value of 8193 (0010000000000001) would send a Meter Process Input Block to the module

Page 69: MVI56-AFC Training

Ladder Logic

The process block depends on the meter type and product group

Page 70: MVI56-AFC Training

Ladder Logic

The process block depends on the meter type and product group

Page 71: MVI56-AFC Training

Ladder Logic

The process block depends on the meter type and product group

Page 72: MVI56-AFC Training

Ladder Logic

The process block depends on the meter type and product group

Page 73: MVI56-AFC Training

Ladder Logic

The Function Blocks are “assembled” into the Input and Output Blocks

Page 74: MVI56-AFC Training

Ladder Logic

WallClock

Input Process Variables Mtrs 1 to 16

Enable/Disable Function BlocksSend Output Block

(250 words)

Read Input Block(248 words)

1

1

1

1

Page 75: MVI56-AFC Training

Sample Ladder Logic

The Sample Ladder Logic continuously uses 2 Block Structures

• Process Block (Block Ids 1 to 16)- Meter Process Variables- Molar Analysis - Enable & Disable Meters- Read Meter Profile (Meter Type and Product Group)

• Modbus Block (Block Ids 17)

Page 76: MVI56-AFC Training

Modbus Support

Modbus Master Command

3Modbus Gateway

CLX MVI56-AFC

Modbus MasterDevice 1

Modbus Master(Pass-Thru)

Device 2

Modbus SlaveDevice

4

Page 77: MVI56-AFC Training

Modbus Support

The module has an internal modbus database called Primary Modbus Slave.It contains:

65535 Holding Registers65535 Input Registers

The addresses are fixed according to the Modbus Slave

Ex: Meter 1 Orifice Diameter is located at addresses8162 and 8163

Page 78: MVI56-AFC Training

Modbus Support

The “Mh” terminology refers to “Meter Relative”. It informs the user the correct offset in a given Meter range. Each meter occupies 2000 holding registers:

Meter 1 = 8000 to 9999Meter 2 = 10000 to 11999Meter 3 = 12000 to 13999etc…

Page 79: MVI56-AFC Training

Modbus Support

The module offers 2 Modbus Slaves:

Primary Modbus Slave & Virtual Modbus Slave

The Virtual Modbus Slave is used to optimize the data polling. It allows the user to group only the data it is going to be polled.

Page 80: MVI56-AFC Training

Modbus Support

Page 81: MVI56-AFC Training

Modbus Support

Page 82: MVI56-AFC Training

Modbus Support

The same idea can be applied when polling data through the backplane

The user has to configure a Modbus Slave Address greater than zero in order to activate the Virtual Slave.

Page 83: MVI56-AFC Training

Initialize BBRAM

Write the following values to holding address 0

• 55AA• A5A5• 55AA • 4635

WARNING: ALL DATA WILL BE LOST!!!