REF_1100 Ovation Algorithms Reference Manual - baixardoc

10
Ovation Algorithms Reference Manual REF_1100 July 2010

Transcript of REF_1100 Ovation Algorithms Reference Manual - baixardoc

Ovation Algorithms Reference Manual

REF_1100

July 2010

Copyright Notice

Since the equipment explained in this document has a variety of uses, the user and those responsible for applying this equipment must satisfy themselves as to the acceptability of each application and use of the equipment. Under no circumstances will Emerson Process Management be responsible or liable for any damage, including indirect or consequential losses resulting from the use, misuse, or application of this equipment.

The text, illustrations, charts, and examples included in this manual are intended solely to explain

the use and application of the Ovation®

Unit. Due to the many variables associated with specific uses or applications, Emerson Process Management cannot assume responsibility or liability for actual use based upon the data provided in this manual.

No patent liability is assumed by Emerson Process Management with respect to the use of circuits, information, equipment, or software described in this manual.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, including electronic, mechanical, photocopying, recording or otherwise without the prior express written permission of Emerson Process Management.

The document is the property of and contains Proprietary Information owned by Emerson Process Management and/or its subcontractors and suppliers. It is transmitted in confidence and trust, and the user agrees to treat this document in strict accordance with the terms and conditions of the agreement under which it was provided.

This manual is printed in the USA and is subject to change without notice.

Ovation and WEStation are registered trademarks of Emerson Process Management. All other trademarks or registered trademarks are the property of their respective holders.

Copyright © Emerson Process Management Power & Water Solutions, Inc. All rights reserved.

Emerson Process Management Power & Water Solutions

200 Beta Drive Pittsburgh, PA 15238

USA

E-Mail: [email protected] Website: https://www.ovationusers.com

Summary of Changes

Ovation Algorithms Reference Manual REF_1100 July 2010

The July 2010 version of Ovation Algorithms Reference Manual includes the following new information:

Added information on the following new algorithms:

ALARMLIMIT (see page 53).

BUFFER (see page 89).

FFISEL (Foundation Fieldbus Input Selector) (see page 609).

FFMAO (Foundation Fieldbus Multiple Analog Output) (see page 619).

FFMDI (Foundation Fieldbus Multiple Digital Input) (see page 621).

FFMDO (Foundation Fieldbus Multiple Digital Output) (see page 625).

RUNTIME (see page 406).

Added the AMODE parameter to all of the Foundation Fieldbus algorithms.

Provided additional information and clarifications to the ANNUNCIATOR (see page 66) algorithm.

Added the INSEL parameter to the 2XSELECT (see page 524) and MEDIANSEL (see page 295) algorithms.

Provided additional information and clarifications to the BALANCER (see page 78) algorithm.

Updated the algorithm parameter table for the DEVICE (see page 123) algorithm.

Added a table of high and low input and output ranges for all of the the STEAMTABLE algorithms:

HSCLTP (see page 245)

HSLT (see page 246)

HSTVSVP (see page 247)

HSVSSTP (see page 248)

PSLT (see page 374)

PSVS (see page 375)

SSLT (see page 459)

TSLH (see page 511)

TSLP (see page 512)

VCLTP (see page 515)

VSLT (see page 516)

Made miscellaneous corrections and clarifications to the manual.

REF_1100 i

Contents

1 Introduction to Ovation algorithms 1

1.1 What are algorithms? .......................................................................................................... 1

2 General algorithm user information 3

2.1 What is hardware addressing for algorithms?..................................................................... 3 2.1.1 To determine an algorithm hardware address .................................................. 3

2.2 What is propagated point quality?....................................................................................... 4 2.3 Algorithm status and mode settings.................................................................................... 4 2.4 What is invalid number checking and quality checking for algorithms?.............................. 5 2.5 What are single precision floating point numbers? ............................................................. 6 2.6 What is the error information generated by algorithms?..................................................... 6 2.7 Binary to hexadecimal conversion for algorithms ............................................................... 6

3 Understanding tracking 9

3.1 What is tracking?............................................................................................................... 10 3.2 What is the purpose of tracking? ......................................................................................10 3.3 What is the tracking process?...........................................................................................11 3.4 What are the best practices for using tracking?................................................................12 3.5 What algorithms support tracking? ...................................................................................13 3.6 Tracking examples ............................................................................................................15 3.7 Setting tracking signals for algorithms ..............................................................................16

4 Algorithm classifications 19

