MicroMod Totalization-IB-MLAPP-TOT Owner's Manual

Totalization for MOD 30ML and Modcell Application Guide MicroMod Automation, Inc. The Company MicroMod Automation is dedicated to improving customer efficiency by providing the most cost-effective, application-specific process solutions available. We are a highly responsive, application-focused company with years of expertise in control systems design and implementation. We are committed to teamwork, high quality manufacturing, advanced technology and unrivaled service and support. The quality, accuracy and performance of the Company's products result from over 100 years experience, combined with a continuous program of innovative design and development to incorporate the latest technology. Use of Instructions Ì Warning. An instruction that draws attention to the risk of injury or death. Note. Clarification of an instruction or additional information. q Caution. An instruction that draws attention to the risk of the product, process or surroundings. i Information. Further reference for more detailed information or technical details. Although Warning hazards are related to personal injury, and Caution hazards are associated with equipment or property damage, it must be understood that operation of damaged equipment could, under certain operational conditions, result in degraded process system performance leading to personal injury or death. Therefore, comply fully with all Warning and Caution notices. Information in this manual is intended only to assist our customers in the efficient operation of our equipment. Use of this manual for any other purpose is specifically prohibited and its contents are not to be reproduced in full or part without prior approval of MicroMod Automation, Inc. Licensing, Trademarks and Copyrights MOD 30 and MOD 30ML are trademarks of MicroMod Automation, Inc. MODBUS is a trademark of Modicon Inc. Health and Safety To ensure that our products are safe and without risk to health, the following points must be noted: The relevant sections of these instructions must be read carefully before proceeding. 1. Warning Labels on containers and packages must be observed. 2. Installation, operation, maintenance and servicing must only be carried out by suitably trained personnel and in accordance with the information given or injury or death could result. 3. Normal safety procedures must be taken to avoid the possibility of an accident occurring when operating in conditions of high 4. pressure and/or temperature. 5. Chemicals must be stored away from heat, protected from temperature extremes and powders kept dry. Normal safe handling procedures must be used. 6. When disposing of chemicals, ensure that no two chemicals are mixed. Safety advice concerning the use of the equipment described in this manual may be obtained from the Company address on the back cover, together with servicing and spares information. All software, including design, appearance, algorithms and source codes, is copyrighted by MicroMod Automation, inc. and is owned by MicroMod Automation or its suppliers. Using The Totalizer Block Contents CONTENTS INTRODUCTION ................................................................................................................................................. 2 SCOPE ............................................................................................................................................................... 2 FIRMWARE VERSIONS ..................................................................................................................................... 2 RELATED INFORMATION.................................................................................................................................. 2 DESCRIPTION .................................................................................................................................................... 3 GENERAL........................................................................................................................................................... 3 BASIC THEORY OF BLOCK OPERATION......................................................................................................... 3 BUILDING THE STRATEGY ............................................................................................................................... 9 BUILDING A WORKING TOTALIZER STRATEGY WITH DISPLAY ................................................................... 9 APPLICATION 1 - TOTALIZER AND PID............................................................................................................ 9 Placing The Blocks & Making Connections ...................................................................................................... 9 Adding a totalizer block to the compound......................................................................................................... 9 Making connections between the totalizer block and PID block. ..................................................................... 10 Modifying blocks to meet this application. ...................................................................................................... 10 Adding Communications ................................................................................................................................ 13 Display Operation .......................................................................................................................................... 13 APPLICATION 2 - TOTALIZER AND PID WITH SEPARATE COMMANDS MENU........................................... 14 Placing The Blocks ........................................................................................................................................ 14 Adding a totalizer block to the compound....................................................................................................... 14 Adding the totalizer commands display. ......................................................................................................... 15 Making connections between blocks. ............................................................................................................. 15 Modifying the blocks. ..................................................................................................................................... 15 Adding Communications ................................................................................................................................ 19 Display Operation .......................................................................................................................................... 20 FIGURES 1 2 3 3 4 5 6 7 TOTALIZER BASIC FUNCTIONAL BLOCK DIAGRAM.................................................................................................... 4 TOTALIZER BLOCK, PAGE 1 ................................................................................................................................. 7 TOTALIZER BLOCK, PAGE 2 ................................................................................................................................. 7 DISPLAY SCRIPT ............................................................................................................................................... 12 STATE TABLE DATA .......................................................................................................................................... 12 PID DISPLAY BLOCK SCRIPT ............................................................................................................................. 17 TOTDISP DISPLAY BLOCK SCRIPT .................................................................................................................... 18 STATE TABLE DATA .......................................................................................................................................... 19 TABLES 1 2 3 4 5 6 EDIT INPUTS DATA, PIDDISP BLOCK ................................................................................................................. 10 EDIT DISPLAY FORMAT DATE ............................................................................................................................. 11 EDIT INPUTS DATA, PIDDISP BLOCK ................................................................................................................. 16 EDIT DISPLAY FORMAT DATA, PIDDISP BLOCK .................................................................................................. 16 EDIT INPUTS DATA, TOTDISP BLOCK................................................................................................................ 17 EDIT DISPLAY FORMAT DATE, TOTDISP BLOCK ................................................................................................. 18 1 Using The Totalizer Block Introduction INTRODUCTION SCOPE This book is one of a series that discusses the application of MOD 30ML™ to commonly encountered process control applications. This particular book discusses how to implement the totalizer block in MOD 30ML. Included in this publication is a functional description and configuration instructions for a typical application using a totalizer block in a PID application. FIRMWARE VERSIONS The application example in this book is applicable to MOD 30ML firmware Version 2.0 and above. RELATED INFORMATION Before actually configuring an instrument, you should be familiar with the information contained in the following publications: 2 • IB-1800R-OPR: MOD 30ML Multiloop Controller Operation Guide • IB-1800R-APP: MOD 30ML Functions Data Base Reference Guide • IB-1800-INS: MOD 30ML Multiloop Controller Installation Guide or • IB-1800-M30: MOD 30ML Multiloop Controller Replacement for MOD 30 Instruments Installation Guide • IB-23G602 (Issue 3 or later): Logic Functions Book 2 (Section 8.10, Totalizer) Using The Totalizer Block Description DESCRIPTION GENERAL Many flow applications require simultaneous control and totalization of the process. In the past a separate device was commonly used for totalization while flow control was left to a PID controller. If there was to be any interaction or relationship between the two devices it was often difficult if not impossible to implement. MOD 30ML can provide accurate PID control and totalization for multiple loops. MOD 30ML’s versatile display permits a variety of display options whereby the totalizer, totalizer commands and PID can be combined on the same tag or may be split to multiple tags. This document will provide an understanding as to how to implement a totalizer block including various display options. Also included are display options for totalizer commands to reset, stop, hold and run the totalizer. BASIC THEORY OF BLOCK OPERATION Figure 1 shows a functional block diagram of the totalizer block. The following paragraphs provide information relative to block connections and in many cases examples of where that connection might be used. Analog Input This is the input to the totalizer. It is this value that the totalizer will totalize to. This input would normally come from the process input that is sent to the PID block. Inputs may be any floating point Logical Source Pointer (LSP) or may be fixed as a local value. You may use the local value input to troubleshoot your totalizer strategy. Direction Input Selected as either up or down. If set as up the totalizer will increment from the low limit value. If set to down the totalizer will decrement from the high limit value. The direction may be fixed at configuration time or may be changed from an external source such as a digital input or descrete LSP from within the instruments strategy. Reset Input This is a discrete input command which if used would normally be sourced from a LSP such as a momentary digital input like a remotely mounted push button. The Reset action takes place when the reset input transitions from false to true. This causes the totalizer to be reset to the low limit if the totalizer direction is up or to the high limit if the totalizer direction is down. Additionally, the totalizer mode will be set to Run. Stop Input This is a discrete input command which if used would normally be sourced from a LSP such as a momentary digital input like a remotely mounted push button. The Stop action takes place when the stop input transitions from false to true. This causes the totalizer to be reset to the low limit if the totalizer direction is up or to the high limit if the totalizer direction is down. Additionally, the totalizer mode will be set to Hold. The totalizer will not continue to count until told to Run. 3 Using The Totalizer Block Description Figure 1. Totalizer Basic Functional Block Diagram Run Input This is a discrete input command which if used would normally be sourced from a LSP such as a momentary digital input like a remotely mounted push button. The Run action takes place when the Run input transitions from false to true. This causes the totalizer mode to be set to Run from a Hold or Stop mode. Hold Input This is a discrete input command which if used would normally be sourced from a LSP such as a momentary digital input like a remotely mounted push button. The Hold action takes place when the Hold input transitions from false to true. This causes the totalizer mode to be set to Hold at the current totalized value until such time the totalizer mode is again set to Run. Auto Wrap Typically set at time of configuration. Setting the Auto Wrap to yes causes the totalizer to wrap around to the opposite limit after it has reached its primary limit. After it wraps the totalizer will continue to count. For example: a totalizer is counting up and reaches an upper limit of 5000. If the lower limit is 100 then when the totalizer reaches 5000 it will wrap to 100 and continue counting up. In this example the High Limit Status line would momentarily go high and could be 4 Using The Totalizer Block Description used to increment a counter identifying how many times the totalizer has wrapped. The High Limit Status line will reset to false on the next block execution if Auto Wrap is set to yes. Threshold Typically set at time of configuration. This is the value in engineering units by which the Analog Input (totalizer input) must exceed before the totalizer will count. The purpose of this feature is to ignore the counting of unwanted process or transmitter drift. Command The Command input is typically used with the MOD 30ML display block or when sending either a Reset, Stop, Run or Hold command from a host such as a PC. Commands sent to this input are long state data types and should be momentary. When the Command line is read from the totalizer block it will always be 0. Sending the following long state values to the Commands input causes the following associated action to happen. Value 1 2 3 4 Action Reset Stop Run Hold Restart Mode Typically set at time of configuration. This is the mode of the totalizer block when the instrument is initialized after a cold or frozen restart and the controller is set to hold. For example: If the warm start period is set for 30 minutes (warm start parameter is set in the IF Block) and the Restart Mode of the Totalizer block is set for Hold and then power is lost, if the power is restored after 30 minutes the block will come back in the Hold mode. If the power down time is less than 30 minutes the totalizer will resume with the mode prior to power loss. Predetermined Count 1 & 2 The predetermined count value is set at configuration time. When the totalized value is equal to or greater than the predetermined value its associated Predetermined Status line will be set to true. If counting down and requiring a status true when the count is below the predetermined value, invert the status signal in an Expression block. An example of where to use a predetermined count is in a ratio application to cause valve closure at a particular totalized value while continuing to totalize other ingredients which may still be flowing. Two predetermined count values are provided in case multiple points are needed. Rate Typically set at time of configuration. This is the time units used in interpreting the input value. Rate may be determined as either Seconds, Minutes, Hours or Days. Rate only applies when the Input Type is Analog (not with Pulse). For example: If an inputs engineering units are 0 - 100 and the Rate was set at Minutes, with 100% input there would be a count of 100 at the end of one minute. Note: this calculation is affected by the Scale Factor. Scale Factor Typically set at time of configuration. This feature permits custom scaling of a totalized count. A Scale Factor of 1 causes an unaffected count. A Scale Factor of 10 divides the total by 10 and a Scale Factor of 0.1 multiplies the total by 10. For example: In our above example, if an inputs engineering units were set at 0 - 100, the Rate was set at Minutes and the Scale Factor was set at 0.1 then, with 100% input there would be a count of 1000 at the end of one minute. 5 Using The Totalizer Block Description High Limit Typically set at time of configuration. This is the value at which a totalizer counting up will stop counting at. If the up counting totalizer is set to Wrap, then this is the value that will cause the wrap to happen. It is also the value at which a totalizer counting down will reset to in the event of a Reset command. Low Limit Typically set at time of configuration. This is the value at which a totalizer counting down will stop counting at. If the down counting totalizer is set to Wrap, then this is the value that will cause the wrap to happen. It is also the value at which a totalizer counting up will reset to in the event of a Reset command. Total Count This is the calculated totalized output of the totalizer block. This is the floating point value typically used for display. The minimum value is 0.0 and the maximum value is 9999999.0. High Limit Status and Low Limit Status These outputs provide indication if either a high or low limit within the totalizer has been reached. When a limit has been reached its respective status output is set true. When the totalized value is reset the status output will go false. Predetermined Count 1 & 2 Status These outputs provide indication if either a Predetermined Count 1 or Predetermined Count 2 has been reached within the totalizer. When the totalized count equals or exceeds a Predetermined Count its respective status output is set true. When the totalized value is less than the Predetermined Count its status output will go false. Mode Typically set at time of configuration. Indicates the mode of the totalizer block. Normally it is set to Run but may be set to Hold. Figures 2 and 3 show the inside of the Totalizer block. Of particular interest is the Initial Values. These settings are used by the Totalizer block on its first execution cycle after a configuration has been downloaded into the instrument. 6 Using The Totalizer Block Description Figure 2. Totalizer Block, Page 1 Figure 3. Totalizer Block, Page 2 7 Using The Totalizer Block Description 8 Using The Totalizer Block Building the Strategy BUILDING THE STRATEGY BUILDING A WORKING TOTALIZER STRATEGY WITH DISPLAY You must be inside a loop compound to build this strategy. It is assumed that the user of this document has a basic understanding of Application Builder software. The totalizer and PID parts of the strategy are relatively straight forward. We will offer two different display options in this application document. If your Application Builder is version 5 or newer the Compounds directory will offer two PID/totalizer display compounds (PIDTOT1.CSM and PIDTOT2.CSM). Both compounds include a single loop PID and totalizer function. PIDTOT1.CSM uses one display tag for the PID, totalized value and totalizer command functions. This functionality is probably the most common display used for a PID and totalizer application. PIDTOT2.CSM places the PID and totalized value on one tag display and the totalizer command functions on a second display tag. If you don’t find these compounds, the following instructions will help you build the PID, totalizer and display(s) from scratch. APPLICATION 1 - TOTALIZER AND PID This first application will include the totalizer display and its command functions on the same display tag as the PID display. This is handy because the operator does not have to leave the PID display to see the totalized value or to use the totalizer commands. Placing The Blocks & Making Connections As a shortcut we will be loading a direct connect PID loop compound from the compounds library. This compound already includes a basic single loop PID with input and output blocks, display, alarms and a tune list blocks. 1. Select the Compounds icon using the right mouse key. 2. From the sub-menu select the Load icon . 3. Select the COMPOUND directory. 4. From the COMPOUND directory select the compound block file entitled BASICPID.CSM. 5. Press OK. 6. When asked to save occurrence numbers, say No. 7. You should have a blue Direct Connect Compound on your PC screen. Double click on the compound to open it. Adding a totalizer block to the compound. from the top of the screen. 1. Select the Library icon 2. Select ALGORITHMS. 3. On the left side of the screen, from the algorithms menu select and drag to the work area a Totalizer block . 9 Using The Totalizer Block Building the Strategy Making connections between the totalizer block and PID block. 1. Select the connection tool. 2. Select the PID block. A sub-menu will appear. 3. Press “NEXT” twice. 4. Select the PVI attribute from this menu. 5. Select the Totalizer block. A new sub-menu will appear. 6. Select ANALINP attribute from this menu. The totalizer now has an input for totalizing. 7. Select the CMD attribute from the Totalizer block. 8. Connect it to I10 of the Display block. This permits display access to the run, hold, stop and reset commands of the totalizer. 9. Select the TC command from the Totalizer block . 10. Connect it to I4 of the Display block. This is the totalized value to be displayed. Modifying blocks to meet this application. 1. Press the right mouse key to drop the connection tool. 2. Enter the Totalizer block by double clicking on the block. 3. Enter the appropriate rate, threshold, etc. information for your particular application. . 4. Close the Totalizer block by clicking on 5. Enter the Display block by double clicking on the block. 6. Enter your loop tag name (ex.: FIC-100) in the Display Tag field. Later we will place this same tag name in the tag list of the DIF block. and enter the information from Table 1. 7. Enter Table 1. Edit Inputs Data, PIDDISP Block Input No. 004 005 007 010 Input Name Type Line Format TOTAL ACTION DELTA CMDINP Remote1 Local Local Remote1 TotalL ActionL Local Data Type Local Data Value Count Shortstate 0 0 1 Changes to Remote automatically happen when an external connection is made. 8. Click on the red diamond in the upper left corner of the Edit Inputs menu to close it. 9. Select . 10. Enter the information from Table 2 into the appropriate fields of formats F8 and F9 respectively. 10 Using The Totalizer Block Building the Strategy Table 2. Edit Display Format Date Format Name Display Format Low Limit High limit Entry Method TotalL ActionL Float0 State 0 1000000.0 None Ent. Req. Display State Table Entry State Table ActionD ActionE 11. Click on the red diamond in the upper left corner of the Edit Display Formats menu to close it. 12. Select . 13. Modify the existing Display block script to appear as that in Figure 3. Script comments are not required but can be useful during future trouble shooting. Script comments are identified with a prefix of /* and suffix of */. DEFAULTS: { MANUAL_PRESSED: { IF OPMS != 3 THEN { OPMS = 0; #LINE5 = " OP"; #LINE6.SRC = OP; } } AUTO_PRESSED: { IF OPMS != 3 THEN OPMS = 1; } SCROLL_PRESSED: { #UPDN = 7; /* display up, /, and down */ IF SCRLCNT >= 2 THEN SCRLCNT = 0; ELSE SCRLCNT = SCRLCNT + 1; CASE SCRLCNT OF { 0: #LINE5 = " OP"; #LINE6.SRC = OP; BREAK; 1: #LINE5 = " SP"; #LINE6.SRC = SP; BREAK; 2: #LINE5 = "TOT"; #UPDN = 1; /* display only up symbol */ #LINE6.SRC = TOTAL; BREAK; } } UP_PRESSED: { /* changes function of up key */ IF SCRLCNT == 2 THEN /* when line 5 is displaying TOT */ #LINE6.SRC = ACTION; #UPDN = 7; } ACTIVE: { IF ACTION && !DELTA THEN { CMDINP = ACTION; /* sends ACTION value to totalizer CMD */ DELTA = 1; /* input then resets it to zero */ 11 Using The Totalizer Block Building the Strategy } /* so as not to cause continuos sends */ /* of the ACTION value. */ IF DELTA THEN /* The CMD register will always be zero */ { ACTION = 0; /* display totalizer value when ACTION */ DELTA = 0; /* command is entered to confirm entry */ #LINE5 = "TOT"; #LINE6.SRC = TOTAL; #UPDN = 1; } } } Figure 3. Display Script 14. Save and exit from the display scripts. 15. Click on to close the Display block. 16. Click twice on the blue diamond in the upper left screen to find the DIF block. 17. Open the DIF block. . 18. Select 19. Enter the Display Tag name as it was entered in the Display Tag field of the Display block. Enclose the tag name with quotation marks and finish it with a semi-colon. For example: “FIC-100”;. 20. Exit and save the display list. to “User” and enter the Display Tag name in the 21. Set the This causes the instrument to come up after a power loss with your new display. 22. Close the DIF block by selecting . . 23. Enter the State block and select 24. At the bottom of the state table list add the two state tables found in Figure 4. ACTIOND, 8, “????????” { 0, “EXIT”; } ACTIONE, { 5, 1, 2, 3, 4, } 8, “????????” “EXIT”; “RESET”; “STOP”; “RUN”; “HOLD”; Figure 4. State Table Data 25. Exit and save the state table list. 26. Close the State Table block by selecting 12 . field. Using The Totalizer Block Building the Strategy Adding Communications 1. Select the Library icon. 2. Select Communications from the library menu. 3. On the left side of the screen select the communications block required for the protocol being used. Select either a Modbus or ICN block. 4. Place the block near the loop compound. 5. Open the block and set the slot location. For example: If you are using the on-board channel of serial communications and are configuring the instrument from the front port the Modbus block slot location will be “On-board”. 6. Compile the configuration and download it into the instrument. Display Operation Unless other changes were made in the strategy to cause a different behavior, the instrument will come up in a manual mode with a local set-point. The output is displayed on the bottom line. Pressing the scroll key once causes the set-point to be displayed on the bottom line. Pressing the scroll key a second time causes the totalized value to be displayed on the bottom line and an up arrow to be illuminated. To enter the totalizer commands menu, press the up key while the totalized value is being displayed on the bottom line. The action of “RESET” will appear on the bottom line and “ENT” will flash next to the scroll key. Pressing the enter key (scroll key) causes the reset operation to be enacted and transfers the operator to the totalizer display. If the enter key is not pressed the action will time out, reset will not be enacted, and the operator will be prompted to exit the totalizer commands menu. This same operation applies to the STOP, RUN and HOLD commands. Each of these commands are accessed after entering the totalizer commands menu and pressing the up key for each command. Pressing the enter key when “EXIT” is displayed on the bottom line causes the totalizer commands menu to close returning the operator to the totalized value display. 13 Using The Totalizer Block Building the Strategy APPLICATION 2 - TOTALIZER AND PID WITH SEPARATE COMMANDS MENU Application 2 will include the totalized value as part of the PID display. However, the totalizer commands menu is assigned to a separate display tag. You must be inside a loop compound to build this strategy. Placing The Blocks As a shortcut we will be loading a direct connect PID loop compound from the compounds library. This compound already includes a basic single loop PID with input and output blocks, display, alarms and a tune list blocks. using the right mouse key. 1. Select the Compounds icon 2. From the sub-menu select the Load icon . 3. Select the COMPOUND directory. 4. From the COMPOUND directory select the compound block file entitled BASICPID.CSM. 5. Press OK. 6. When asked to save occurrence numbers, say No. 7. You should have a blue Direct Connect Compound on your PC screen. Double click on the compound to open it. 8. Open the display block by double clicking on the block. 9. In the Block Tag field enter “PIDDISP”. 10. Close the block by clicking on . Adding a totalizer block to the compound. 1. Select the Library icon from the top of the screen. 2. Select ALGORITHMS. 3. On the left side of the screen, from the algorithms menu select and drag to the work area a block. 4. Enter the Totalizer block by double clicking on the block. 5. In the Block Tag field enter “Total”. This name will appear on the outside of the block. 6. Close the block by clicking on 14 . Using The Totalizer Block Building the Strategy Adding the totalizer commands display. 1. Select the Library icon from the top of the screen again. 2. Select SYSTEM. 3. On the left side of the screen, from the system menu select and drag to the work area a block. Place it above the Display block. 4. Enter the block. 5. In the Block Tag field enter “TOTDISP”. 6. Close the block by clicking on . Making connections between blocks. 1. Select the connection tool. 2. Select the PID block. A sub-menu will appear. 3. Press “NEXT” twice. 4. Select the PVI attribute from this menu. 5. Select the Totalizer block. A new sub-menu will appear. 6. Select ANALINP attribute from this menu. The totalizer now has an input for totalizing. 7. Select the totalizer block again. 8. Select TC (totalized count) from the connection menu. 9. Connect the TC attribute to I10 of the PID display block. 10. Select the CMD attribute from the Totalizer block. 11. Connect it to I4 of the Totalizer Commands Display block (TOTDISP). This permits display access to the Run, Hold, Stop and Reset commands of the totalizer. 12. Select the TC attribute from the Totalizer block. 13. Connect it to input I1 of the Totalizer Commands Display Block (TOTDISP). 14. Click on the right mouse key to drop the connection tool. Modifying the blocks. 1. Enter the Totalizer by double clicking on the block. 2. Enter the appropriate rate, threshold, etc. information for your particular application. 3. Close the Totalizer block by clicking on . 4. Enter the PIDDISP Display block. 5. In the Display Tag field enter the loop tag name of your choice. This is the loop identification that will appear on the front of the instrument while operating that particular loop. This same name will be entered into the Display Tag List of the DIF block. 6. Enter and enter the information from Table 3. 15 Using The Totalizer Block Building the Strategy Table 3. Edit Inputs Data, PIDDISP Block Input No. I10 1 Input Name Type TOTAL Remote1 Line Format TOTALL Changes to Remote automatically happen when an external connection is made. 7. Close the Inputs menu by clicking on the red diamond in the upper left corner of the block. . 8. Select 9. Enter the information from Table 4 into field format F8. Table4. Edit Display Format Data, PIDDISP Block Format Name TOTAL Display Format Float0 Low Limit 0 High limit 10000000.0 Entry Method None 10. Close the Display Formats menu by clicking on the red diamond in the upper left corner of the block. 11. Select . 12. Modify the existing Display block script to appear as that in Figure 3. DEFAULTS: { MANUAL_PRESSED: { IF OPMS != 3 THEN { OPMS = 0; #LINE5 = " OP"; #LINE6.SRC = OP; } } AUTO_PRESSED: { IF OPMS != 3 THEN OPMS = 1; } SCROLL_PRESSED: { IF SCRLCNT >= 2 THEN SCRLCNT = 0; ELSE SCRLCNT = SCRLCNT + 1; CASE SCRLCNT OF { 0: #LINE5 = " OP"; #LINE6.SRC = OP; BREAK; 1: #LINE5 = " SP"; #LINE6.SRC = SP; 16 Using The Totalizer Block Building the Strategy BREAK; 2: #LINE5 = "TOT"; #LINE6.SRC = TOTAL; BREAK; } } SCROLL_HELD: { TUNE; } } Figure 5. PID Display Block Script 13. Exit and save the Display block scripts. 14. Click on to close the PIDDISP Display block. 15. Enter the TOTDISP Display block. 16. In the Display Tag field enter the loop tag name of your choice for the totalizer commands display. This is the loop identification that will appear on the front of the instrument when on the Totalizer Commands display is called up. This same name will be entered into the Display Tag List of the DIF block. 17. Set line 2 to VARIABLE. 18. In the second column to the right of line 2 type “TOTAL”. This causes line 2 of the display to get an input called TOTAL. 19. Leave line 5 at CONSTANT and type “CMD” into the first field. The word CMD will always appear in line 5. 20. Set line 6 to VARIABLE. 21. In the second column to the right of line 6 type “ACTION”. This causes line 6 of the display to show the state names associated with an input called ACTION. and enter the information from Table 5. 22. Enter Table 5. Edit Inputs Data, TOTDISP Block Input No. I1 I2 I3 I4 1 Input Name Type TOTAL ACTION DELTA CMDINP Remote1 Local Local Remote1 Local data Type Valu e Shortstate Shortstate 0 0 Line Format TOTALL ACTIONL Changes to Remote automatically happen when an external connection is made. 23. Close the Inputs menu by clicking on the red diamond in the upper left corner of the block. 24. Select . 25. Enter the information from Table 6 into the appropriate fields of format F1 and F2 respectfully. 17 Using The Totalizer Block Building the Strategy Table6. Edit Display Format Date, TOTDISP Block Format Name Display Format Low Limit High limit Entry Method Display Entry State State Table Table TOTALL ACTIONL Float0 State 0 1000000.0 None Entry Req’d ACTIOND ACTIOND 26. Close the Display Formats menu by clicking on the red diamond in the upper left corner of the block. . 27. Select 28. Add Display block script to appear as that found in Figure 6. DEFAULTS: { ACTIVE: { IF ACTION && !DELTA THEN { CMDINP = ACTION; DELTA = 1; } ELSE IF DELTA THEN { ACTION = 0; DELTA = 0; } } } Figure 6. TOTDISP Display Block Script 29. Exit and save the Totalizer Commands display script. . 30. Close the TOTDISP block by selecting 31. Click twice on the blue diamond in the upper left screen to find the DIF block. 32. Open the DIF block. . 33. Select 34. Enter the Display Tag names for the PIDDISP and TOTDISP Display blocks as they were entered in the Display Tag field of each Display block. Enclose each tag name with quotation marks and finish it with a semi-colon. For example: “FIC-100”;. The order in which you enter the two names will be the order in which they will appear on the instrument display when the TAG key is pressed. 35. Exit and save the display tag list. 36. Set the Display block in the the PID display. to “User” and enter the Display Tag name of the PIDDISP field. This causes the instrument to come up after a power loss with 37. Close the DIF block by selecting 38. Enter the State block and select 18 . . Using The Totalizer Block Building the Strategy 39. At the bottom of the state table list add the following table. ACTIOND, 8, "????????" { 0, "NONE"; 1, "RESET"; 2, "STOP"; 3, "RUN"; 4, "HOLD"; } Figure 7. State Table Data 40. Exit and save the state table list. 41. Close the State Table block by selecting . Adding Communications 1. Select the Library icon. 2. From the library menu select Communications. 3. On the left side of the screen select the communications block required for the protocol being used. Select either a Modbus or ICN block. 4. Place the block near the loop compound. 5. Open the block and set the slot location. For example: If you are using the on-board channel of serial communications and are configuring the instrument from the front port the slot location will be “On-board”. 6. Close the Communications block by clicking on . 7. Be sure there is a non-zero value in one of the scan groups found in the IF (Interface) block. 8. Compile the configuration and download it into the instrument. 19 Using The Totalizer Block Building the Strategy Display Operation Unless other changes were made in the strategy to cause a different behavior, the instrument will come up in a manual mode with a local set-point. The output is displayed on the bottom line. Pressing the scroll key once causes the set-point to be displayed on the bottom line. Pressing the scroll key a second time causes the totalized value to be displayed on the bottom line. To enter the totalizer commands menu, press the TAG key at any time. This causes the display to switch to the totalizer commands display. The totalized value will be on the second line. The word “CMD” will appear next to the scroll key and the up and down arrows will be illuminated. The lower display will state “NONE”. Pressing the up key causes “RESET” to appear on the bottom line and “ENT” will flash next to the scroll key. Pressing the enter key (scroll key) causes the reset operation to be enacted. If the enter key is not pressed the action will time out, reset will not be enacted, and “NONE” will re-appear on the bottom line of the totalizer commands menu. This same operation applies to the STOP, RUN and HOLD commands. Each of these commands are accessed after entering the totalizer commands display and pressing the up key for each command. Pressing the TAG key at any time causes the PID display to return. 20 The Company’s policy is one of continuous product improvement and the right is reserved to modify the information contained herein without notice, or to make engineering refinements that may not be reflected in this bulletin. Micromod Automation assumes no responsibility for errors that may appear in this manual. © 2004 MicroMod Automation, Inc. Printed in USA IB-MLAPP-TOT, Issue 2 MicroMod Automation, Inc. 75 Town Centre Drive Rochester, NY USA 14623 Tel. 585-321 9200 Fax 585-321 9291 www.micromodautomation.com 4/2005
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
Download PDF
advertisement