Home
(FST) User Manual - Welcome to Emerson Process Management
Contents
1. 3 3 Miscellaneous Commands 3 8 MONTON 2 16 Reading From Dewvice 2 13 Reading From File 2 13 A E 2 11 eiim t EE 2 11 STOPPING c EE 2 12 Time Related Commands 3 6 Trace ModE EE 2 20 TFOUDIESHOOUING sii oer en obicere lese ee riceve et 2 15 SR seio 1 1 mw chest m 4 14 Calculating an Execution Rate 4 13 GY CIING ati POT ie itii te re oet eie 4 13 SIODDIIIO an FS T is cado 4 12 Writing Data to a History Point 4 10 G corp M EN 3 8 Guidelines ebe 2 3 H History FW Gen EE 3 11 I DEE 2 15 AP M 3 4 4 2 A HERE 4 2 A A DM ALME 2 19 L Label Structure ooooccccnnccccccooncnnncconononanennnnnononons 2 5 A TTC 3 4 4 2 A eee anc M EET RS 3 4 4 2 OG AMM E T 4 2 l 2 Logical Commands cccccooccccnnnccccncoonccnnnnccnnnanonnnos 4 4 M Mathematical Commands 4 1 VES SQ 6 eegend genee egene ege 3 8 MISC 1 through MISC 4 s 2 20 Miscellaneous Commandqs 4 9 VID esc ae 3 7 Monitoring v dE er 2 16 Monitoring O o eR UNT 1 2 MPU load MONTON rad 1 2 A area tetce tet ececte a rasta aenaeaniee sone nece 3 8 UE e RT 3 8 MSG Pic pe E witout 2 20 MSC te PM 2 20 WS G2 E 2 20 MUNDI P 4 1 N Pel 3 5 O E e PEIE EE e
2. 3 10 3 10 Historical Command 3 12 A PNEU 4 8 Timed Duration Output 4 8 AA DSL 4 7 Timer 1 through Timer 4 2 20 Time Related Commands 4 5 Trace Mode 2 20 Troubleshooting O Eu ES Ei e 2 3 2 15 V V RE 3 9 W Wall WD 3 7 UM acuta n LU SII DII I TES E 3 10 Writing Data to a History Point 4 10 REN IPRC 3 7 ug DEE 3 10 X O O A A 3 5 l 3 FST User Manual If you have comments or questions regarding this manual please direct them to your local sales representative or contact Emerson Process Management Remote Automation Solutions Marshalltown lA 50158 U S A Houston TX 77065 U S A Pickering North Yorkshire UK Y018 7JA Website www EmersonProcess com Remote l 4 Index EMERSON Revised Sep 10
3. To access the registers 1 Select Configure Control FST Registers from the ROCLINK 800 menu bar The FST Registers screen displays FST Registers S I FST Registers EST Tag FSTON Lag FST 1 General Advanced General Advanced Status o AAA Enabled Status Version Disabled Version Enabled Description Not Running Description FST Example 1 e Disabled Registers Registers Data Tag Data Pastene Register 6 de Register01 RG Register06 0 0 AM pun rod 2 Register02 i RZ Register07 0 0 Apra E Ress ug d Register03 R8 Register 0 0 Register 83 JU Register 2 4 Register04 i Rg Register09 0 0 Register 4 U Register 3 U 5 Register05 R10 Register10 0 0 Register 5 U Register 10 U Copy 2 Update Y OK X Cancel Copy Update Y OK X Cancel Figure 1 3 FST Registers General tab ROC800 Figure 1 4 FST Registers General tab Series Introduction Revised Sep 10 FST User Manual Note The format for the ROC800 Series FST Registers screen for both the General and Advanced tabs differs slightly from the format for other devices ROCLINK 800 provides up to 10 registers for each FST 2 Complete the following fields Field Description FST Identifies the selected FST Refer to Table 1 1 for the number of FSTs for each device Tag Sets a 10 character alphanumeric label for the EST Version t This display only f
4. D Data Tag Data 7 Beie 00 O 8 Beie 00 Rig Regstet og H Reaisterl4 A Register05 ale 2 a 4 Bs Copy Auto Scan 2 Update Y OK X Cancel 3 Select the appropriate FST click V to display all defined FSTs 4 Select Enabled in the Status frame 5 Click Apply and click OK The status changes to Running 2 3 5 Stopping an FST To stop an FST 1 Connect to the device using ROCLINK 800 2 Select Configure gt Control gt FST Register The FST Registers screen displays FST Registers EST ARI Tag FSTO1 General Advanced Status CH Version x La Enabled f Disabled Description Test FST Running Registers Data Tag Data R 6 Reges foo 7 Beie DO 3 Registe8 DO FO Register 0 10 0 H Register q Register 1 ile Ans Se 4 5 Auto Scan t Update Y OK Cancel 3 Select the appropriate FST 4 Select Disabled in the Status frame 5 Click Apply and then click OK The Status changes to Not Running 2 12 FST Editor Revised Sep 10 FST User Manual 2 3 6 Clearing an FST To permanently delete an FST from a device 6 Select FST gt Clear from the FST menu IU Edit View Build Monitor Window Read d ar H Save To FST File CSS S 1 RE d 17501 Jm s r E Print Preview 3 FSTO3 GUMENT Close 4 FSIO4 3 FSTUS 2 6 FSTOG 3 1 7 Select the desired FS
5. mE Restarts If the FST is saved to memory and is running active when the restart occurs ROCLINK 800 automatically z restarts the FST at its beginning step Cold Start Clears the FST Registers but restores them from Internal Configuration Memory if valid If you select a Cold Start amp Clear FSTs or a Cold Start amp Clear ALL ROCLINK 800 permanently clears FSTs from Internal Configuration Memory Firmware If the FST is saved to memory and is running active Upgrades when the firmware upgrade occurs ROCLINK 800 2 1 3 Label Field The optional Label field allows you to uniquely identify a function A label consists of up to six alphanumeric characters in any combination automatically restarts the FST at its beginning step A common practice 1s to use the label to identify the action the function performs For example the label PUMPON describes a function that activates a pump Note Do not use the names of commands as labels Labels enable branching the ability to direct the execution to a function other than the next function in the sequence Table 2 1 shows an example of branching Step 0 instructs the program to GO to the label PMPOFF as established by Argument 1 in step 0 The program then branches to step 2 where the LABEL PMPOFF is located and performs that function Table 2 3 FST Label Field STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 i PUMPON DO DOU41 0 NN Revised Sep 10 FST User M
6. The workspace area 1s a table divided into rows and columns with the intersection called a cell Cells are denoted by a box containing the cursor and a gray line around the cell Use Tab and the arrow keys to move between cells or you can access a cell directly by clicking it with the mouse The header line of the workspace contains the function structure column names The STEP column contains the numbers that correspond to the number of rows or steps available in the workspace The LABEL CMD ARGUMENT 1 and ARGUMENT 2 columns correspond to the structure of the functions The COMMENTS column allows you to insert comments about the FST Revised Sep 10 FST Editor 2 1 FST User Manual _ Ctrl Home _ Ctrl End Delete End Tab Note Comments do not download they are only included in the FST _ when you save 1t to a file Table 2 1 shows keys and commands you can use to manipulate and move around the FST workspace Table 2 1 Workspace and Output Keystrokes Action Move cursor to the right cell or character Move cursor to the left cell or character o Move cursor to the cell above it Move cursor to the cell below it Delete the previous character 00 Move cursor to top left cell of Workspace Move cursor to bottom right cell of Workspace Within a cell move cursor to the right most position within the cell am Wiihin a row move cursor to the right most position in the row Enter
7. Process saves contents of cell entry and moves to the next cell Help Within a cell move cursor to the left most position within the cell Within a row move cursor to the left most position within the row Display next page of Workspace 1 11 11 1 Display previous page of Workspace Move to the next cell FST Function Each function consists of a STEP number an optional LABEL a Structure command CMD and up to two arguments ARGUMENT 1 and 2 2 ARGUMENT 2 See Table 2 2 Table 2 2 FST Function Structure STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 9 qo III The FST program automatically provides the step numbers for each FST You complete the other fields in the structure to build a function Note Do not skip any steps The FST program treats a blank step as the end of a program and does not compile correctly FST Editor Revised Sep 10 FST User Manual 2 1 1 Guidelines for Creating FSTs When you create FSTs note the following guidelines Every FST requires one and only one END command The END command tells the FST to return to the first step and to run either from the first line step 0 or from the step where the FST begins Note When you compile the FST Editor automatically converts the first blank line it finds to an END command Any commands after that blank line are lost and the FST may not compile correctly Do not skip any steps in an FST To prevent ov
8. 2 FsT02 3 FsT03 o 4 TT Click Select To Insert Step Place a blank line in the workspace before the current line Use this option to add a function between two E existing functions Delete Step Delete the current line from the workspace vga Erase Permanently erase the contents of the current workspace Workspace You can save the FST to a file before you erase the Of r MMH H EEEHEEETTEETERS workspace You can also use the familiar Windows cut Ctrl X copy Ctrl C and paste Ctrl V commands to manipulate workspace content You can copy fields entire steps or blocks of steps However the FST Editor does not insert but overwrites existing fields 2 4 Troubleshooting an FST An execution error which occurs when the FST references a point number that has been removed or changed can stop an FST If one or more errors occurs during the compile process Build gt Compile the Output field lists the error type and highlights in red the cell in question see Figure 2 8 Revised Sep 10 FST Editor 2 15 FST User Manual Za ROCLINK 800 Function Sequence Table 3 FSTO3 C Program Files FSTs st1 fst AE FST Edit View Build Monitor Window D GF b gi MM E MN ee el 2 Ki E 8 o 1 FST01 2 FsTo2 3 FsTO3 4 FsTo4 s rsros e rer STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 COMMENTS Not stored in device
9. Wait WT 8 1 0 implies a one second delay Day of Week DWK and Minutes Since Midnight MND Table 3 7 Time Related Commands Name ST Description Set Timer for specified FST with value in 100 mSec intervals value in 100 mSec intervals WT number of seconds ARG1 have elapsed The number of seconds can be from 0 1 to 999 999 Day of Week sets RR out to the day of the week 1 Sunday 7 Saturday Note The DWK function requires Check Timer for specified FST with Wait suspend FST until specified Arguments 1 Output FST Point Database Value 2 Input Database or Constant Value 1 Input FST Point Database Value 2 LABEL i 1 Input Database or Constant Value that you correctly set the real time clock Minutes Since Midnight sets RR out to the number of minutes past midnight Revised Sep 10 None Command Library These commands are written to the Results Register For DWK 1 Sunday through 7 Saturday Results FST Timer ARG1 ARG2 RR out RR in SVD out SVD in If FST Timer ARG1 0 continue to next command Otherwise Goto ARG2 RR out RR in SVD out SVD in Delay ARG1 seconds RR out RR in SVD out SVD in RR out Day of Week SVD out SVD in RR out Minutes SVD out SVD in 3 FST User Manual 3 8 Miscellaneous Use the miscellaneous commands to move around FSTs and end FSTs Commands Miscellaneou
10. As noted using the Results Register RR is optional You can create and run an FST without pre defining register values through these screens Revised Sep 10 Introduction 1 7 FST User Manual This page is intentionally left blank 18 3 mmodcton Revised Sep 10 FST User Manual Chapter 2 The FST Editor Title Bar FST Menu Bar Selected FST Header Line Cell Output field Compiled FST Using the FST Editor you create compile debug and download FSTs to the device The FST Editor consists primarily of a workspace and menus similar in structure to spreadsheet programs see Figure 2 1 The FST Editor also allows you to monitor and trace an FST while it runs Select Utilities gt FST Editor or click the FST Editor button E on the ROCLINK 800 toolbar to launch the FST Editor The FST Editor screen displays um ROCLINK 800 Function Sequence Table 1 Workspace el d L FST Edit View Bu Monitor Window F T B n B r Dc a gi Whew WW GO RR bk 2 W S utto a amp amp S rer FsT2 rera rsr4 STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 FST Tool Bar COMMENTS Not stored in device Use Read File to get comments AAA Workspace pjOijejej ije joe ansjco nro o 1 18 b ONSEN s37am Figure 2 1 FST Editor The FST Editor provides a workspace menus and buttons for creating an FST The title bar at the top of the workspace window identifies the FST you are creating or editing
11. Cal FL wIN G Monitor flowing conditions determining shutdown al END Step Activity 0 AO opens the control valve to 100 percent flow 1 ST sets Timer 1 TMR1 for 600 100 mSec periods 1 minute The flow rate should be at least 25 of maximum after 1 minute 2 WT waits 5 seconds This delay helps control the rate of the FST s execution freeing time for other tasks Not using a delay can cause unnecessary repetitive executions This step also has a label AGAIN 3 VAL reads the instantaneous substance flow rate as measured by the analog input module 4 channel 2 4 The Greater Than Compare command gt compares the measured flow rate to 25 percent 5 The flow is expected to be at least 25 percent after 1 minute If the Check Timer CT has not expired and flow is less than 25 percent the FST remains in the loop either until the timer expires or flow reaches 25 percent If the 1 minute span expires and flow has not reached 25 percent the control valve closes 7 After the control valve closes wait 1 hour 3600 seconds before attempting to re open the valve 33 A step that monitors the flowing conditions determining shutdown 54 END completes execution of the FST After a 100 millisecond delay execution restarts at Step O 46 2 ExampleFSTs RevisedSep 10 FST Timers FST User Manual The FST Timer is an unsigned long data type 32 bit integer and supports numbers up to 4 294 967 295 However when writing a
12. Constant Value SVD out SVD in Discrete output Sets the discrete output 1 Output DO Point DO Output ARG1 ARG2 point status to the argument value lf the Database Value discrete output is in Manual no outputis 2 Input Database or RR out RR in sent Constant Value SVD out SVD in Timed duration output Activates a DO 1 DO Point Database DO Output ARG1 port configured as a TDO or TDO toggle Value This command requires that you write a RR out RR in value to the EU Value parameter prior to SVD out SVD in the DO command Mathematical Commands Revised Sep 10 Note To trigger outputs use the corresponding output command see Table 3 2 These commands trigger the mechanism that changes the output value The analog output AO command sends the analog value specified in ARGUMENT to the analog Point Number specified in ARGUMENTI The analog value is not sent if the analog Point Number is in Manual Mode The check for Manual Mode is included as a safety feature and permits the FST to continue operation if the device connected to the analog output is being serviced If a PID loop is controlling the analog output placing the PID loop into Manual Tracking Mode allows the FST to send a value to the output parameter of the PID For other active PID modes the FST and PID will be in conflict The mathematical commands provide simple arithmetic or mathematical operations Such operations include addition sub
13. DL DN DIO DOU 8 1 STATUS 1 10 DO OFF DO DOU 8 1 STATUS DO DOU 8 1 STATUS 1 WT 2 DO DOU 8 1 STATUS 0 Activity WT delays 2 seconds This allows the output to be on fora minimum of 2 seconds 22 DO activates output to the OFF state Steps 20 21 and 22 are equivalent to a Timed Duration Output pulse with a duration of 2 seconds Note The FB407 and ROC300 Series devices must use the AO DO and TDO commands to drive outputs from an FST SAV and other commands doe not affect the output Timed Duration Following is an example of a Timed Duration Output TDO control Output command in an FST ARGUMENT 1 ARGUMENT 2 DOU 8 1 ELI DOU 8 2 STATUS Step Activity 0 VAL loads the Results Register with the value 2 percent or seconds output depending on the configuration 1 SAV stores the value in the Results Register to the EU parameter for the DO point number 1 3 END completes execution of the FST After a 100 millisecond delay execution restarts at Step O Note The FB407 and ROC300 Series devices must use the AO DO and TDO commands to drive outputs from an FST SAV and 48 ExampleFSTs RevwisedSep 10 FST User Manual 4 1 6 Database Commands Database commands provide access to the device s configuration and historical databases Operations include reading and writing configuration parameters and reading writing and time stamping values to a history point Th
14. Use Read File to get comments VAL SFP 1 DATAT FST 1 H1 e HS MUN wd RA UCM WT 5 END U 1 E j 4 5 5 y B mpile FST O VAL SFP 1 DATAL WDB 3 APG 1 Invalid history point Need to define ARCE WTH 10 AEG 1 Invalid history point Need to define ARGZ WT 5 END 5 lines 35 bytes code 4 error s detected Figure 2 8 Compile Errors Execution errors are caused by changes in the device configuration after the download of an FST This may include removal of 1 O or other logical points the FST uses In Monitor mode the Run Flag Status RF indicates execution errors RF Meaning O Indicates the FST is not running mmh 5 o O sr D Se mE gt D T OD C 5 gt 5 Indicates the FST has shut down due to an invalid point reference usually an out of place or unexpected I O Indicates the FST Editor has initiated Trace mode co uo When an FST fails as indicated by an RF value of 5 you can view the specific IP at which the FST failed 2 4 1 Monitoring an FST Monitoring an FST is an online function that enables you to watch the components of an FST change as the FST executes Use the FST Monitor menu to select which FST to monitor turn Trace mode on and off close the FST pause or resume an FST monitor 2 16 FST Editor Revised Sep 10 FST User Manual registers timers miscellaneous registers and messages and compare flag options Note Tracing an FST is
15. active when the restart occurs ROCLINK 800 automatically restarts the FST at its beginning step Clears the FST Registers but restores them from Internal Configuration Memory EEPROM if valid If you select a Cold Start amp Clear FSTs or a Cold Start amp Clear ALL ROCLINK 800 permanently clears FSTs from Internal Configuration Memory If the FST is saved to memory and is running active when the firmware upgrade occurs ROCLINK 800 turns the FST off It must be manually restarted Revised Sep 10 Activity ROC300 Series Write to Internal FST User Manual Process Permanently saves FST point parameters Registers Config Memory and Run Flags to memory Does not save FST EEPROM executable code to Config Memory Restarts If the FST point type is saved to memory and is running active when the restart occurs ROCLINK 800 El automatically restarts the FST at its beginning step Cold Start Clears the FST Registers but restores them from Internal Configuration Memory EEPROM if valid If you select a Cold Start amp Clear FSTs or a Cold Start 8 Clear ALL ROCLINK 800 permanently clears FSTs from Internal Configuration Memory Firmware If an FST point type is saved to memory and is running Upgrades active when the firmware upgrade occurs ROCLINK FloBoss 500 Series Write to Internal 800 automatically restarts the FST at its beginning step Permanently saves FST to memory Config Memory
16. Break delays execution of each 1 Input Database or Constant FST break time ARG1 command after this one for the Value RR out RR in number of 100 millisecond intervals SVD out SVD in defined by ARGUMENT1 End of FST returns to first None Execute FST starting with first command command RR out RR in SVD out SVD in Command Library Revised Sep 10 Name MSG Description LCD Message sends message ARGUMENT 1 and value ARGUMENT to local display panel One 30 character message can be sent by each FST as shown next Arguments 1 Input Message 2 Input Database or Constant Value XXXXXXXXXXXXXXXXXX xxxxxxxx ARG2 VAL YYYYYYYY ZZZZZ ZZ SCAN NEXT PREV MENU XXXX message yyyy FST Tag name zzzz ARGUMENT2 value FST User Manual Results FST Message String ARG1 FST Message Value ARG2 RR out RR in SVD out SVD in Log Alarm records message ARGUMENT1 and value ARGUMENT in the Alarm Log Only the first 10 characters of the 30 character messages are used 1 Input Message 2 Input Database or Constant Value 1 Input Message 2 Input Database or Constant Value Log Event records message ARGUMENT 1 and value ARGUMENT in the Event Log Log Alarm ARG1 ARG2 RR out RR in SVD out SVD in Log Event ARG1 ARG2 RR out RR in SVD out SVD in Only the first 10 characters of the 30 character message are used Revised Sep 10 Note The ALM a
17. EAE 3 5 P x tM 3 4 POR ona are ee nee 2 14 eidel TB 4 3 O A EA 4 2 Print A O 2 14 R ix duit ocius eta oan asians 2 19 A ENG 3 10 Head cl 2 7 Heading FST From Device vicio 2 13 mA erleben 2 13 sig EE 2 19 min NE MR 2 19 zt Er 2 14 S E EE 3 9 Saving Dol uan uoto ra pt o uo M que 2 11 Sel TIME S Tinta 3 7 Lo tc Eu 2 19 sel EE 3 4 4 2 Square alae tM 4 2 cmm 3 7 Starting Revised Sep 10 A E E 2 11 SP tare es tials nae uaaieha laae Gata 2 2 Stopping A A 2 12 Stopping an EST 4 12 SUD AC EEN 4 1 T Tables 1 1 FST Functionality 1 1 2 1 Workspace and Output Keystrokes 2 2 2 2 FST Function Structure 2 2 ero Lada Held 2 5 2 4 Command Held 2 6 2 5 FST Function Example 2 7 2 6 Parameter and Data Fields 2 19 2 7 Monitor and Trace Mode Keystrokes 2 20 3 1 Command Library Conventions 3 1 3 2 Command Summary 3 1 3 3 Control Related Commands 3 3 3 4 Mathematical Commands 3 4 3 5 Logical Commande snnaeeeaneneeeneaeeeenne 3 5 3 6 Comparison Commands 3 6 3 7 Time Related Commands 3 7 3 8 Miscellaneous Commands 3 8 Revised Sep 10 Index ROC800 Series Instruction Manual 3 9 Database Commands
18. Note Ifthe Results Register RR is less than or equal to zero no operation occurs with the LOG LN power or SQR commands 42 ExampleFSTs rr RevisedSep 10 Polynomials Revised Sep 10 FST User Manual STEP LABEL CHD ARGUMENT 1 ARGUMENT 2 O VAL FST 1 H1 1 ABS 2 SAM FST 1 R2 D END H A Step Activity O VAL loads the value of Register R1 into the Results Register 1 Updates the value in the Results Register with the absolute value 2 SAV stores the value in the Results Register to Register R2 for viewing 2 Completes execution of the FST After a 100 millisecond delay execution restarts at Step O This example demonstrates the use of the polynomial P3 command This command performs a 3rd order polynomial calculation of the following form Y AX BX CX D Where X Results Register before the polynomial calculation Y Results Register after the polynomial calculation A B C and D Coefficients for the polynomial calculation In this example the 3rd order polynomial calculates the decimal equivalent of a 4 bit binary number The coefficients from the above equation A B C and D represent the individual bit values 0 or 1 of the 4 bit binary number You enter the coefficients manually as either 0 or 1 into FST Registers R1 through R4 The decimal equivalent of the 4 bit binary number displays in FST Register RS STEF LABEL CMD ARGUMENT 1 ARGUMENT 2 D VAL SFPIDATAI 1 Sav FST LA
19. User Manual Power and This example demonstrates the use of the power command Exponent SEP LABEL CMO ARGUMENT 1 ARGUMENT 2 0 va FST1RI 1 10 E SAW FST 1 A2 3 END A 5 Step Activity 0 VAL loads the value in Register R1 into the Results Register 1 Raises the value in the Results Register to the power of Argument 1 which is 10 2 SAV stores the value in the Results Register to Register R2 for EN VIEWING 4 4 v 3 Completes execution of the FST After a 100 millisecond delay execution restarts at Step O Note If the Results Register RR 1s less than or equal to zero no operation occurs with the LOG LN power or SQR commands This example demonstrates the use of the exponent EXP command STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 O VAL FST 1 H1 1 EXP 2 SAM FST 1 R2 d END 4 5 Step Activity 0 VAL loads the value of Register R1 into the Results Register 1 Updates the value in the Results Register with the value of e EE 2 738 000000 2 SAV stores the value in the Results Register to Register R2 for viewing 3 Completes execution of the FST After a 100 millisecond delay execution restarts at Step 0 Absolute Value Integer This example demonstrates the use of the absolute value ABS Logarithm and command but also applies to the integer INT base 10 logarithm Square Root LOG natural logarithm LN and square root SQR commands
20. accumulated data was logged To define an FST history point 1 Select Configure gt History Points 2 Select the desired History Point 3 Click the Archive Type TLP button and select FST Time or FST Data 4 Click the Archive Point TLP button and select any TLP such as FST Register 2 to contain the data or time stamp The Archive Point selection is ignored by the FST 5 Click OK Command Library FST Use Name DHV DHT r Manual Historical Commands Description Daily History Value AA Daily History Time Stamp The FST for a history point uses one of the historical database commands and two arguments ARGUMENT typically contains the history database history point number with a value between 1 through 200 ARGUMENT is the History Index or database pointer to the history storage array The history storage array holds entries taken at either set intervals typically daily hourly and each minute or user configurable intervals For the DHV DHT PHV PHT and MHV commands select the History Segment and the corresponding History Point that you desire to log in Argument 1 In Argument 2 select either a database point or a constant value which 1s the actual History Index where the data resides in the historical database The Minute History Value MHV History Index is the same as the minute of the hour Read the clock s minutes to get the last History Index value For example if it is 8 10 then the
21. an individual disk file 1 Select FST gt Save To FST File or click Save to FST File on the FST Editor toolbar see Figure 2 7 FST Edit View Build Monitor Window A Bi MTM EE e Figure 2 7 FST Editor Toolbar A Save As dialog displays Save in C3 FSTs 8 counter loop fst a Example 2 fst sl Example fst sl fsti fst 3 HOUSTON1 fst 3 HOUSTON2 fst 3 SHANJING RL800 fst File name HOUSTON fst oo Save as type FST File Cie M Cancel 2 Enter a file name and click Save The FST Editor saves the file in the location you specify with an fst extension 2 3 4 Starting an FST Once your FST compiles successfully and you download it to the device you have to start the FST before it can run Depending on your device you can have up to six FSTs running at one time See Table 1 1 for the device specific FST availabilities Using the FST Registers screen you select a one of the device s available FST slots For example a ROC800 Series allows you to define and run six FSTs at one time an FB107 only allows you to define and run 4 FSTs at one time Revised Sep 10 BT E 2 FST User Manual 1 Connect to the device using ROCLINK 800 2 Select Configure gt Control gt FST Register The FST Register screen displays FST Registers EST A Tag IFSTOI General Advanced Status ia Version IM Enabled Disabled Description Test FST Running Registers a
22. another technique for troubleshooting You active tracing from the Monitor screen Refer to Section 2 4 2 Tracing an FST for detailed instructions To start Monitor mode either Select Monitor from the FST menu bar and then select an FST Build me Window 1 FSTOL 2 FSTOZ 4 3 FSTOS D Fal PRA Gol AL Ser earn Click the Monitor icon S Jon the FST toolbar Note This option starts Monitor mode only for the currently selected FST The Monitor FST screen displays and begins monitoring the selected EST Revised Sep 10 FST Editor 2 17 FST User Manual ven ROCLINK 800 Monitor FST1 FSTO1 FST View Monitor Window D 6 E Bi AS CARA E od E STEP IP LABEL CMD ARGNAMENT 1 ARGUMENT 2 COMMENTS 0 SFP 1 DATA E 10 RESET 2 1 er SFP 1 DATA ISI Monitor toolbar 43 RESET 0 43 SFP 1 DATA RA 55 FINISH 1 H1 ce CO e en m ces nr3 61 H2 FST values se see Table 4 1 Du Hh RE R7 H8 Ag A10 Timer 1 Timer 2 Timer 3 Timer 4 Mag 1 3 Mag 2 gt Meg Data 0 0 JONSLINES 11 20 Am Figure 2 9 Monitor FST Screen Use the toolbar icons to manage the monitoring process Purpose Resumes monitoring This icon activates when monitoring stops Stops monitoring This icon activates while monitoring occurs Starts tracing This icon activates when tracing stops Stops tracing This icon activates when tracing occ
23. but restores the registers from Internal Configuration Memory if valid If you select a Cold Start amp Clear FSTs or a Cold Start amp Clear ALL ROCLINK 800 permanently clears FSTs from _Internal Configuration Memory Firmware If the FST is saved to memory and is running active Upgrades when the firmware upgrade occurs ROCLINK 800 turns the FST off It must be manually restarted Write to Internal Permanently saves FST to memory Config Memory FST Editor 2 3 FST User Manual 2 4 FloBoss 100 Series FloBoss 407 Version 1 04 or greater FloBoss 407 Version 1 03 or less Activity Restarts Cold Start Firmware Upgrades Write to Internal Config Memory Firmware Upgrades Write to Internal Config Memory Cold Start Firmware Upgrades Write to Internal Config Memory EEPROM Restarts Firmware Upgrades FST Editor Process If the FST is saved to memory and is running active when the restart occurs ROCLINK 800 automatically restarts the FST at the beginning step Clears the FST Registers but restores the registers from Internal Configuration Memory if valid If you select a Cold Start amp Clear FSTs or a Cold Start amp Clear ALL ROCLINK 800 permanently clears FSTs from Internal Configuration Memory If the FST is saved to memory and is running active when the firmware upgrade occurs ROCLINK 800 turns the FST off It must be manually restarted
24. determines the number of 100 millisecond intervals that have elapsed while a sequence of functions executes Example FSTs 4 13 FST User Manual 4 14 ARGUMENT 1 ARGUMENT 2 FST 1 THAI 100 FST 1 TMA FST 1 AG FST 1 TM FST 1 R7 Activity Set Timer ST sets the timer specified in Argument 1 to the number of 100 millisecond intervals specified in Argument 2 Note Steps 1 19 omitted from this example represent any FST steps VAL reads the timer to establish the reference time for the beginning of the sequence SAV stores the value of the timer to Register R6 Note Steps 22 39 omitted from this example represent any FST steps VAL reads the timer at the end of the sequence 0 ST 20 VAL 2 SAV 40 VAL 41 SAV Step 0 a 41 SAV stores the value of the timer to Register R7 To calculate the execution rate take the difference between register values R7 and R6 and multiply that result by 0 1 to arrive at an execution rate in seconds rounded to the nearest 100 milliseconds Note You can also use the device s alarm functions to determine the execution rate For example to determine the execution rate of a meter run s instantaneous flow rate you can first enable the alarms for the meter run Then you change the inputs forcing the flow rate into and out of the alarm conditions Finally examine the Alarm Log to determine the execution rate of the instantaneous fl
25. found Stores value in RR Valid Time Elements 0 Month 1 Day 2 Year 3 Hour 4 Minute 5 Second 3 13 FST User Manual 3 14 This page is intentionally left blank Command Library Revised Sep 10 FST User Manual Chapter 4 Example FSTs This chapter shows how you can implement specific commands in an FST and then provides examples of application oriented FSTs Note All examples presume that you have successfully compiled and downloaded the FSTs to a device 4 1 Implementing Specific Commands The following examples show how you can implement specific commands in an FST 4 1 1 Mathematical Commands Note If the Results Register RR 1s less than or equal to zero no operations occur with the LOG LN power or SQR commands Add Subtract This example demonstrates the use of the add command but also Multiply and Divide applies to the subtract multiply and divide commands STEP LABEL CHE ARGUMENT 1 ARGUMENT 2 U MAL A 1 10 2 BAM FST 1 H1 3 END 4 A Step Activity O VAL loads 5 into the Results Register 1 Adds 10 to the Results Register 2 SAV stores the result 15 the sum of 5 10 to Register R1 for viewing 3 Completes execution of the FST After a 100 millisecond delay execution restarts at Step O Note For the divide command no operation occurs 1f Argument 1 is Zero Revised Sep 10 Example FSTs 1 A FST
26. the FST of the next function to be executed One storage location is used for each byte that stores the function Size The number of bytes reserved for the FST program in bytes Equivalent to the end pointer value minus the start pointer value Brk The delay in 100 millisecond intervals between the execution of successive FST Commands or S functions h RR The Results Register or accumulator sometimes referred to as the Signal Value Analog SVA is a floating point value passed between functions or FSTs R1 through R10 Ten floating point registers for each FST The floating point registers are used for global storage and register contents can be called into any of the FSTs configured for a device WWW WWW Revised Sep 10 FST Editor 2 19 FST User Manual Field Description Timer 1 through Four timers When set greater than 0 they Timer 4 decrement by 1 every 100 milliseconds A timer can be set using the Set Timer ST Command or by saving the RR Results Register directly to the timer parameter using the SAV Command The Check Timer CT Command is used to compare the timer to 0 When greater than 0 it branches to the desired LABEL MSG2 Not used by the FST A value can be written to MSG2 using the FST Registers point or a ROC Display field and viewed while monitoring or tracing MEN the FST MSG Data Displays any values associated with MSGI MISC 1 th
27. 9 and R2 is the pointer for History Point 10 Activity VAL readies the Results Register for activity increments the value in the Results Register SAV stores the new value to the Results Register WDB writes the contents of the Results Register to History Segment 1 History Point 9 location R1 Because H1 is a floating point parameter the FST editor compares the contents of R1 against the number of archived periods and either sets the value to 0 or increments it by 1 WTM writes a time stamp of the Results Register to History Segment 1 History Point 10 location R2 Because R2 is a floating point parameter the FST editor compares the contents of R2 against the number of archived periods and either sets the value to 0 or increments it by 1 WT delays the FST 420 seconds before continuing 4 2 2 Stopping an FST END completes execution of the FST After a 100 millisecond delay execution restarts at Step O This example shows how to set the FST s run status to 0 in order to stop the FST from executing after it completes a desired task ARGUMENT 1 ARGUMENT 2 0 VAL 1 SAM E END A Example FSTs D FST 1 STATUS Revised Sep 10 FST User Manual Step Activity _ 0 VAL loads the Results Register with the value 0o 1 SAV stores the value in the Results Register to the E FST Run status 0 0 0 2 END completes execution of the FST Note In this case the FST doe
28. BEL CMD ARGUMENT 1 ARGUMENT 2 COMMENTS Not stored in device Use Read File to get comments 0 VAL SFP 1 DATAT E 1 gt 10 RESET 2 1 3 SAV SFP 1 DATA 4 GO FINISH 5 RESET VAL 0 6 SAV SFP 1 DAT 1 7 FINISH wr 1 Compiled version of m FST in Output field VAL SFP 1 DATA1 6 gt 10 21 H 1 27 SAV SFP 1 DATA1 33 43 RESET 49 SAV SFP 1 DATA1 55 FINISH WT 1 1 END a G Fe 3 4 5z 6 ES 8 Compiled FST Code 1C 47 62 00 01 00 15 22 0A 00 00 00 34 00 2B 52 45 53 45 54 20 01 22 01 00 00 00 1D 47 62 00 01 00 1E 34 00 37 46 49 4E 49 53 48 1C 22 00 00 00 00 1D 47 62 00 01 00 19 22 01 00 00 00 20 9 lines 62 bytes code 0 errors detected DRE 1 37PM Figure 2 3 Compiled FST If invalid points exist in the FST during compilation you receive an error indicating which point number is missing Note If an error occurs during the compile process the Output field lists the error type and the cell in question turns red Correct all errors and recompile Compile errors may occur when you Enter invalid arguments or commands in the FST Perform a compile The error displays in the Output field at the bottom of the FST workspace Open an FST from a device or disk file Downloading an FST Once you have successfully compiled an FST you can download it to the device s memory 1 Select File gt Download or click Download on the FST Editor toolbar see Figure 2 4 9 FST Edit View Build Moni
29. D in If RR in gt 0 0 RR out LOG RR in SVD out SVD in Otherwise RR out RR in SVD out SVD in If RR in gt 0 0 RR out LN RR in SVD out SVD in Otherwise RR out RR in SVD out SVD in If RR in gt 0 0 RR out SQRT RR in SVD out SVD in Otherwise RR out RR in OU Sve RR out regi RR in 3 reg2 RR in 2 reg3 RR in 1 reg4 where reg1 through reg4 are the current constant values of Register 1 through Register 4 of the respective FST SVD out SVD in Logical You can store a discrete value called the Signal Value Discrete SVD Commands in the Compare Flag CF The SVD is stored as an 8 bit byte The CF is true whenever non zero and the CF is false when zero 3 4 Command Library Revised Sep 10 Logical AND ARG1 with SVD in 1 Input Database or Constant RR out RR in Logical OR ARG1 with GV Dim 1 Input Database or Constant RR out RR in Logical XOR ARG1 with SVD in 1 Input Database or Constant RR out RR in Revised Sep 10 Logical NOT of SVD in FST User Manual Logical commands operate upon the Compare Flag CF Prior to execution of a logical command the CF must be loaded with an 8 bit value by using the SAV command The bit wise logical commands AND OR NOT and XOR apply Boolean operations on two 8 bit integers bit by bit The two 8 bit integers are the CF and the value
30. Form Number A4625 Part Number D301058X012 September 2010 Function Sequence Table FST User Manual xm ROCLINK 800 Function Sequence Table 1 Workspace JB lx FST Edit View Build Monitor Window E X D E gi COMM Mn GO RS hl 2 M LE i Ce amp Ea S FsT1 rsr2 Fst 3 reral STEP LABEL CMD ARGUMENT 1 COMMENTS Not stored in device Use Read File to get comments VAL SFP 1 DATA1 WDB 9 WTM 10 WT 5 END FST 1 R1 FST 1 H2 VAL SFP 1 DATA1 WDB 9 Compiled FST Code 1C 47 11 00 02 00 29 22 09 00 00 00 47 10 00 02 00 2A 22 OA 00 OO OO 47 10 00 03 OO 19 22 OS 00 OO 00 5 lines 35 bytes code 0 errors detected fi A E MERS m E T e fis bw IM e fe Remote Automation Solutions Tr 4 O N IM i ra ga anavge ment aE Il NB LEA E Function Sequence Table FST User Manual Revision Tracking Sheet September 2010 This manual may be revised periodically to incorporate new or updated information The revision date of each page appears at the bottom of the page opposite the page number A change in revision date to any page also changes the date of the manual that appears on the front cover Listed below is the revision date of each page if applicable Page Revision All pages Sep 10 Initial issue Jan 04 NOTICE Remote Automation Solutions RAS division of Emerson Process Management shall not be liable for technical or editorial errors in this manual or
31. History Index is 10 For the Extract Time Element GTE command select the database point or a constant value which is the actual History Index value where the data resides in the historical database In Argument 2 select the Time Element to log the exact time of the database point or History Index value The GTE command is used to extract the time element from the time stamp received back from the CHT and PHT commands For DIS DIN PIS and PIN commands select the History Segment and the corresponding History Point that you desire to log in Argument 1 In Argument 2 select the Month and Date on which to log the History Index value To acquire the Daily History Value DHV perform a Starting Daily Index DIS command to locate the starting History Index value for a specific day Using the DIS History Index value use the DHV command to locate the Daily History Value To find specific data in history such as the data entered at 9 00 AM yesterday first use the Starting Periodic Index PIS command to find the starting History Index value for yesterday s date and then count forward nine to acquire the History Index value for 9 00 AM Use this new History Index with the Periodic History Value PHV command to locate the data Table 3 10 Historical Commands Arguments Results 1 Input History Segment History Point Stores value in RR 2 Input DB Point or Constant History Halts on invalid History Index 1 Input History Segme
32. INK 800 Print Preview Function Sequence Table 1 FSTO1 from Device SEE FST Edit View Build Monitor Window e 1 a x D kB eMM A OO BS Pit DIM 00l a afo ly 1 o PDF Excel RTF TXT HTML N Page 1 of 1 Function Sequence Table 1 Description Test FST ROC800 Version 1 01 Step IP Label CMD Argument 1 Argument 2 0 0 WAL SFP 1 DATA1 1 6 gt 10 RESET 2 21 1 3 27 SAV SFP 1 DATA1 33 GO FINISH 2 Select one of several print or export options Click To Print NEN Print the FST to a printer you select PDF Save the FST as an Adobe Acrobat PDF file to a name and NEN location you select Excel Save the FST as a Windows Microsoft Excel spreadsheet to NEN a name and location you select HIF Save the FST as a Microsoft Word Rich Text Format file to a NEN name and location you select TXT Save the FST as an ASCII text file to a name and location you NEN select HTML Save the FST as a Hypertext Markup Language file to a name and location you select 3 The FST Editor displays a verification dialog when the export completes 2 14 FST Editor Revised Sep 10 FST User Manual ROCLINK 800 X Export Complete 4 Click OK to close the dialog To exit the Print Preview 2 3 11 Editing an FST The FST Editor s Edit menu gives you options for editing a FST aa ROCLINK 800 Function Seq T mw View Build Monitor Insert Step Delete Step Erase Workspace remm
33. INK 800 processes FSTs differently for each device FloBoss 107 By default each FST executes 20 instructions in any 50 millisecond cycle You can configure both the number of instructions between 1 and 250 per cycle as well as the length of a cycle 100 ms 50 or 1 second Factors affecting this performance include processor load during the interval instruction and argument type Introduction Revised Sep 10 ROC800 Series FloBoss 100 Series FloBoss 407 and ROC300 Series FloBoss 500 Series Revised Sep 10 FST User Manual To configure the number of instructions executed select ROC gt Information On the Device Information screen complete the FST Execution field with a value between 1 and 250 to indicate the number of executions per cycle a cycle being the execution period which is 1 second Click Apply To configure the length of a cycle which corresponds to the CPU scan rate click on the CPU module in the FB107 s dynamic interface Select the Advanced tab on the screen that appears below the FB107 graphic and select a Scan Rate Each FST executes up to ten instructions in any given 100 millisecond interval However this does not guarantee that 10 instructions execute for a given FST within a given 100 millisecond interval Factors affecting this performance include processor load during the interval instruction and argument type constant or value from other tasks such as meter runs When six FST
34. M 2 VAL SFP1DATA2 3 say FST 1 R2 4 VAL SFP1DATA3 5 SAV FST1R3 E VAL SFP1 DATA4 7 SAY FST LRA 8 VAL SFP1DATAS5 3 P3 10 SAV SEP 1DATAS 11 EMD 17 Step Activity O VAL loads the value for A into the Results Register 1 SAV stores the value from Step 0 into R1 for use in the calculation 2 VAL loads the value for B into the Results Register Example FSTs 4 3 FST User Manual 4 4 Activity SAV stores the value from Step 2 in R2 for use in the calculation SAV stores the value from Step 4 into R3 for use in the calculation SAVE stores the value from Step 6 into R4 for use in the calculation Completes execution of the FST 4 1 2 Logical Commands The following example demonstrates the use of the OR command to set the Disabled Remote SP Mode bit of a PID point to Remote SP but the principles apply to the use of the other logical commands STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 J M ci rai WAL PID 1 MODE SAM FST 1 CMPFLG OR 1 SAV FST 1 CMPFLG VAL PIO 1 MOD END Step Activity VAL loads the Results Register SVA with the value of the PID mode parameter from PID point number 1 SAV stores the value of the PID mode parameter now contained in the Results Register into the Compare Flag parameter of FST1 The contents of the Results Register and the Compare Flag CF are not the same Because there is no single command to directly load a value into the Compare Flag t
35. Permanently saves FST to memory If the FST is saved to memory and is running active when the restart occurs the FST automatically restarts at the beginning step Clears the FST Registers but restores the registers from Internal Configuration Memory if valid If you select a Cold Start amp Clear FSTs or a Cold Start amp Clear ALL ROCLINK 800 permanently clears FSTs from Internal Configuration Memory If the FST is saved to memory and is running active when the firmware upgrade occurs ROCLINK 800 turns the FST off It must be manually restarted Permanently saves FST point parameters Registers and Run Flag to memory ROCLINK 800 does not save FST executable code to Config Memory If an FST point type is saved to memory and is running active when the restart occurs ROCLINK 800 automatically restarts the FST at the beginning step Clears the FST Registers but restores them from Internal Configuration Memory if valid If you select a Cold Start amp Clear FSTs or a Cold Start amp Clear ALL ROCLINK 800 permanently clears FSTs from Internal Configuration Memory If an FST point type is saved to memory and is running active when the firmware upgrade occurs ROCLINK 800 automatically restarts the FST at its beginning step Permanently saves FST point parameters Registers and Run Flags to memory Does not save FST executable code to Config Memory If the FST point type is saved to memory and is running
36. R R R P CF in The value or contents of the Compare Flag CF Signal Value Discrete SVD prior to execution of a function command CF out The contents of the Compare Flag CF following execution of the function command Category Math Logical Comparison Revised Sep 10 Table 3 2 Command Summary Command Action RR RR ARGUMENT add CE RR RR ARGUMENT subtract ee RR RR ARGUMENT1 multiply RR RR ARGUMENT divide RR RR raised to power of ARGUMENT1 ABS HH Absolute value of RR EXP RR e 2 71828 raised to power of RR INT RR Integer value of RR LOG RR Log base 10 of RR LN RR Natural Log of RR SQR RR Square root of RR P3 RR 3rd order polynomial R1 R2 R3 R4 NOT SVD NOT SVD 02 1 02 0 AND SVD SVD AND ARGUMENT 1 OR SVD SVD OR ARGUMENTI XOR SVD SVD XOR ARGUMENTI If RR ARGUMENT1 go to ARGUMENT2 LABEL Command Library 3 1 FST User Manual Category Command Action If RR lt gt ARGUMENT1 go to ARGUMENT2 LABEL lt If RR lt ARGUMENT go to ARGUMENT2 LABEL If RR lt ARGUMENT1 go to ARGUMENT2 LABEL HUNE If RR gt ARGUMENTI go to ARGUMENT2LABEL gt IfRR gt ARGUMENT1 go to ARGUMENT2LABEL astti ts Time ST Set Timer ARGUMENTI to ARGUMENT2 100 mSec intervals DWK RR Day of W
37. RGUMENT is a floating database value such as FST1 R8 the command increments ARGUMENTS to the next historical database value and sets it to O when the number of archived historical periods are exceeded Otherwise no effect occurs to ARGUMENTA Note Each ARGUMENT must be unique Command Library or Constant Value For floating database value ARG2 2 Output Database or Constant Value RR out History Value ARG1 ARG2 If ARG1 gt No of archived periods ARG1 then ARG2 0 Otherwise ARG2 ARG2 1 For all other cases RR out RR in SVD out SVD in Revised Sep 10 Name WDB Revised Sep 10 Description Write To Historical Database sets the RR in to the value of the database point ARGUMENT1 and the pointer ARGUMENT2 Applies to historical database points defined for the FST only If ARGUMENT 2 is a floating database value such as FST1 R8 the command increments ARGUMENTS to the next historical database value and sets it to O when the number of archived historical periods are exceeded Otherwise no effect occurs to ARGUMENT2 Note Each ARGUMENT2 must be unique Arguments 1 Output Database or Constant Value 2 Output Database or Constant Value Write Time To Historical Database sets the 1 Output value of the database point ARGUMENT1 and the pointer Database or Constant Value ARGUMENTS to the historical database 2 Output tim
38. Seg 1 tab Click in the Archive Type field for Point 9 Select FST Data from the drop down menu Click in the Archive Point field for Point 9 and click the button On the Select TLP screen that displays select FST Parameters as the Point Type FST 1 as the Logical Number and 1 Result Register as the Parameter Click OK to close the Select TLP screen Example FSTs Revised Sep 10 FST User Manual 8 Click in the Archive Type field for Point 10 Select FST Time from the drop down menu 9 Click in the Archive Point field for Point 10 and click the button On the Select TLP screen that displays select FST Parameters as the Point Type FST 1 as the Logical Number and 2 Register 1 as the Parameter 10 Click OK to close the Select TLP screen The History Segment Point Configuration screen should look like Figure 4 1 History 5egment Point Configuration General Seg Seq2 Seq 3 Sead Seq 5 Seq 6 Seg 7 Sega Sega Seg 10 Point Archive Type Urndetined Undefined Undefined Undefined Undefined Undefined Undefined 2 3 4 5 b H B g Archive Point Font Tag User Description Current salue Last Daily Value Undefined UU Ve 1 u Ve u Ve u Undefined lu Uc S 88 Udhmed d 99 Undefined Undefined oo Ja 0 FST Data FST 1 AR o po a 0 B sme mn Hm o Revised Sep 10 Y DK S Cancel Apply Figure 4 1 History Segment Point Co
39. T FSTOI to FST06 depending on the device A dialog box displays indicating that FST Editor has deleted the FST from the device ROCLINK 800 E _l Clear FST 1 completed 8 Click OK to close the dialog 2 3 Reading an FST from a Device The FST menu allows you to select FSTs to read Select FST gt Read gt From Device to retrieve the contents of the S device memory and load the FST in the selected workspace 2 3 8 Reading an FST from a File The FST menu allows you to select FSTs to read CR Select FST gt Read gt From File to retrieve the contents of a disk file and display the FST in the selected Workspace Notes finvalid points exist in the FST you receive an error indicating which Point Number is missing Revised Sep 10 FST Editor 2 13 FST User Manual The FST Editor populated the Output view with data either when you compile or when you read an FST from the device 2 3 9 Closing an FST To exit the FST Editor Select FEST gt Close from the FST menu The FST Editor closes displaying the device s ROCLINK 800 home screen Note Use this same process to exit the Monitor FST in which case you return to the FST Editor workspace 2 3 10 Printing an FST A printed FST can help you in troubleshooting To print an FST or export it to one of several file formats 1 Select FST gt Print Preview on the FST menu The Print Preview screen displays im ROCL
40. Table 1 Workspace FST Edit View Build Monitor Window O sE giu WM MS WG XOMM bi c E e wl S FST1 rsr2 rera FST a STEP LABEL CMD ARGUMENT 1 VAL SFP 1 DATAT WDE 3 WT Md 10 WT 5 END 9 M ARGUMENT 2 COMMENTS Not stored in device Use Read File to get comments FST 1 H1 FST 1 R2 Compile FST z d VAL SFP 1 DATA 6 WDE 9 17 zB 34 WIM 10 WI 5 END Compiled FST Code LC 47 11 00 Of 00 25 22 09 00 00 00 47 10 OO 02 00 A 22 OA 00 00 00 47 10 OO 03 00 19 27 05 00 00 00 0 5 lines 35 bytes code 0 errors detected Figure 4 6 Compiled FST 6 Click the Save to EST button 71 on the FST Editor menu bar A Save As dialog box displays Revised Sep 10 Example FSTs FST User Manual Save As Displays FB 107 Licenses a Example fst zl St HOUSTON 1 fst R SHANJING RL800 fst File name onl Save as type FST File fst hal Figure 4 7 Save As 7 Use this screen to name and save your FST When you click Save the FST Editor displays Finally you have to download the FST to the FB107 to make it active 8 Click the Download button on the FST Editor menu bar An FST Details dialog box displays FST Details Version Description Y OK S Cancel Figure 4 8 FST Details 9 Complete at very least the Description field providing a brief up to 40 characters description of the FST Note If you anticipate developing several vers
41. a m ose oe bi K m a wl amp STA rsr2 rera rsr a ARGUMENT 1 ARGUMENT 2 COMMENTS Not stored in device Use Read File to get comments SFP 1 DATAT FST T H1 FST 1 H2 Figure 4 5 Sample FST a Get the value VAL from softpoint 1 data 1 and save it to the first results register 4146 ExampeFSTs RevwisedSep 10 FST User Manual b Write the value saved in the Results Register to the historical database WDB placing it at point 9 FST Data at FST 1 R1 as defined on the History Setup screen in Figure B 3 The system also creates an historical index for point 9 in FSTI Note For steps b and c you must use the number of the point as Argument 1 c Write the current time WTM to the historical point 10 FST Time Second at FST 1 R2 as defined on the History Setup screen The system also creates an historical index for point 10 in FSTI Note It is possible and very likely that the historical time intervals will not match the same intervals the FST uses when it records historical data This step gives the periodic history report a time stamp when the FST records data d Suspend the FST execution WT for 5 seconds e Stop the FST execution END and restart at step O 5 Click the Compile FST button S on the FST Editor menu bar The FST Editor compiles the FST Any errors display in the area below the FST workspace see Figure 4 6 wa ROCLINK 800 Function Sequence
42. alog 2 10 2 6 FST Details Dialog 2 10 2 7 FST Editor Toolbar 2 11 2 0 Gornplle ENO S siene es 2 16 2 9 Monitor FST Screen 2 18 2 10 Trace Mode eese 2 21 4 1 History Segment Point Configuration 4 11 4 2 FST EGO ue oo imer eeu 4 12 4 3 History Getunp eese 4 15 4 4 Blank FST Workspace FST 4 16 4 5 Sample FEST WEE 4 16 4 6 Compiled FST sss 4 17 UE 4 18 A 8 FST MR irte oeste rer ttes 4 18 4 9 FST Download completed 4 19 FST ge Dn 2 6 NOS A TRETEN TES 2 14 Command EIDEAE sitas o etus 3 1 l 1 FST User Manual Comment E E 2 6 Comparison Commands 3 5 Compile build seeeessssss 2 8 Control Related Commands 3 2 Creating New 2 7 Database Commande 3 9 Defining a History Point 3 11 Bue E 2 13 Download Pr 2 9 A t LE EE 1 1 FST Command Field CMD 2 6 FOI Edilio adiuti issus 1 1 Function Examples 2 6 FUNCION OTt EULO ouo oes bar bru id 2 2 Cie Dgc Tr 2 3 Historical Commande annnnnnoaannnnnnnnneaannnne 3 12 Label BIelg suh aid 2 5 Logical Commande 3 4 Mathematical Commands
43. ance include processor load during the interval instruction and argument type constant or value from other tasks such as meter runs When two FSTs are running a maximum of 20 steps execute Introduction 1 3 FST User Manual Note To reduce processor loading use WAIT WT commands To prevent an endless loop include an END command at the end of your FST As the sequence of functions executes two memory locations store intermediate results from one function to the next The Results Register RR stores a floating point value referred to as the Signal Value Analog SVA The Compare Flag CF stores a discrete value called the Signal Value Discrete SVD Depending on the command the Results Register RR and the Compare Flag CF may be loaded stored tested modified or left unchanged Note Since a Restart always clears FST registers including the Run Flag use softpoints or any other valid TPL to load initial values for the FST 1 1 2 The FST Results Register The FST Editor uses special softpoints called registers to store FST related information such as calculated values You use the SAV Save command to write a value to a register and the VAL Value command to read a value from a register These registers also enable different FSTs to share information Note Using the Results Register RR is optional An FST can run without pre defining register values through these screens
44. anual STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 2 PMPOFF DO DOU 4 2 0 2 1 4 Command Field The FST command CMD field specifies the action a function takes Each command cell provides a drop down list that shows the function commands and provides a brief description of how they operate on the RR CF and Argument values You can also type commands directly Table 2 2 shows the use of the GO command Refer to Chapter 3 for a summary of each command Table 2 4 EST Command Field STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 0 1 GO PMPOF 12 PMPOFF J VAL Bo o T o TA 2 1 5 Argument Fields Depending on the command arguments can be unused references to parameters in the FloBoss TLPs numerical constants or ASCII characters Once you select a command the argument cell requires that you either type in a numerical constant or ASCII text or click the TLP button for data selection Depending on whether you have selected TLPs to display as numbers or as text via Tools gt Options in ROCLINK 800 the TLP appears in the argument cells as a number sequence or as a text abbreviation of the Type Point number and Parameter For example the text abbreviation of the status parameter of discrete input module 4 channel 1 would be DINA 1 STATUS The Data 3 parameter for softpoint 3 would be SFP 3 DATA3 2 1 6 Comment Field Use the Comment field to enhance readability and provide a place to document the purpose of an FST St
45. arameter exceeds a low or high limit You program and configure FSTs using the FST Editor which is included in ROCLINK 800 Utilities gt FST Editor An FST defines the input to output I O relationships in the device through a set of user selected instructions called functions Functions define the specific actions to be performed in a specific sequence Functions normally execute in top to bottom order However you can alter the execution sequence using decision making functions Functions consist of an optional label a command and one or two arguments Figure 1 1 shows several functions on a FST editing workspace STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 0 VAL FST 1 H1 10 TRUE 2 FALSE VAL 0 3 GU SAME 4 TRUE VAL 1 39 SAVE SAM FST 1 R5 b END H Figure 1 1 FST Functions 1 1 FST Editor Overview You build an FST from a library of commands that provide mathematical and logical operations database access operations historical commands testing branching operations and control related operations Table 1 1 displays FST capabilities Table 1 1 FST Functionality Maximum Number Maximum Byte Size per Maximum Line Device of FSTs FST Length FloBoss 107 4 3000 0400 NE o E MEME CE E a ro A oe a A ae _ FloBoss407 O o A mi 830 0 Revised Sep 10 Introduction 1 1 FST User Manual Maximum Number Maximum Byte Size per Maximum Line Device of FSTs FST Length ROC300 Series 4 8000 BEEN 300 FloB
46. base Commande nnnnnoo00nnnnnnooneennnnnnenne 4 9 Day of Week DWK and Minutes Since Midnight dup rs saat teh ence ee ead vga M 3 7 Delete Gien 2 15 Deleting ESTU nde disci t bu esed 2 13 Discrete Output Control Command 4 8 Klee 4 1 Dom 3 3 4 8 Download Revised Sep 10 FST User Manual Po tallada ataco 2 9 A 3 7 E EN iia 3 8 A E TENE 3 8 Erase WoOrkSDaCe imi iiie dive da orar kae reve elei va 2 15 VENUE OO etario 3 8 ge P 3 8 Examples nitum chested vod obruti eebe 4 1 Comparison Commands 4 5 Control Related Commands 4 7 ES T EUfIGHOD 0 pis Pu Ed 2 6 Logical Commande 4 4 Mathematical Commands 4 1 Time Related Commands 4 5 ze NP 2 14 2a EHE ola c Shed 3 4 4 2 zie m 4 2 F Figures 1 1 FST Functions ccceccccceeeeeeeeeeeeeeees 1 1 1 2 FST Registers screen 1 2 1 3 FST Registers General tab ROC800 SEES ere rS 1 4 1 4 FST Registers General tab 1 4 1 5 FST Registers Advanced tab ROC800 SENES A A eaten 1 6 1 6 FST Registers Advanced tab 1 6 2 I FST EAO EE 2 1 2 2 FST Editor Toolbar Compile FST 2 8 2 3 Gomplled FST 252 3 4 dedos 2 9 2 4 FST Editor Toolbar Download 2 10 2 5 FST Details Di
47. defined by ARGUMENTI of the logical command Note that this value 1s then converted by the software into an 8 bit unsigned integer This value is used as a binary number 8 bits long as described next Each bit is weighted as a power of two and the bit position determines which power of two The bit either O or 1 is multiplied by the respective bit weight The resulting binary number is read from right to left with the right most bit representing bit 0 and the left most bit representing bit 7 For example the integer 42 1s equivalent to the binary number 00101010 as shown next where bit O is the right most bit Bit Binary Weight Bit7 0 2 0 128 0 Bit6 0 2 0 64 0 BitS 1 2 1 32 32 Bit420 2 20 16 20 Bit321 2 1 8 28 Bit2 0 2 0 4 0 Bitl 1 2 1 2 2 Bit020 2920 120 Total 42 Table 3 5 Logical Commands Arguments Results None If SVD in gt 0 SVD out 0 Otherwise SVD out 1 RR out RR in Value Value SVD out SVD in OR ARG1 Value SVD out SVD in XOR ARG1 Comparison Use comparison commands to compare values Comparison commands Commands conditionally compare two values and branch to a different sequence of commands if the comparison is determined to be true Command Library 3 5 FST User Manual Name Otherwise 1f the comparison 1s determined to be false no branching occurs and the next command in sequence is executed Comparison commands test values for equivalence
48. e M d ni i GE o Se Timer 1H mmm Misc H mE Execution Delay iin meine ORE TRORA Mi Timer 2 0 Misc 2 D NEN Secz Timer 3 0 Mise 3 Compare Flag fo l Timer 3 lo Misc 3 D Result Register imer 4 0 Misc 4 Ye Timer 4 Misc H4 D 10 0 SE Steps T ask Cycle 20 Mesa 1 NE SE Mam FST Cycle Time 0 0 Secs NE o Msg Data 1 0 0 H2 0 0 SES Code Size 35 E Code Pointer B 28 Code Size 0 Bytes Code Pointer 0 ee ies E Copy 2 Update Y OK X Cancel Copy Update Y OK X Cancel Figure 1 5 FST Registers Advanced tab ROC800 Figure 1 6 FST Registers Advanced tab Series 5 Complete the following fields Field Description Timer 1 through Sets up to four timers an FST can use to control Timer 4 processing The FST automatically updates the value in these fields decrementing it by 1 every 100 milliseconds For example if you set a field to 100 it reaches 0 after 1 minute Typically you use the Check Timer CT function refer to Section 1 4 Command Library with the Timer fields to perform branching Misc 1 through Sets up to four fields which contain unsigned 8 bit Misc 4 integers with valid decimal values of O to 255 the FST can use for global storage Mesg 1 and Mesg 2 Defines two 30 character alphanumeric messages that display in the FST message area Msg Data 1 and 2 These read only fields show any values associated with the messages Code Size This read o
49. e following examples show the use of the value VAL and save SAV commands In this example the values from Register 1 of FST 1 and the user defined value 5 are saved to the Results Register The SAV command then saves the value from the Results Register to Register 2 of FST 1 ARGUMENT 1 ARGUMENT 2 FST 1 71 ARGUMENT 1 ARGUMENT 2 FST 1 R2 The following example shows the RR and R1 values before and after the WDB command executes Before execution RR 50 00 and R1 25 floating point value STEF LABEL CMD ARGUMENT 1 ARGUMENT 2 0 WDB H509 TAG FST 1 H1 1 After execution the system sets the History database segment 1 point 9 to 50 00 and the R1 to 26 This increments the history pointer for the next value 4 1 7 Miscellaneous Commands Revised Sep 10 The following example demonstrates the use of the Message MSG and GO commands Enter a value in Register R1 that is compared to the value 10 Depending upon the result of the comparison a message 1s sent to the display panel indicating that the value in R1 is either less than greater than or equal to 10 The value of R1 also displays STEP LABEL CMD ARGUMENT 1 ARGUMENT 2 0 VAL FST T F1 1 10 EQUAL d g 10 LESS 3 MSG Fl GREATER THAN 10 FST T R1 4 GO FINISH 3 EQUAL MSG R1 EQUAL TO 10 FST 1 71 E GO FINISH mU LESS MSG R1 LESS THAN 10 FST 1 71 H FINISH END Step Activity Example FSTs 4 9 FST User Manual Step Activity 0 VAL loads the Results Regis
50. e string with either minutes or seconds resolution The time format for minute s resolution is min hr day mon and for seconds resolution is sec min hr day Applies to historical database points defined for the FST only If ARGUMENT 2 is a floating database value such as FST1 R8 the command increments ARGUMENTS to the next historical database value and sets it to O when the number of archived historical periods are exceeded Otherwise no effect occurs to ARGUMENTA Note Each ARGUMENT must be unique Database or Constant Value 3 1 2 Defining a FST History Point FST User Manual Results For FST History Point History Value ARG1 ARG2 RR in For floating database value ARG2 If ARG2 gt No of archived periods ARG1 then ARG2 0 Otherwise ARG2 ARG2 1 For all other cases RR out RR in SVD out SVD in For FST History Point If minute resolution then History Value ARG1 ARG2 minute format Otherwise History Value ARG1 ARG2 second format For floating database value ARG2 If ARG2 gt number of archived periods ARG1 then ARG2 0 Otherwise ARG2 ARG2 1 For all other cases RR out RR in SVD out SVD in When defining history database points for WDB WTM and RDB you must define at least one history point as an FST Time type minute or second to provide a time stamp for the values logged The time stamps represent what time each portion of the
51. eek 1 Sunday 7 Saturday MND RR Minutes since midnight von E CU O eo clea et DO Set DOF ARGUMENT status ARGUMENT2 TDO Force discrete output Recalculation Database VAL RR Value specified in ARGUMENT 1 Ken SAUSUESESUESESESESESSESESEESESESEESESESSESEGEESESESUSSESESSSSESESSSSSSSSSSSSESESESSSSESESUSSSSESUESESEESESESSSSESSSSESESSESESEESESESSESESESUSSESESUSSESESSESESUSSESESSSSESUSSSSESSESESESSESESSSESESUSSESESSESESUSSESESSSSESSSSESESOSSESEESESESSESESESSESESESSESESESESESUSSESOSSESESOSSSSESSSSESSSSESESUESESSSSES m GIE Extract Time Element from Time Stamp into RR Miscellaneous GO Jump to STEP pointed to by ARGUMENT1 LABEL EVT Lo 10 character message and a current value MS2 MSG String 2 ARG1 MSG Data 2 ARG2 Valid only in the FB100 Series FB500 Series FB407 and ROC300 Series Valid only in the ROC800 Series and DL8000 3 1 1 Command Descriptions This section provides additional detailed descriptions of each command Control related Use analog output AO discrete output DO and Timed Duration Commands Output TDO control related commands to control outputs 3 2 Command Library Revised Sep 10 Name AO FST User Manual Table 3 3 Control Related Commands Description Arguments Results Analog output Sets the analog output 1 Output AO Point AO Output ARG1 ARG2 point EUs to the argument value If the Database Value analog output is in Manual no outputis 2 Input Database or RR out RR in sent
52. ep group of Steps and save information within the FST Comments are discarded when an FST 1s compiled and downloaded to the device Comments remain with the FST when it 1s saved to a disk file Note When you download or print an FST the FST removes comments Comments exist only in the electronic file FST Function A function consists of a command its associated arguments and an Examples optional label In the example shown in Table B 6 the Value VAL command in Step 0 writes the current process value of analog input 2 6 FST Editor Revised Sep 10 2 2 Creating an FST FST User Manual module 3 channel 1 in EUs to the Result Register RR which is implied The label in this example CKHIAL serves only as a comment since no other function branches to it Table 2 5 FST Function Examples STEP LABEL CMD ARGUMENT1 ARGUMENT2 el OE E A 1 o AIN3 1 HIAL PUMPON In this example when the RR value from step 1 equals or exceeds gt the High Alarm value VAL in step 2 and the High Alarm limit HIAL condition is met the FST branches to the PUMPON label to turn the pump on You can create an FST either by entering the steps in a blank workspace or by editing an existing file from a device or from a disk file To create an FST while on line with a device 1 Start the ROCLINK 800 software and connect to the device 2 Select Utilities gt FST Editor 3 Select the tab of the FST FST 1 through FST 6 dependin
53. erloading the MPU processor structure your FST to avoid infinite loops where the FST runs without successfully ending Direct the program flow to the END command You can use a branching function to force the FST to immediately return to step 0 1f you do not want to wait for the next execution cycle to begin Use Wait states WT command to suspend operation of the FST whenever possible to reduce MPU processor overload especially in an intentional loop in which a condition 1s being repeatedly checked Configure I O parameters before you reference them in an FST If you use any branching commands GO lt gt lt gt make sure that you first define the label that the command references An FST will not compile if it attempts to write to a read only R O field However if the field switches between read write R W and R O the FST will initially compile but will halt and fail 1f the field becomes R O and the FST attempts to write to it 2 1 2 FSTs During Storage and Restart FloBoss 107 ROC800 Series Revised Sep 10 During storage and restart procedures ROCLINK 800 handles FST information differently for each device Activity Process Write to Internal Permanently saves FST to memory Config Memory Restart If the FST is saved to memory and is running active when the restart occurs ROCLINK 800 automatically K restarts the FST atthe beginning step Cold Start Clears the FST Registers
54. et Glace 3 3 92 Delining a Tol EES POM e ie aped tb esae Du epos na ie tunt om pue tea ede 3 11 Chapter 4 Example FSTs 4 1 4 1 Implementing Specific Commande REENEN 4 1 4 1 1 Mathematical commands eiecit ii 4 1 SN SCENE Vie LEE 4 4 At Gompas Command did 4 5 AAA Timesh lated Commands tesi clica 4 5 44 5 QGontrol Related Commands isisi tene a a a a a ai 4 7 4 16 Dalabase eu un ne EE 4 9 4 1 7 Miscellaneous Commande Ak 4 9 42 Applicaton based EA aa a a aeaa 4 10 4 2 1 Wriung Data to a HIStory PON 4 10 Revised Sep 10 lil Function Sequence Table FST User Manual Index 4 2 2 4 2 3 4 2 4 4 2 0 SOPA AN me ll od don 4 12 Cycling an FST on a Periodic Basis cccceeccecccccceesaeeeeeeeeeeesaeeeeeeeeeeesseaeaeeeeeessaaaasees 4 13 Calculating an Approximate Execution Rate sesssseseeseeeeeennnnrsrreeeesssrrrrnrnnnnnnnnrrreeesee 4 13 Submitting Data to the Historical Database 0 nnnnn00000nnnnnnnennnnnnnnonsennnnnnnnnsnnnnnrnenne 4 14 Li Revised Sep 10 FST User Manual Chapter 1 Introduction ROCLINK 800 s Function Sequence Table FST utility provides a command based programming language that enables you to define a set of actions that the system performs when a set of specific conditions occurs You can write FSTs specifically for applications that require special control features such as logic sequencing For example an FST can initiate emergency shutdown control when a p
55. g on the device 4 Fill in each step with the appropriate labels commands tags and arguments When you select the Command field the m button appears Click this button to display a list of commands from which to choose Alternately you can type the three character command in the Command field Depending upon which command you choose the argument fields prompt you to type in a label choose a TLP or enter some other data The Label field is optional but are may be required if you are using a label within a command Enter all required labels to prevent a compile error Place an End command at the end of your FST 2 2 1 Creating an FST from an Existing File Revised Sep 10 Use the following steps to create an FST by editing an existing FST You may use either a FST from the device or a FST file on your PC If you are using a file from the device connect the device to the computer running ROCLINK 800 software 1 Select Utilities gt FST Editor FST Editor 2 7 FST User Manual Select File gt Read gt From File or File gt Read gt From Device 3 Open an existing FST file with the FST extension 4 Edit each step with the appropriate command label and arguments The Label field is optional but may be required if you are using the label within a command Enter all required labels to prevent a compile error When you select the Command field the LJ button appears Click this button to disp
56. he VAL and SAV commands are used Likewise it takes both commands to OR takes the logical OR between the Compare Flag and the value of the integer 1 binary 0001 and writes the result into the Compare Flag overwriting the contents the previous PID mode value The OR operation effectively sets the right most bit Bit 0 toa logical 1 leaving the other bits unaffected Because Bit 0 of the PID mode parameter controls the Disable Remote SP Mode only this bit is set to 1 which the system interprets as the Remote SP mode VAL loads the contents of the Compare Flag back into the Results Register Example FSTs Revised Sep 10 FST User Manual Activity SAV copies the value in the Results Register into the PID mode parameter setting the Disabled Remote SP to Auto END completes execution of the FST After a 100 millisecond delay execution restarts at Step O 4 1 3 Comparison Commands This example demonstrates the use of the equal command but the principles also apply to the not equal less than less than or equal to lt greater than gt and greater than or equal to gt commands The example compares a user entered value R1 to the value 10 and the logical result true 1 or false 0 1s reflected in RS STEF LO om E oo pha ype Step 0 1 LABEL CMD ARGUMENT 1 ARGUMENT 2 VAL FST 1 Rl EM i TRUE FALSE VAL 0 GO SAWE TRUE VAL 1 SAVE SAM FST T R5 END Acti
57. ield shows a user defined version number for the FST The system prompts you for this value when you download the FST into a device Description This display only field shows a description of the FST The system prompts you for this value when you download the FST into a device Status Sets the operating state of the FST Select Enabled or Disabled and click Apply to activate or deactivate an FST Note The ROC800 Series version of this screen includes a read only field that shows the current state of the FST Register 1 through Set up to 10 floating point values for the FST Register 10 H1 By default FSTs automatically write to and read all through R10 results from the Results Register RR unless you use the Argument fields in the FST workspace see Figure 1 5 to store or acquire a value from registers Tag Sets a 10 character alphanumeric label for the register Note This field displays only on the FST Registers screen for the ROC800 Series TITTEN Data Sets a value in the format X X for the register The Data field on the ROC800 version of this screen is the same as the Register field on the non ROC800 version of this screen 3 Click Apply to save any changes you have made to this screen 4 Click the Advanced tab The Advanced screen displays Revised Sep 10 Introduction 1 5 FST User Manual FST Registers ll FST Registers EST 1 FSTOI Tag FSTO1 EST 1 FST ttl lag FST 1 e i
58. ions of an FST complete the Version field so you can easily tell one version from another 10 Click OK When the download completes ROCLINK 800 prompts you to start the FST 4 18 Example FSTs Revised Sep 10 Revised Sep 10 FST User Manual ROCLINK 800 FST download completed Do you want to start the FST Figure 4 9 FST Download completed At this point the FST is stored in one of the four FST slots in the FB107 Click Yes to start the FST or No to return to the FST Editor Example FSTs 4 19 FST User Manual This page is intentionally left blank 420 ExampleFSTs RewisedSep 10 Index A Ee 3 4 4 2 Absolute Value rea dd 4 2 Add EE 4 1 Mari LOG RAE 3 8 AEM m P 3 8 SIBI 3 5 eher 3 3 4 7 Argument SUCIO etico 2 6 Argumenti aran toe over eu a vtr be citas 2 6 Age Mt EE 2 6 ARGUMENTL ts eos iS ae do 3 10 B A 3 8 A eeh 2 19 Eecherbierg 3 8 Ee EEN 2 8 C Calculating an Execution Rate 4 13 e m D C 2 19 A Aet ac Mute 2 19 Check Timer GT cunc deep aiii 3 7 Closing EE 2 14 MID EE 2 6 Command Structure CMD 2 6 Comparison Commande 4 5 COMPIE TOT tu ue eae 2 8 Configuration FOT EdIO eran 1 1 GOMIQUINA ESTS os 4 14 Control Related Commands 4 7 Creating zone TP 2 7 FST from an Existing File 2 7 E Ee 3 7 yelling ap EO T scsi 4 13 D Data
59. itor gt Next Step to turn off Trace mode Revised Sep 10 FST Editor 2 21 FST User Manual This page is intentionally left blank 2 22 FST Editor Revised Sep 10 FST User Manual Chapter 3 Command Library Convention FST commands are characterized by a name that consists of one or more characters or mathematical symbols In the FST Editor select the CMD field and enter a command Y ou can also click the button at the right of the field to open a list of commands the command names and their descriptions actions See Table 3 1 which describes the terms RR and CF used in the command descriptions actions Table 3 2 presents each command name along with a brief description action the arguments ARGUMENT1 or ARGUMENT 2 required and the effect each operation has on the RR and CF If the RR or CF is not mentioned in the operation s explanation then the current content 1s not affected and remains unchanged In general only logical commands affect the CF Refer to Section 3 1 1 for detailed descriptions of each command Table 3 1 Command Library Conventions Description HH in The value or contents of the Results Register RR Signal Value Analog SVA prior to execution of the function commando n WWW n S S S S R R S R mR R R R
60. lay a list of commands from which to choose Alternately you can type the three character command in the Command field Depending upon which command you choose the Argument fields prompt you to type in a label choose a TLP or enter some other data Place an End command at the end of your FST 2 3 Managing FSTs 2 8 Once you create an FST you must compile it into a machine readable format which also verifies its functionality If the compile is successful you can then download the FST to the intended device Once you ve loaded the FST to the device you can start it stop it and clear delete it You can also read copy an FST from a device into the FST workspace and print an FST minus its comments 2 3 1 Compiling an FST To compile an FST Select Build gt Compile or click Compile FST on the FST Editor toolbar see Figure 2 2 wa ROCLINK 800 Function Sequence Table 1 Workspace EST Edit View Build Monitor Window m al AN aw VM EE 5 BS Figure 2 2 FST Editor Toolbar Compile FST The compiled file displays in the Output FST field see Figure 2 3 FST Editor Revised Sep 10 2 3 2 Revised Sep 10 FST User Manual aa ROCLINK 800 Function Sequence Table 1 FSTO1 C Program Files ROCLINK800 counter loop fst SEE 2 FST Edit View Build Monitor Window EX D gW gi Y Ya vw ee ORR E 7 M amp A A amp 1 FSTO1 2 Fsto2 3 Fsto3 4 FsTO4 5 FsTOS amp rsroe STEP LA
61. n FST that sets the timer as shown in the following example limit the number to no more than 8 388 608 Any number larger than this value can lose significance when the FST Editor converts it to a single precision number 5 VAL 8389608 E SAY FST 1 TM 14 VAL SFP 1 DATATS5 15 SAY FSTI TMA VAL CLK1 SECOND 10 SAY FST 1 TMR1 END 4 1 5 Control Related Commands Analog Output Following is an example of an Analog Output AO control command in Revised Sep 10 an FST ARGUMENT 1 ARGUMENT 2 0 PEN VAL 100 1 GO OUTPUT 4 lcusE vaL 5 G OUTPUT lt a loutrur ao ADU 5 1 EU FST 1 RR g END Step Activity O VAL loads the Results Register with the value 100 GO moves the FST to the step labeled OUTPUT Step 8 VAL loads the Results Register with the value 0 GO moves the FST to the step labeled OUTPUT Step 8 AO operates the control or equivalent device to the value indicated by Argument 1 here the value of the Results Register 9 END completes execution of the FST After a 100 millisecond delay execution restarts at Step O o o A Note The FB407 and ROC300 Series devices must use the AO DO and TDO commands to drive outputs from an FST SAV and other commands doe not affect the output Example FSTs 4 7 FST User Manual Discrete Output Following is an example of a Discrete Output DO control command in an FST STEP LABEL ARGUMENT 1 ARGUMENT 2 0
62. nd EVT functions can quickly overfill the allotted log space of alarms and events It is important to assure that these two functions do not operate continuously Database Database commands provide access to the configuration and historical Commands databases Operations include reading and writing configuration parameters and reading writing storing values from historical databases and time stamping values to a History Point Loads the Results Register RR with the value defined in ARGUMENT1 ARGUMENT1 can be a constant or any database parameter available to the FST The system converts the value defined in ARGUMENT to floating point data type and writes it Command Description VAL to the Results Register SAV WDB WTM and RDB Writes the Results Register RR value to any database parameter available to the FST as defined in ARGUMENT1 n S These historical database commands Write to Historical Database WDB Write Time to Historical Database WTM and Read Historical Database RDB allow you to establish a non periodic history database one that has no specific time interval a NENNEN eriodic history database one that has a specific Command Library 3 9 FST User Manual 3 10 Command ARGUMENT2 Description time interval or a storage array for data similar to a softpoint For the FST historical database commands to work you have to c
63. nfiguration Defining a history database history point as either an FST data or FST time archival point allows the WDB WTM and RDB commands to work You must also supply a history point number in this example 9 and 10 as ARGUMENT for these commands Although points 9 and 10 are used in this example you could use any available history database points Note The point and parameter definitions for this history point only provide descriptive text used when you select history points for viewing With the history database points defined we can build the FST 11 Click Apply to save your changes and click OK to close the History Segment Point Configuration screen 12 Select Utilities gt FST Editor The FST Editor screen displays 13 Complete the FST Editor screen as shown in Figure 4 2 Example FSTs 4 11 FST User Manual STEP LABEL CMD VAL 4 SAM WDB WTM WT END zm a OO o y E A A A o e ARGUMENT 1 ARGUMENT 2 FST ALIS 1 FST 1 H8 H51 FST 1 H1 H 1 10 FST 1 H1 420 Figure 4 2 FST Editor This example increments a counter and writes 1ts value to History Point 9 every 7 minutes 420 seconds As a time stamp History Point 10 stores the time at which the value was written to History Point 9 Register 5 1s the counter When the FST 1s loaded into the device Registers R1 R2 and R5 are initialized as 0 You can confirm this before you set the run flag to start the FST RI is the pointer for History Point
64. nly field shows the total bytes the FST Code Pointer Byte This read only field shows the offset of the next function queued for execution from the beginning of its memory segment Since this value changes very rapidly unless the FST is at a Wait WT command it is typically used for debugging FSTs Note This field is called Code Pointer in the ROC800 Series version of this screen Execution Delay Sets the amount of time between the execution of successive command steps in an FST The default value is 0 the minimum delay you can set is 0 1 seconds 16 mmdeto RevisedSep 10 FST User Manual Field Description Result Register Contains the floating point result from the most current executed command This field is also called the Signal Value Analog SVA Typically the FST completes this field it is user defined usually in Trace mode see Section 1 3 FST Trace Mode Compare Flag Contains an 8 bit integer between 0 and 255 that is manipulated by the FST logic functions see Section B 4 Command Library Typically the FST completes this field it is user defined usually in Trace mode see Section 1 3 FST Trace Mode Steps Task Cycle Sets the number of steps per task cycle Note This field appears only on the ROC800 Series version of this screen FST Cycle Time This read only field shows in seconds the currently defined cycle time Note This field appears only on the ROC800 Series version of this screen
65. non equivalence less than lt less than or equal to lt greater than gt and greater than or equal to gt Table 3 6 Comparison Commands Description Test If RR in equals ARG1 Note that this command performs in a bit wise fashion so two floating Point Numbers displayed as equal may not match 3 6 Test If RR in less than ARG1 Test if RR in greater than or Test If RR in NotEqualto ARG1 Test If RR in less than or equal to ARG1 Test If RR in greater than ARG1 equal to ARG1 Arguments 1 Input Database or Constant Value 2 LABEL 1 Input Database or Constant Value 2 LABEL 1 Input Database or Constant Value 2 LABEL 1 Input Database or Constant Value 2 LABEL 1 Input Database or Constant Value 2 LABEL 1 Input Database or Constant Value 2 LABEL Results If RR in ARG1 Goto ARG2 Otherwise continue to next command SVD out SVD in If RR in ARG1 Goto ARG2 Otherwise continue to next command RR out RR in SVD out SVD in If RR in lt ARG1 Go to ARG2 Otherwise continue to next command RR out RR in SVD out SVD in If RR in lt ARG1 Go to ARG2 Otherwise continue to next command RR out RR in SVD out SVD in If RR in gt ARG1 Go to ARG2 Otherwise continue to next command RR out RR in SVD out SVD in If RR in gt ARG1 go to ARG2 Otherwise conti
66. nt History Point Stores value in RR 2 Input DB Point or Constant History Halts on invalid History Index Command Library Revised Sep 10 Revised Sep 10 Description Arguments Periodic History Value 1 Input History Segment History Point 2 Input DB Point or Constant History Index Periodic History Time 1 Input History Segment History Point Stamp 2 Input DB Point or Constant History Index Minute History Value 1 Input History Segment History Point 2 Input DB Point or Constant History Index Starting Daily Index 1 Input History Segment History Point 2 Input Month Day Number of Daily 1 Input History Segment History Point Indexes 2 Input Month Day Starting Periodic Index 1 Input History Segment History Point 2 Input Month Day Number of Periodic 1 Input History Segment History Point Indexes 2 Input Month Day Extract Time Element 1 Input DB Point or Constant History Index Time in Seconds since 1 1 1970 2 Input Time Element Command Library FST User Manual Results Stores value in RR Halts on invalid History Index Stores value in RR Halts on invalid History Index Stores value in RR Halts on invalid History Index Stores value in RR Returns 1 if Month Day not found Stores value in RR Returns 1 if Month Day not HES Returns 1 if Month Day not found Stores value in RR Returns 1 if Month Day not
67. nual wa ROCLINK 800 Monitor FST1 FSTO1 FST View Monitor Window O Ge NM gi Whe WW SORRE H 7N GEES SEI de LABEL CMD ARGUMENT 1 ARGUMENT 2 COMMENTS Parameter Data o 0 VAL SFP 1 DATA Si IP A E O FRIEGET O se 21 1 Brk 27 SAY SFP 1 DATA RA 33 GO FINISH R1 43 RESET VAL 0 R2 SAV SFP 1 DATA R3 FINISH WT 1 R4 END R5 Hp R R8 R3 R10 Timer 1 Timer 2 Timer 3 Timer 4 Msg 1 Msg 2 Msgl Data 0 0 Msg2 Data 0 0 Misc 1 0 Misc 2 0 Misr n SONGEINES 4 01 PM Figure 2 10 Trace Mode You determine the executed command by comparing the IP shown on the Monitor screen to a list of all IPs and their corresponding commands Trace thereby verifies proper execution and sequencing of the FST functions Note Before you enter Trace mode print out an IP listing of the FST If you enter Trace mode from a newly compiled FST the FST starts at the first step If you enter Trace mode from an executing FST the FST starts at the step being executed Note When you attempt to trace an FST that contains WT BRK ST or CT commands a pause in the sequencing can occur until the command conditions are met Other Trace commands include Select Monitor gt Trace On to turn on Trace mode Select Monitor gt Pause to stop the FST at the current command Select Monitor gt Resume to start the FST at the current command Select Monitor gt Trace Off to turn off Trace mode Select Mon
68. nue to next command RR out RR in SVD out SVD in Time Related Use time related commands FST Timers to implement simple time Commands related operations such as setting timers checking timers determining if timers have elapsed wait time before continuing and imposing a delay upon each command executed Use timers to branch the FST to a specific label after a specified period of time following an action Each FST can support up to four timers and Command Library Revised Sep 10 FST User Manual each timer has a time interval of 100 milliseconds Each FST timer decreases by l interval 1f the timer value 1s greater than 0 The ST command sets any one of the four available Timers for any of the available FSTs ARGUMENT 1 ARGUMENT specifies the number of intervals to command so the loop executes only once every time The Wait WT command imposes a delay entered in seconds and tenths of seconds before executing the next command For example entering a value of 0 1 implies a 100 millisecond delay and a value of Command Description Set Timer ST specifies the number of the timer to set and 7 which the timer is set Check Timer CT When executing a loop repeatedly in an FST we recommend that you include a check timer CT interval This prevents the loop from executing several times within the allotted task period eliminating unnecessary calculations that could N deprive time from other tasks
69. omissions from this manual RAS MAKES NO WARRANTIES EXPRESSED OR IMPLIED INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE WITH RESPECT TO THIS MANUAL AND IN NO EVENT SHALL RAS BE LIABLE FOR ANY INCIDENTAL PUNITIVE SPECIAL OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO LOSS OF PRODUCTION LOSS OF PROFITS LOSS OF REVENUE OR USE AND COSTS INCURRED INCLUDING WITHOUT LIMITATION FOR CAPITAL FUEL AND POWER AND CLAIMS OF THIRD PARTIES Bristol Inc Bristol Canada BBI SA de CV and Emerson Process Management Ltd Remote Automation Solutions division UK are wholly owned subsidiaries of Emerson Electric Co doing business as Remote Automation Solutions RAS a division of Emerson Process Management FloBoss ROCLINK Bristol Bristol Babcock ControlWave TeleFlow and Helicoid are trademarks of RAS AMS PlantWeb and the PlantWeb logo are marks of Emerson Electric Co The Emerson logo is a trademark and service mark of the Emerson Electric Co All other trademarks are property of their respective owners The contents of this publication are presented for informational purposes only While every effort has been made to ensure informational accuracy they are not to be construed as warranties or guarantees express or implied regarding the products or services described herein or their use or applicability RAS reserves the right to modify or improve the designs or specifications of such products at any
70. orrectly configure a history point as either an FST Time Archive Type or an FST Data Archive Type Refer to Section 3 1 2 Defining a FST History Point The FST for a history point uses one of the historical database commands and two arguments ARGUMENT 1 contains the history database point number ARGUMENT1 can be a constant or a parameter with a value between 1 through 87 Provides an index or pointer to the history storage array The history storage array holds entries taken at either set intervals typically daily hourly and each minute or user configurable intervals For information on the intervals and number of entries refer to the history database specifications instruction manual ARGUMENT should be a soft point or an FST register The history point ARGUMENT 1 defines logs to the index location ARGUMENT 2 defines Table 3 9 Database Commands Description Arguments Results Load RR sets the RR out to the argument 1 Input Database RR out ARG1 value or Constant SVD out SVD in Store RR sets the argument to the RR in 1 Output Database Value RR out RR in ARG1 Bn SVD out SVD in Read Historical Database sets the RR out 1 Input Database For FST History Point to the historical database value of the specified database point ARGUMENT1 and the specified pointer ARGUMENT2 to the historical database value Applies to historical database points defined for the FST only If A
71. oss 500 Series 2 4000 300 Maximum Line Length is a limit of the FST Editor Total FST space in ROC300 Series and FloBoss 407 devices is 8000 bytes Individual FST size is not limited but the sum of all FSTs cannot exceed 8000 bytes A Caution Each FST may consist of as many functions as you can fit into the memory reserved for FSTs in the device Reserved memory is pre determined by the device with a set amount of steps allocated for each FST The byte size of an FST displays in the Code Size field on the Advanced tab of the FST Registers screen Configure Control FST Registers FST Registers EST 1 FsTO1 Tag FSTO Timer 41 E Misc HI Execution Delay E Secs Timer 2 D Misc H2 Result Register 10 0 Timer 3 jo Misc H3 Compare Flag E Timer 4 10 Misc H4 Meg H1 Mesg He Meg Data 1 10 0 Hz 10 0 Code Size E Bytes Pointer H Steps Task Cycle 20 FST Cycle Time ma Secs Copy Auto Scan 2 Update Y OK X Cancel Figure 1 2 FST Registers screen Note Byte size also displays when you compile a project Because of the potential loading increase on the system we recommend that you monitor the Master Processor Unit MPU loading value as displayed on the Other Information tab on the Device Information screen ROC gt Information to ensure that the FST is not consuming too much of the MPU s resources 1 1 1 Device specific Processing Considerations ROCL
72. ow calculation to the nearest second 4 2 5 Submitting Data to the Historical Database This example shows how to configure history and then write an FST to submit data to the historical database Note This example is for a FB107 1 Access the History Setup screen Configure gt History Points The History Setup screen displays Example FSTs Revised Sep 10 Revised Sep 10 FST User Manual History Setup 1 E 3 Avg Flow Dependant Linear ABANEWLCURSP 4 Avg Flow Dependant Linear AGANEW 1 CURTP 5 Avg Flow Dependant Linear FLWNEW LIMV EMV E d g Accumulate Day FLWNEWT FLOWDY 3 10 1 12 13 14 15 Undefined Undefined Update w OK 4 Cancel Figure 4 3 History Setup 2 Add two new definitions one for point 9 FST Data at FST 1 R1 and one for point 10 FST Time Second at FST 1 R2 You use these points when you define the FST 3 Access the FST Editor Utilities FST Editor A blank FST Editor workspace screen displays Example FSTs 4 15 FST User Manual FST Edit View Build Monitor Window D c El gi MM E MOSS bW k m C E a gie STA rsr2 rera rsr a STEF LABEL CMD ARGUMENT 1 ARGUMENT 2 COMMENTS Not stored in device Use Read File to get comments Figure 4 4 Blank FST Workspace 4 Complete steps 0 through 4 with the commands and arguments as shown in Figure 4 5 Seis 1 FST Edit View Build Monitor Window D c E giu ANH
73. rough Single byte registers that can be written to and the MISC 4 value can be used by the FST Valid value is O to 255 Table 2 7 Monitor and Trace Mode Keystrokes Key Action Key Action T Move cursor to the cell above it End Move cursor to the right most cell o NN Move cursor to the cell below it P Help Ctrl End Display last entry in Workspace F6 Execute current FST command Ctrl Home Display beginning of Workspace Home Move cursor to the left most cell Page Down Display next page of Workspace PageUp gt Display previous page of Workspace 2 4 2 Tracing an FST a 2 20 E Using the FST Editor s Trace mode you can view at which Instruction Pointer IP the FST failed Print the FST to assist in troubleshooting Tracing an FST enables you to examine the execution of an FST one step at a time This is very useful when debugging FSTs When online the FST Editor uses a trace mechanism that gives you the ability to debug FST program logic Trace executes the FST function indicated by the Instruction Pointer IP moves the IP to the next FST function to be executed and then stops You can then examine the results of the FST function and determine the next FST function to be executed The location of the action depends on the nature of the command You can trace the action to the history log I O value Point Numbers softpoint and so on see Figure 2 10 FST Editor Revised Sep 10 FST User Ma
74. s are running a maximum of 60 steps execute Each FST executes a configurable number of instructions per second By default the FST executes 20 instructions per execution period If an FST has 30 sequential instructions the first 20 instructions execute during the current execution period and remaining 10 instructions execute during the next execution period To configure the number of instructions executed select ROC gt Information On the Device Information screen complete the FST Execution field with a value between 1 and 100 to indicate the number of executions per cycle a cycle being the execution period which is 1 second Click Apply The new number of instructions to execute takes effect 1n the next execution period Restart is not required Each FST executes as many instructions of FST code as processor free time allows every 100 milliseconds When a time slice completes another task 1s given the opportunity to execute If the FST task does not complete in the allotted time the FST task uses whatever time is left over from other tasks to attempt to complete the sequence of functions If the FST task executes in less than the allotted time the operating system uses the remaining time to perform other tasks Each FST executes up to ten instructions in any given 100 millisecond interval That does not guarantee that 10 instructions execute for a given FST within a 100 millisecond interval Factors affecting this perform
75. s commands provide operations such as an unconditional go to GO message to local display panel MSG alarms ALM and event EVT generation end of the FST END and delay BRK Command Description GO Executes an unconditional branch to the label specified in ARGUMENT1 Branching can direct the FST to a step before or after the current step MSG Provides a 30 character message and value that ao Appearson the local display panel 1 MS2 Provides an additional 30 character message and value that appears on the local display panel BRK Imposes a delay break period in 100 millisecond intervals before executing the next command Once you set the break period to a non zero value a delay in 100 millisecond or 1 second intervals occurs between the executions of each subsequent command END Completes execution of the FST and waits for the next FST execution cycle before returning to the first STEP of the FST The END command can only be used once in an FST If omitted End is appended to the FST by the FST Editor at compile time following the first empty Command field ALM Logs a 10 character message and the current value of the selected parameter to the Alarm log EVT Logs a 10 character message and the current value of the selected parameter to the Events log Table 3 8 Miscellaneous Commands Description Arguments Results Go to specified LABEL 1 LABEL Goto ARG1 RR out RR in SVD out SVD in
76. s not automatically restart because STEP 0 halts execution of the 4 2 3 Cycling an FST on a Periodic Basis This example sets an FST to run on a 10 second cycle It uses a timer to determine how much if any of the 10 seconds remain after the FST executes The timer indicates the amount of time required to wait before the cycle 1s repeated ARGUMENT 1 ARGUMENT 2 0 ST FST Poi gt 100 4 WAL FST 1 TMA 5 Di B WI FST 1 RR f EHD Step Activity 0 Set Timer ST specified in Argument 1 to the number of 100 millisecond intervals specified in Argument 2 Note Steps 1 3 omitted from this example represent the steps you want to recycle every 10 seconds IIS 4 VAL reads the timer to see if any time from the cycle remains ROCLINK 800 uses this value to calculate the amount of time that must be delayed before the cycle can be repeated If the timer has expired 0 then the FST did not complete within 10 seconds If the timer has not expired then a delay is required before the FST can repeat the cycle To calculate the necessary delay in seconds multiply the Timer by 0 1 IW 9 o o multiply the value by 0 1 6 Want 7 END completes execution of the FST After a 100 millisecond delay execution restarts at Step O 4 2 4 Calculating an Approximate Execution Rate Revised Sep 10 This example uses a portion of an FST to determine the average time required to execute the FST Again a timer
77. ter with the R1 3 Ifthe value in the Results Register is greater than gt 10 send the message MSG in Argument 1 and the value R1 in Argument 2 to the local display panel 4 GO moves the FST to the step labeled FINISH Step 8 which ends the FST 5 If the value in the Results Register equals 10 send the message MSG in Argument 1 and the value in Argument 2 to the local display panel 6 GO moves the FST to the step labeled FINISH Step 8 which _ends the FST 7 If the value in the Results Register is less than 10 send the message MSG in Argument 1 and the value in Argument 2 to the local display panel 8 END completes execution of the FST After a 100 millisecond delay execution restarts at Step 0 4 2 Application based Examples 4 10 This section provides examples of application focused FSTs 4 2 1 Writing Data to a History Point This example defines two historical database points to demonstrate how to use an FST to create a 7 minute based history log The first part of the process defines historical database points the second part creates the FST 1 Select Configure gt History Segments The History Segments screen displays Enter 10 in the Number of Points field for Segment 01 to define 10 points of history Click Apply to save your changes and click OK to close the screen Select Configure gt History Points The History Segment Point Configuration screen displays Click the
78. time without notice All sales are governed by RAS terms and conditions which are available upon request RAS does not assume responsibility for the selection use or maintenance of any product Responsibility for proper selection use and maintenance of any RAS product remains solely with the purchaser and end user O 2004 2010 Remote Automation Solutions division of Emerson Process Management All rights reserved i Revised Sep 10 Function Sequence Table FST User Manual Contents Chapter 1 Introduction 1 1 et ESTE 07 1 a enn Rr Rem a a a n 1 1 1 1 1 Device specific Processing Consideraions 1 2 LLZ AVS Re Restlis RSS rta des 1 4 Chapter 2 The FST Editor 2 1 21 1 Gudelnes e Le KEE 2 3 22 Pos During Storage and REStarl ia a ia 2 3 alo Label a TL ecaee 2 5 2 4 Command Heladas 2 6 A A 2 6 2 1 65 Comment Feld essa cdi 2 6 Zes aod DE 2 7 2 2 1 Gre atig amt Tom anm Existing Ted onion iii 2 7 25 Manada Sotillo ici dd 2 8 2 9 1 COMPING ar FOT us ie 2 8 252 DOWNIOAdINd Ee WH iii 2 9 295 ONNAN EST EEN 2 11 a DE dl Le Ee ro EE 2 11 2 35 OPPN GI EST RE 2 12 236 Glearmnmg AIS Vi EE 2 13 2 3 7 Reading an FST from a Devcee 2 13 2 38 deadiigan FST froma Flia 2 13 29 COSM Ka dia daa 2 14 A A 2 14 201 e rale ar Rotura tias 2 15 2 4 Troubleshooting E Il UE 2 15 2 4 1 Montonng aM FEST Em 2 16 o EU teen a EE 2 20 Chapter 3 Command Library 3 1 911 XomimeanddbeseriptlofiSsasi ias aoe bb i a
79. tor Window D g E GE H E e amp fg FST Editor 2 9 FST User Manual Figure 2 4 FST Editor Toolbar Download Note The Download button activates only after you successfully compile an FST 2 Ifthe device already has a running FST the FST Editor prompts you either to stop the FST and continue with the download or to stop the FST without downloading ROCLINK 500 Do you want to stop the FST Can t download FST while it is running Figure 2 5 FST Details Dialog Note This prompt appears only if the device is currently running an FST 3 Click Yes to stop the running FST and replace it If you click No the download ends The FST Details screen displays 4 Enter a version number and description of the FST for later identification and click OK FST Details Version Description Y OK S Cancel Figure 2 6 FST Details Dialog Note This step is not required but is extremely helpful when you need to identify or debug your FST A verification dialog displays indicating that the download was successful ROCLINK 800 FST download completed Do you want to start the FST 2 10 FST Editor Revised Sep 10 FST User Manual 5 Click Yes to start the FST How Many The number of FSTs a device can manage depends on the device and FSTs the complexity line length and byte size of the FST Refer to Table 1 1 for device and FST capacities 2 3 3 Saving an FST To save the FST as
80. traction multiplication division raise to power absolute value ABS e raised to a power EXP truncate to integer INT base 10 logarithm LOG natural logarithm LN square root SQR and 3rd order polynomial P3 Note No operation occurs with the LOG LN power and SOR commands if the Results Register is less than or equal to zero Command Library 3 3 FST User Manual Table 3 4 Mathematical Commands Name Description Arguments Add value to RR in 1 Input Database or Constant Value Subtract value from RR in 1 Input Database or Constant Value Multiply RR in by value 1 Input Database or Constant Value Divide RR in by value 1 Database or Constant Value Raise RR in to a power 1 Input Database or Constant Value ABS Absolute Value of RR in None EXP e to the power of RR in INT Integer part of RR in None LOG Logarithm base 10 of RR in RR in SQR Square Root of RR in P3 3rd order Polynomial None None None Results RR out RR in ARG1 AI SM E EE em se eA SIE als ADAM RR out RR in ARG1 SVD out SVD in If ARG1 0 0 RR out RR in SVD out SVD in Otherwise RR out RR in ARG1 RR out RR in ARG1 RR out RR in Den VEA RR out e RR in SVD out SVD in RR out int RR in SVD out SV
81. urs Moves the execution of the FST forward one step at a time Indicates the FST s current activity state The first two icons EB alternate when the FST is running The third icon displays when you stop the FST s execution Parameter and Table 2 2 describes the parameter and data fields which appear on the Data Fields right hand side of the Monitor screen 2 18 FST Editor Revised Sep 10 FST User Manual Note You can modify the content of the Data fields located on the right side of the Monitor screen Highlight the field type a value and press Enter The new value writes to the FST and 1s read back on the next update This 1s useful when troubleshooting or debugging an FST you can change the value stored in a register to purposely send the FST into a loop or to pass fail a comparison Table 2 6 Parameter and Data Fields Field Description CF Compare Flag an 8 bit integer representing the numbers 0 through 255 Often referred to as the Signal Value Discrete SVD CF Bny The Compare Flag displays as both the integer value and the binary value bit 7 to the left and bit O to the MESSEN EMEN RF Run Flag Valid values are 5 Indicates FST has shut down due to an invalid point reference usually an out of place or unexpected I O When an FST fails as indicated by an RF value of 5 you can view at which Instruction Pointer IP the FST failed IP Instruction Pointer Indicates the storage location in
82. vity VAL reads the contents of Register R1 and load the value in _ the Results Register Compares the value in the Results Register to the value 10 If the value in the Results Register equals 10 then branch to the label TRUE in Argument 2 In this case the branch would go to Step 4 and continue execution If the value in the Results Register is not 10 execution continues with Step 2 If the comparison in Step 1 is FALSO VAL loads the Results Register with value 0 FALSE to be saved in Step 5 Moves the FST to the label SAVE Step 5 This step branches past Step 4 which is executed only for TRUE comparisons If the comparison in Step 1 is TRUE VAL loads the Results Register with the value 1 TRUE to be saved in Step 5 _ SAV stores the value in the Results Register to Register R5 END completes execution of the FST After a 100 millisecond delay execution restarts at Step O 4 1 4 Time Related Commands Revised Sep 10 The following example demonstrates the use of timers In this example this portion of an FST opens a valve allowing a fluid to flow After an elapsed period the valve closes when the flow falls below a pre determined level Example FSTs 4 5 FST User Manual ISTEP LABEL CMD ARGUMENT 1 ARGUMENT 2 0 START AD ADU 5 1 EU 100 1 ST FST 1 TMR1 600 2 AGAIN WT 5 3 VAL AIN 4 2 ELI 4 gt 25 FL wIHG 2B CT FST1 THAI AGAIN 6 AD ADU 5 1 EU H WI 3500 H GO START
Download Pdf Manuals
Related Search
Related Contents
Program No: User Handbook PDFファイル Series 5000 MCA User`s Manual Copyright © All rights reserved.
Failed to retrieve file