4.1 What are algorithm classification groups? ........................................................................20 4.2 Alarm Manipulation algorithms..........................................................................................21 4.3 Artificial I/O algorithms (signal generators) ....................................................................... 21 4.4 Boolean Logic algorithms.................................................................................................. 22 4.5 Boolean Logic Memory algorithms....................................................................................23 4.6 Custom Calculation algorithms .........................................................................................23 4.7 Device Control algorithms.................................................................................................24 4.8 Fieldbus algorithms ........................................................................................................... 25 4.9 Filtering algorithms............................................................................................................ 26 4.10 Hardware Interface algorithms..........................................................................................27 4.11 Link Controller Module Interface algorithms .....................................................................28 4.12 Loop Interface Module algorithms.....................................................................................29 4.13 Mathematical and Statistical algorithms............................................................................ 30 4.14 Modulating Control algorithms ..........................................................................................31

Table of Contents

ii REF_1100

4.15 Monitor Function algorithms.............................................................................................. 32 4.16 Operator Interface algorithms ...........................................................................................33 4.17 Point Format Conversion algorithms.................................................................................34 4.18 Pulse Accumulator Module Interface algorithms...............................................................35 4.19 Q-Line Interface algorithms............................................................................................... 36 4.20 Redundant Signal Processing algorithms ......................................................................... 37 4.21 Sequential Logic algorithms.............................................................................................. 38 4.22 Signal Compensation algorithms ......................................................................................39 4.23 System Diagnostic algorithms...........................................................................................40 4.24 System Time Function algorithms.....................................................................................40 4.25 Time/Counter Function algorithms.................................................................................... 41 4.26 Tracking algorithms........................................................................................................... 42 4.27 Turbine Interface algorithms .............................................................................................43

5 Standard algorithm reference pages 45

5.1 Using algorithm reference pages ......................................................................................48 5.1.1 Algorithm functional symbols........................................................................... 49

5.2 AAFLIPFLOP ....................................................................................................................50 5.3 ABSVALUE .......................................................................................................................52 5.4 ALARMLIMIT.....................................................................................................................53 5.5 ALARMMON......................................................................................................................57 5.6 ANALOG DEVICE (ADEVICE)..........................................................................................59 5.7 ANALOGDRUM ................................................................................................................62 5.8 AND................................................................................................................................... 65 5.9 ANNUNCIATOR................................................................................................................66 5.10 ANTILOG........................................................................................................................... 69 5.11 ARCCOSINE.....................................................................................................................71 5.12 ARCSINE .......................................................................................................................... 72 5.13 ARCTANGENT .................................................................................................................73 5.14 ASSIGN............................................................................................................................. 74 5.15 ATREND............................................................................................................................ 75 5.16 AVALGEN ......................................................................................................................... 77 5.17 BALANCER.......................................................................................................................78 5.18 BCDNIN............................................................................................................................. 83 5.19 BCDNOUT......................................................................................................................... 85 5.20 BILLFLOW......................................................................................................................... 87 5.21 BUFFER............................................................................................................................ 89 5.22 CALCBLOCK ..................................................................................................................102 5.23 CALCBLOCKD................................................................................................................111 5.24 COMPARE ......................................................................................................................117 5.25 COSINE........................................................................................................................... 118 5.26 COUNTER.......................................................................................................................119 5.27 DBEQUALS.....................................................................................................................121 5.28 DEVICE........................................................................................................................... 123

Table of Contents

REF_1100 iii

5.29 DEVICESEQ ...................................................................................................................142 5.30 DEVICEX......................................................................................................................... 146 5.31 DFIELD............................................................................................................................ 166 5.32 DIGCOUNT .....................................................................................................................167 5.33 DIGDRUM .......................................................................................................................168 5.34 DIGITAL DEVICE............................................................................................................173

5.34.1 SAMPLER (Controlled Sampler) ...................................................................174 5.34.2 VALVE NC (Non-Controlled Valve)...............................................................176 5.34.3 MOTOR NC (Non-Controlled Motor) .............................................................177 5.34.4 MOTOR (Simple Controlled Motor) ...............................................................179 5.34.5 MOTOR 2-SPD (Two Speed or Bi-Directional Controlled Motor) ................. 182 5.34.6 MOTOR 4-SPD (Two Speed and Bi-Directional Controlled Motor) .............. 186 5.34.7 VALVE (Controlled Valve) .............................................................................191

5.35 DIVIDE ............................................................................................................................ 194 5.36 DROPSTATUS................................................................................................................197 5.37 DRPI1A ........................................................................................................................... 200 5.38 DVALGEN .......................................................................................................................202 5.39 FACEPLATE ...................................................................................................................203

5.39.1 FACEPLATE -- DIGITAL DEVICE template..................................................206 5.39.2 FACEPLATE -- MASTATION template .........................................................210

5.40 FIELD .............................................................................................................................. 211 5.41 FIFO ................................................................................................................................ 213 5.42 FIRSTOUT ......................................................................................................................216 5.43 FLIPFLOP .......................................................................................................................221 5.44 FUNCTION......................................................................................................................223 5.45 GAINBIAS .......................................................................................................................227 5.46 GASFLOW ......................................................................................................................230 5.47 HEARTBEAT...................................................................................................................235 5.48 HIGHLOWMON...............................................................................................................238 5.49 HIGHMON.......................................................................................................................239 5.50 HISELECT.......................................................................................................................240 5.51 HSCLTP .......................................................................................................................... 245 5.52 HSLT ............................................................................................................................... 246 5.53 HSTVSVP........................................................................................................................247 5.54 HSVSSTP........................................................................................................................248 5.55 INTERP ........................................................................................................................... 249 5.56 KEYBOARD ....................................................................................................................253 5.57 LATCHQUAL...................................................................................................................256 5.58 LEADLAG........................................................................................................................258 5.59 LEVELCOMP ..................................................................................................................262 5.60 LOG................................................................................................................................. 266 5.61 LOSELECT......................................................................................................................267 5.62 LOWMON........................................................................................................................272 5.63 MAMODE ........................................................................................................................273 5.64 MASTATION ...................................................................................................................275 5.65 MASTERSEQ..................................................................................................................284

Table of Contents

iv REF_1100

5.66 MEDIANSEL....................................................................................................................295 5.67 MULTIPLY.......................................................................................................................303 5.68 NLOG .............................................................................................................................. 306 5.69 NOT................................................................................................................................. 307 5.70 OFFDELAY .....................................................................................................................308 5.71 ONDELAY .......................................................................................................................310 5.72 ONESHOT.......................................................................................................................312 5.73 OR................................................................................................................................... 314 5.74 PACK16........................................................................................................................... 315 5.75 PID .................................................................................................................................. 317 5.76 PIDFF.............................................................................................................................. 332 5.77 PNTSTATUS...................................................................................................................343 5.78 POLYNOMIAL.................................................................................................................345 5.79 PREDICTOR ...................................................................................................................347 5.80 PRIORITY Algorithm Package........................................................................................351

5.80.1 PRIORITY......................................................................................................352 5.80.2 PRIORITY-EXT .............................................................................................367 5.80.3 PRIORITY-REJ..............................................................................................371

5.81 PSLT ............................................................................................................................... 374 5.82 PSVS............................................................................................................................... 375 5.83 PULSECNT .....................................................................................................................376 5.84 QAVERAGE ....................................................................................................................377 5.85 QUALITYMON ................................................................................................................379 5.86 RATECHANGE ...............................................................................................................380 5.87 RATELIMIT......................................................................................................................382 5.88 RATEMON ......................................................................................................................385 5.89 RESETSUM ....................................................................................................................387 5.90 RLICONFIG.....................................................................................................................390 5.91 RPACNT.......................................................................................................................... 393 5.92 RPAWIDTH .....................................................................................................................394 5.93 RSRSTATUS...................................................................................................................395 5.94 RUNAVERAGE ...............................................................................................................404 5.95 RUNTIME........................................................................................................................406 5.96 RVPSTATUS...................................................................................................................410 5.97 SATOSP.......................................................................................................................... 413 5.98 SELECTOR.....................................................................................................................414 5.99 SETPOINT ......................................................................................................................416 5.100 SIMTIME ......................................................................................................................... 419 5.101 SINE................................................................................................................................ 420 5.102 SLCAIN ........................................................................................................................... 421 5.103 SLCAOUT .......................................................................................................................424 5.104 SLCDIN ........................................................................................................................... 427 5.105 SLCDOUT .......................................................................................................................430 5.106 SLCPIN ........................................................................................................................... 433 5.107 SLCPOUT .......................................................................................................................436

Table of Contents

REF_1100 v

5.108 SLCSTATUS ...................................................................................................................439 5.109 SMOOTH.........................................................................................................................443 5.110 SOFTSOE .......................................................................................................................445 5.111 SPTOSA.......................................................................................................................... 455 5.112 SQUAREROOT...............................................................................................................456 5.113 SSLT ............................................................................................................................... 459 5.114 STATISTICS....................................................................................................................460 5.115 STEAMFLOW..................................................................................................................477 5.116 STEAMTABLE ................................................................................................................479 5.117 STEPTIME ......................................................................................................................482 5.118 SUM ................................................................................................................................ 487 5.119 SYSTEMTIME.................................................................................................................490 5.120 TANGENT .......................................................................................................................491 5.121 TIMECHANGE ................................................................................................................492 5.122 TIMEDETECT .................................................................................................................493 5.123 TIMEMON .......................................................................................................................494 5.124 TRANSFER.....................................................................................................................497 5.125 TRANSLATOR ................................................................................................................501 5.126 TRANSPORT ..................................................................................................................505 5.127 TRNSFINDX....................................................................................................................507 5.128 TRUTHTBL......................................................................................................................508 5.129 TSLH ............................................................................................................................... 511 5.130 TSLP ............................................................................................................................... 512 5.131 UNPACK16 .....................................................................................................................513 5.132 VCLTP............................................................................................................................. 515 5.133 VSLT ............................................................................................................................... 516 5.134 XOR................................................................................................................................. 517 5.135 X3STEP........................................................................................................................... 518 5.136 2XSELECT......................................................................................................................524

6 Q-Line algorithms 531

6.1 What are Q-Line algorithms? ..........................................................................................531 6.2 PVSPSLI ......................................................................................................................... 532 6.3 PWDIN ............................................................................................................................ 535 6.4 QLIPASS......................................................................................................................... 537 6.5 QPACMD.........................................................................................................................541 6.6 QPACMPAR....................................................................................................................547 6.7 QPASTAT........................................................................................................................549 6.8 QSDDEMAND.................................................................................................................550 6.9 QSDMODE......................................................................................................................552 6.10 QSRMA ........................................................................................................................... 553 6.11 QVP................................................................................................................................. 559 6.12 XFLOW............................................................................................................................ 562 6.13 XMA2............................................................................................................................... 568

Table of Contents

vi REF_1100

6.14 XML2............................................................................................................................... 579 6.15 XPIDSLI........................................................................................................................... 583

7 Foundation Fieldbus algorithms 595

7.1 Ovation Fieldbus algorithms and function blocks............................................................595 7.1.1 STAT bits used with function blocks .............................................................596

7.2 FFAI................................................................................................................................. 597 7.3 FFAO............................................................................................................................... 600 7.4 FFDI ................................................................................................................................ 603 7.5 FFDO............................................................................................................................... 606 7.6 FFISEL ............................................................................................................................ 609 7.7 FFMAI.............................................................................................................................. 616 7.8 FFMAO............................................................................................................................ 619 7.9 FFMDI ............................................................................................................................. 621 7.10 FFMDO............................................................................................................................ 625 7.11 FFPID.............................................................................................................................. 629

8 Understanding the Ovation SIS algorithms 633

8.1 Ovation SIS Logic Solver algorithm table .......................................................................634 8.1.1 Algorithm types..............................................................................................636

8.2 LSAI................................................................................................................................. 637 8.3 LSALM............................................................................................................................. 639 8.4 LSAND ............................................................................................................................ 641 8.5 LSAVTR .......................................................................................................................... 643 8.6 LSBDE............................................................................................................................. 660 8.7 LSBFI .............................................................................................................................. 662 8.8 LSBFO............................................................................................................................. 665 8.9 LSCALC .......................................................................................................................... 667

8.9.1 LSCALC Expression Editor ...........................................................................672 8.10 LSCEM............................................................................................................................ 682 8.11 LSCMP............................................................................................................................ 714 8.12 LSDI ................................................................................................................................ 717 8.13 LSDO............................................................................................................................... 719 8.14 LSDVC ............................................................................................................................ 726 8.15 LSDVTR .......................................................................................................................... 738 8.16 LSLIM.............................................................................................................................. 753 8.17 LSMID ............................................................................................................................. 756 8.18 LSNAND.......................................................................................................................... 759 8.19 LSNDE ............................................................................................................................ 761 8.20 LSNOR............................................................................................................................ 763 8.21 LSNOT ............................................................................................................................ 765 8.22 LSOFFD .......................................................................................................................... 766 8.23 LSOND............................................................................................................................ 768 8.24 LSOR............................................................................................................................... 770