SlideShare uma empresa Scribd logo
1 de 48
Baixar para ler offline
Proprietary Information of Albemarle Corporation.
Using User Variables,
Scripts & Triggers
Alan Kramer
Global FCC Modeling Specialist
KBC Software User Group Conference
2018
Houston
Proprietary Information of Albemarle Corporation.
• Often we receive data with poor flue gas analysis.
• This leads to bad values for Hydrogen in Coke.
• For “simple” situations, we can use an equation to estimate the flue gas analysis to
give a reasonable H in Coke.
• For “complex” situations, we have to manually iterate each calibration case
individually for the flue gas estimate to give a reasonable H in Coke.
• We want to add H in Coke as an independent variable in calibration mode.
• We want the model to solve for the flue gas analysis.
The Problem
2
Proprietary Information of Albemarle Corporation.
• Create a user variable to hold the H in Coke target value.
– This can be input from Calibration Input
• Create a user variable script to calculate the flue gas CO2.
• Use triggers to start the script calculation.
• Use triggers to iterate the CO2 calculation until the H in Coke target is met.
The Solution
3
Proprietary Information of Albemarle Corporation.
Logic Schematic
4
Flue Gas CO2
H Content of Coke Stream
FCC
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
5
Flue Gas CO2
H Content of Coke Stream
FCC
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
Flue Gas CO2
H Content of Coke Stream
FCC
HinC Target
Proprietary Information of Albemarle Corporation.
Creating User Variables To Store Values
7
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC Script
Flue Gas CO2
H Content of Coke Stream
FCC
HinC Target
Proprietary Information of Albemarle Corporation.
Creating User Variables With Embedded Scripts
9
Type script here
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC Script
Flue Gas CO2
H Content of Coke Stream
FCC
HinC Target
Proprietary Information of Albemarle Corporation.
Writing Scripts
11
Proprietary Information of Albemarle Corporation.
VB Script Hints
12
• All script variables are variant type
• No script variable declarations
– You do need to declare arrays with dimensions
• If a variable in a script refers to an object, you must SET it
• No GOTO, GOSUB, EXIT or END
– Handle this with (nested) IF blocks and lots of planning
– But you can have multiple functions in a single script
• Empty = -32767
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2
H Content of Coke Stream
FCC
Proprietary Information of Albemarle Corporation.
Writing Scripts
14
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2
H Content of Coke Stream
FCC
Proprietary Information of Albemarle Corporation.
Writing Scripts
16
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2
H Content of Coke Stream
FCC
HinC Current Error
Proprietary Information of Albemarle Corporation.
Writing Scripts
18
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2
H Content of Coke Stream
FCC
HinC Current ErrorIf ~0 then stop
Proprietary Information of Albemarle Corporation.
Writing Scripts
20
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2
H Content of Coke Stream
FCC HinC Stored Error
HinC Current Error
Proprietary Information of Albemarle Corporation.
Writing Scripts
22
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error
H Content of Coke Stream
FCC
HinC Current ErrorIf = then stop
Proprietary Information of Albemarle Corporation.
Writing Scripts
24
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error
H Content of Coke Stream
FCC
HinC Current Error
Proprietary Information of Albemarle Corporation.
Writing Scripts
26
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error
H Content of Coke Stream
FCC T
Proprietary Information of Albemarle Corporation.
Setting Trigger to Solve Parent Object on Value Change
28
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error
H Content of Coke Stream
FCC T
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error
H Content of Coke Stream
FCC T
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
H Content of Coke Stream
Trigger 3
FCC
Value
Proprietary Information of Albemarle Corporation.
Run Script After Parent Object Execute
32
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
H Content of Coke Stream
Trigger 3 T
FCC
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
Trigger 1
H Content of Coke Stream
Trigger 3 T
FCC
Value
Proprietary Information of Albemarle Corporation.
Setting Trigger to Solve Parent Object on Value Change
35
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
Trigger 1 T
H Content of Coke Stream
Trigger 3 T
FCC
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
37
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
Trigger 1 T
H Content of Coke Stream Trigger 2 T
Trigger 3 T
FCC
Compare
If different take on a random value
between 0 and 1
Proprietary Information of Albemarle Corporation.
Setting Trigger to Take on A Radom Value
38
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
39
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
Trigger 1 T
H Content of Coke Stream Trigger 2 T
Trigger 3 T
FCC
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
40
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
Trigger 1 T
Trigger on Calib Start TH Content of Coke Stream Trigger 2 T
Trigger 3 T
FCC
Proprietary Information of Albemarle Corporation.
Setting Trigger to Run Script on Calibration Starting
41
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
42
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
Trigger 1 T
Trigger on Calib Start TH Content of Coke Stream Trigger 2 T
Trigger 3 T
FCC
-1
Proprietary Information of Albemarle Corporation.
Setting Trigger to Solve Parent Object on Value Change
43
Proprietary Information of Albemarle Corporation.
FCC-MeterFCC Coke-Meter
Logic Schematic
44
HinC TargetHinC Script
Flue Gas CO2 HinC Stored Error T
Trigger 1 T
Trigger on Calib Start TH Content of Coke Stream Trigger 2 T
Trigger 3 T
FCC
Proprietary Information of Albemarle Corporation.
• User variables and scripts aren’t really difficult or scary.
• You can use user variables and scripts to add important functionality.
• The ‘simplicity’ of VB Script has advantages and drawbacks.
• Triggers take some practice and patience to set up correctly.
• Save often. It’s easy to create infinite calculation loops.
• VB Script syntax examples on following slides.
Conclusions
45
Proprietary Information of Albemarle Corporation.
• Create a variable referencing an object in the flowsheet
Set CokeMeter = SimulationCase.GetObjectInCase("FCC Coke-Meter")
• Create a variable referencing a variable in a meter
Set HinCVariable = CokeMeter.ActiveDataSet.Variables.Find("Hydrogen Content", "")
• Store the value from the ‘screened’ column of a meter using a specific unit of
measure
HinC = HinCVariable.ScreenedValueWithUnits("wt %")
• Put a value into the ‘input’ column of a meter
HinCVariable.InputValue = 7
VB Script Syntax Examples
46
Proprietary Information of Albemarle Corporation.
• Get a user variable value from the same parent object
ThisScriptVariable = Me.GetUserVariable(“OtherUserVar").Variable.Value
• To set the value of a user variable value, flip the above statement around
• Get a user variable value with a specific UOM from another object (cokemeter)
ThisScriptVariable = CokeMeter.GetUserVariable(“OtherUserVar").Variable.GetValue(“UOM”)
• Set the value of the current user variable to xxx
Result = xxx
• Send something to the trace window
Application.Trace “Something = " & Something, True
VB Script Syntax Examples
47
Proprietary Information of Albemarle Corporation.

Mais conteúdo relacionado

Mais procurados

KBC decision making tool optimal planning scheduling utility
KBC decision making tool optimal planning scheduling utilityKBC decision making tool optimal planning scheduling utility
KBC decision making tool optimal planning scheduling utilityKBC (A Yokogawa Company)
 
Case study FCC model with integrated energy and yield
Case study FCC model with integrated energy and yieldCase study FCC model with integrated energy and yield
Case study FCC model with integrated energy and yieldKBC (A Yokogawa Company)
 
Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...
Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...
Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...KBC (A Yokogawa Company)
 
Europe User Conference: Galp refinery wide model - a real work example
Europe User Conference: Galp refinery wide model - a real work exampleEurope User Conference: Galp refinery wide model - a real work example
Europe User Conference: Galp refinery wide model - a real work exampleKBC (A Yokogawa Company)
 
Europe User Conference: BP - implementing and supporting a multi-model, multi...
Europe User Conference: BP - implementing and supporting a multi-model, multi...Europe User Conference: BP - implementing and supporting a multi-model, multi...
Europe User Conference: BP - implementing and supporting a multi-model, multi...KBC (A Yokogawa Company)
 
Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3Nicholas Naing
 
Mechanical Engineering Seminar 2017_2
Mechanical Engineering Seminar 2017_2Mechanical Engineering Seminar 2017_2
Mechanical Engineering Seminar 2017_2Nicholas Naing
 
Mechanical Engineering Seminar 2017_1
Mechanical Engineering Seminar 2017_1Mechanical Engineering Seminar 2017_1
Mechanical Engineering Seminar 2017_1Nicholas Naing
 
Virtual Commissioning and Real-Time Training for Increasing Performance
Virtual Commissioning and Real-Time Training for Increasing PerformanceVirtual Commissioning and Real-Time Training for Increasing Performance
Virtual Commissioning and Real-Time Training for Increasing PerformanceGSE Systems, Inc.
 
Fuel System Library Overview
Fuel System Library OverviewFuel System Library Overview
Fuel System Library OverviewModelon
 
Advisian dynamic process simulation capability june 2019
Advisian dynamic process simulation capability june 2019Advisian dynamic process simulation capability june 2019
Advisian dynamic process simulation capability june 2019Advisian
 
IFS General Presentation 120315
IFS General Presentation 120315IFS General Presentation 120315
IFS General Presentation 120315Bill Marsh
 
Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3Nicholas Naing
 
Vehicle Dynamics Library - Overview
Vehicle Dynamics Library - OverviewVehicle Dynamics Library - Overview
Vehicle Dynamics Library - OverviewModelon
 
Textual Macroestructures
Textual MacroestructuresTextual Macroestructures
Textual MacroestructuresReinaldo Donié
 
Generating Cash From Your Backup Generator
Generating Cash From Your Backup GeneratorGenerating Cash From Your Backup Generator
Generating Cash From Your Backup GeneratorSergio A. Guerra
 
KEY ATTRIBUTES FULL TEXT
KEY ATTRIBUTES FULL TEXTKEY ATTRIBUTES FULL TEXT
KEY ATTRIBUTES FULL TEXTAled Long
 

Mais procurados (20)

KBC decision making tool optimal planning scheduling utility
KBC decision making tool optimal planning scheduling utilityKBC decision making tool optimal planning scheduling utility
KBC decision making tool optimal planning scheduling utility
 
Case study FCC model with integrated energy and yield
Case study FCC model with integrated energy and yieldCase study FCC model with integrated energy and yield
Case study FCC model with integrated energy and yield
 
Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...
Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...
Europe User Conference: KBC Visual MESA energy real-time optimizer at TOTAL A...
 
Europe User Conference: Galp refinery wide model - a real work example
Europe User Conference: Galp refinery wide model - a real work exampleEurope User Conference: Galp refinery wide model - a real work example
Europe User Conference: Galp refinery wide model - a real work example
 
Europe User Conference: BP - implementing and supporting a multi-model, multi...
Europe User Conference: BP - implementing and supporting a multi-model, multi...Europe User Conference: BP - implementing and supporting a multi-model, multi...
Europe User Conference: BP - implementing and supporting a multi-model, multi...
 
Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3
 
Mechanical Engineering Seminar 2017_2
Mechanical Engineering Seminar 2017_2Mechanical Engineering Seminar 2017_2
Mechanical Engineering Seminar 2017_2
 
Mechanical Engineering Seminar 2017_1
Mechanical Engineering Seminar 2017_1Mechanical Engineering Seminar 2017_1
Mechanical Engineering Seminar 2017_1
 
Eskom - Grid Connectivity
Eskom - Grid ConnectivityEskom - Grid Connectivity
Eskom - Grid Connectivity
 
Virtual Commissioning and Real-Time Training for Increasing Performance
Virtual Commissioning and Real-Time Training for Increasing PerformanceVirtual Commissioning and Real-Time Training for Increasing Performance
Virtual Commissioning and Real-Time Training for Increasing Performance
 
Fuel System Library Overview
Fuel System Library OverviewFuel System Library Overview
Fuel System Library Overview
 
Advisian dynamic process simulation capability june 2019
Advisian dynamic process simulation capability june 2019Advisian dynamic process simulation capability june 2019
Advisian dynamic process simulation capability june 2019
 
IFS General Presentation 120315
IFS General Presentation 120315IFS General Presentation 120315
IFS General Presentation 120315
 
Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3Mechanical Engineering Seminar 2017_3
Mechanical Engineering Seminar 2017_3
 
Vehicle Dynamics Library - Overview
Vehicle Dynamics Library - OverviewVehicle Dynamics Library - Overview
Vehicle Dynamics Library - Overview
 
Textual Macro-Structure
Textual Macro-StructureTextual Macro-Structure
Textual Macro-Structure
 
Textual Macroestructures
Textual MacroestructuresTextual Macroestructures
Textual Macroestructures
 
Generating Cash From Your Backup Generator
Generating Cash From Your Backup GeneratorGenerating Cash From Your Backup Generator
Generating Cash From Your Backup Generator
 
KEY ATTRIBUTES FULL TEXT
KEY ATTRIBUTES FULL TEXTKEY ATTRIBUTES FULL TEXT
KEY ATTRIBUTES FULL TEXT
 
vivekResume
vivekResumevivekResume
vivekResume
 

Semelhante a Albemarle using user variables scripts triggers

Mpc implementation for cdu (2002 nprc gcc)
Mpc implementation for cdu (2002 nprc gcc)Mpc implementation for cdu (2002 nprc gcc)
Mpc implementation for cdu (2002 nprc gcc)Yang Lee
 
SAV Systems, CHP Technical Specifications
SAV Systems, CHP Technical SpecificationsSAV Systems, CHP Technical Specifications
SAV Systems, CHP Technical SpecificationsAllAboutYouShop
 
Conferencia unifei
Conferencia  unifeiConferencia  unifei
Conferencia unifeiRED REBIBIR
 
Dublin Port Company - Energy Case Study
Dublin Port Company - Energy Case StudyDublin Port Company - Energy Case Study
Dublin Port Company - Energy Case StudyCodema
 
BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...
BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...
BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...BlueScape
 
Bi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdf
Bi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdfBi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdf
Bi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdfSajidAhmed676573
 
The Cotocon Group Case Studies
The Cotocon Group Case Studies The Cotocon Group Case Studies
The Cotocon Group Case Studies Jimmy Carchietta
 
Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...
Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...
Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...HostedbyConfluent
 
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxLab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxsmile790243
 
Installation of s 50 in ammonia plants
Installation of s 50 in ammonia plantsInstallation of s 50 in ammonia plants
Installation of s 50 in ammonia plantsPrem Baboo
 
R&D Enabling Decarbonisation of Heat - SEAI RDD Conference
R&D Enabling Decarbonisation of Heat - SEAI RDD ConferenceR&D Enabling Decarbonisation of Heat - SEAI RDD Conference
R&D Enabling Decarbonisation of Heat - SEAI RDD ConferenceSeamus Hoyne
 
Case study-optimization-cbm
Case study-optimization-cbmCase study-optimization-cbm
Case study-optimization-cbmTina Thomas
 
Calculation of an Ammonia Plant Energy Consumption:
Calculation of an Ammonia Plant Energy Consumption:  Calculation of an Ammonia Plant Energy Consumption:
Calculation of an Ammonia Plant Energy Consumption: Gerard B. Hawkins
 
An Installers Guide to GSHP
An Installers Guide to GSHPAn Installers Guide to GSHP
An Installers Guide to GSHPkensaheatpums
 
Czero Engineering - Feb 2017
Czero Engineering  - Feb 2017Czero Engineering  - Feb 2017
Czero Engineering - Feb 2017Czero
 

Semelhante a Albemarle using user variables scripts triggers (20)

Mpc implementation for cdu (2002 nprc gcc)
Mpc implementation for cdu (2002 nprc gcc)Mpc implementation for cdu (2002 nprc gcc)
Mpc implementation for cdu (2002 nprc gcc)
 
Professional life
Professional lifeProfessional life
Professional life
 
Recommend pract cng_
Recommend pract cng_Recommend pract cng_
Recommend pract cng_
 
SAV Systems, CHP Technical Specifications
SAV Systems, CHP Technical SpecificationsSAV Systems, CHP Technical Specifications
SAV Systems, CHP Technical Specifications
 
Conferencia unifei
Conferencia  unifeiConferencia  unifei
Conferencia unifei
 
Dublin Port Company - Energy Case Study
Dublin Port Company - Energy Case StudyDublin Port Company - Energy Case Study
Dublin Port Company - Energy Case Study
 
BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...
BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...
BlueScape AB32 GHG Reporting in California: What has Changed for 2014? Webina...
 
Polymer APC
Polymer APCPolymer APC
Polymer APC
 
Manufacturing (food)
Manufacturing  (food)Manufacturing  (food)
Manufacturing (food)
 
Bi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdf
Bi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdfBi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdf
Bi-Fuel_High_Speed_Engines_Brochure_2011-01_CSBEBFHS.pdf
 
The Cotocon Group Case Studies
The Cotocon Group Case Studies The Cotocon Group Case Studies
The Cotocon Group Case Studies
 
Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...
Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...
Verifying Apache Kafka-Based Data Pipelines With Subhangi Agarwala | Current ...
 
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxLab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
 
Installation of s 50 in ammonia plants
Installation of s 50 in ammonia plantsInstallation of s 50 in ammonia plants
Installation of s 50 in ammonia plants
 
R&D Enabling Decarbonisation of Heat - SEAI RDD Conference
R&D Enabling Decarbonisation of Heat - SEAI RDD ConferenceR&D Enabling Decarbonisation of Heat - SEAI RDD Conference
R&D Enabling Decarbonisation of Heat - SEAI RDD Conference
 
Case study-optimization-cbm
Case study-optimization-cbmCase study-optimization-cbm
Case study-optimization-cbm
 
Calculation of an Ammonia Plant Energy Consumption:
Calculation of an Ammonia Plant Energy Consumption:  Calculation of an Ammonia Plant Energy Consumption:
Calculation of an Ammonia Plant Energy Consumption:
 
Dario Ferlin, Woolworths
Dario Ferlin, WoolworthsDario Ferlin, Woolworths
Dario Ferlin, Woolworths
 
An Installers Guide to GSHP
An Installers Guide to GSHPAn Installers Guide to GSHP
An Installers Guide to GSHP
 
Czero Engineering - Feb 2017
Czero Engineering  - Feb 2017Czero Engineering  - Feb 2017
Czero Engineering - Feb 2017
 

Mais de KBC (A Yokogawa Company)

Digitalization assuring your plant achieves its full potential Larson
Digitalization assuring your plant achieves its full potential LarsonDigitalization assuring your plant achieves its full potential Larson
Digitalization assuring your plant achieves its full potential LarsonKBC (A Yokogawa Company)
 
Energy Optimization with Pinch Analysis McMullan
Energy Optimization with Pinch Analysis McMullanEnergy Optimization with Pinch Analysis McMullan
Energy Optimization with Pinch Analysis McMullanKBC (A Yokogawa Company)
 
Technology for Profitable Tracking and Optimization Rogers
Technology for Profitable Tracking and Optimization RogersTechnology for Profitable Tracking and Optimization Rogers
Technology for Profitable Tracking and Optimization RogersKBC (A Yokogawa Company)
 
Digitalization of Engineering Silos Howell
Digitalization of Engineering Silos HowellDigitalization of Engineering Silos Howell
Digitalization of Engineering Silos HowellKBC (A Yokogawa Company)
 
What will happen to the Bottom of the Barrel Knight
What will happen to the Bottom of the Barrel KnightWhat will happen to the Bottom of the Barrel Knight
What will happen to the Bottom of the Barrel KnightKBC (A Yokogawa Company)
 
Motiva online monitoring and optimization energy system
Motiva online monitoring and optimization energy systemMotiva online monitoring and optimization energy system
Motiva online monitoring and optimization energy systemKBC (A Yokogawa Company)
 
Equipment sizing and costing using Petro-SIM
Equipment sizing and costing using Petro-SIMEquipment sizing and costing using Petro-SIM
Equipment sizing and costing using Petro-SIMKBC (A Yokogawa Company)
 
Europe User Conference: BPT - Transforming data into insight
Europe User Conference: BPT - Transforming data into insightEurope User Conference: BPT - Transforming data into insight
Europe User Conference: BPT - Transforming data into insightKBC (A Yokogawa Company)
 
Europe User Conference: The importance of life of field in flow assurance
Europe User Conference: The importance of life of field in flow assuranceEurope User Conference: The importance of life of field in flow assurance
Europe User Conference: The importance of life of field in flow assuranceKBC (A Yokogawa Company)
 
Europe User Conference: Pressure / Enthalpy flash formulation
Europe User Conference: Pressure / Enthalpy flash formulationEurope User Conference: Pressure / Enthalpy flash formulation
Europe User Conference: Pressure / Enthalpy flash formulationKBC (A Yokogawa Company)
 
Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...
Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...
Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...KBC (A Yokogawa Company)
 
Europe User Conference: Modelling-waxy-fluids
Europe User Conference: Modelling-waxy-fluidsEurope User Conference: Modelling-waxy-fluids
Europe User Conference: Modelling-waxy-fluidsKBC (A Yokogawa Company)
 
Europe User Conference: KBC Engineering Suite v7
Europe User Conference: KBC Engineering Suite v7Europe User Conference: KBC Engineering Suite v7
Europe User Conference: KBC Engineering Suite v7KBC (A Yokogawa Company)
 
Europe User Conference: GRACE catalyst trial evaluation
Europe User Conference: GRACE catalyst trial evaluationEurope User Conference: GRACE catalyst trial evaluation
Europe User Conference: GRACE catalyst trial evaluationKBC (A Yokogawa Company)
 

Mais de KBC (A Yokogawa Company) (20)

Digitalization assuring your plant achieves its full potential Larson
Digitalization assuring your plant achieves its full potential LarsonDigitalization assuring your plant achieves its full potential Larson
Digitalization assuring your plant achieves its full potential Larson
 
Energy Optimization with Pinch Analysis McMullan
Energy Optimization with Pinch Analysis McMullanEnergy Optimization with Pinch Analysis McMullan
Energy Optimization with Pinch Analysis McMullan
 
Technology for Profitable Tracking and Optimization Rogers
Technology for Profitable Tracking and Optimization RogersTechnology for Profitable Tracking and Optimization Rogers
Technology for Profitable Tracking and Optimization Rogers
 
Digital Twin: A value creator
Digital Twin: A value creatorDigital Twin: A value creator
Digital Twin: A value creator
 
Digitalization of Engineering Silos Howell
Digitalization of Engineering Silos HowellDigitalization of Engineering Silos Howell
Digitalization of Engineering Silos Howell
 
What will happen to the Bottom of the Barrel Knight
What will happen to the Bottom of the Barrel KnightWhat will happen to the Bottom of the Barrel Knight
What will happen to the Bottom of the Barrel Knight
 
Asia Downstream 2019 Simon Rogers
Asia Downstream 2019 Simon RogersAsia Downstream 2019 Simon Rogers
Asia Downstream 2019 Simon Rogers
 
KBC Proven Application of Digital Twin
KBC Proven Application of Digital TwinKBC Proven Application of Digital Twin
KBC Proven Application of Digital Twin
 
KBC scheduling hydrocarbon supply chain
KBC scheduling hydrocarbon supply chainKBC scheduling hydrocarbon supply chain
KBC scheduling hydrocarbon supply chain
 
Motiva online monitoring and optimization energy system
Motiva online monitoring and optimization energy systemMotiva online monitoring and optimization energy system
Motiva online monitoring and optimization energy system
 
Equipment sizing and costing using Petro-SIM
Equipment sizing and costing using Petro-SIMEquipment sizing and costing using Petro-SIM
Equipment sizing and costing using Petro-SIM
 
KBC unit monitoring Petro-SIM and PI-AF
KBC unit monitoring Petro-SIM and PI-AFKBC unit monitoring Petro-SIM and PI-AF
KBC unit monitoring Petro-SIM and PI-AF
 
KBC roadmap
KBC roadmapKBC roadmap
KBC roadmap
 
Europe User Conference: BPT - Transforming data into insight
Europe User Conference: BPT - Transforming data into insightEurope User Conference: BPT - Transforming data into insight
Europe User Conference: BPT - Transforming data into insight
 
Europe User Conference: The importance of life of field in flow assurance
Europe User Conference: The importance of life of field in flow assuranceEurope User Conference: The importance of life of field in flow assurance
Europe User Conference: The importance of life of field in flow assurance
 
Europe User Conference: Pressure / Enthalpy flash formulation
Europe User Conference: Pressure / Enthalpy flash formulationEurope User Conference: Pressure / Enthalpy flash formulation
Europe User Conference: Pressure / Enthalpy flash formulation
 
Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...
Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...
Europe User Conference: thermodynamic behaviour of HPHT reservoir fluids and ...
 
Europe User Conference: Modelling-waxy-fluids
Europe User Conference: Modelling-waxy-fluidsEurope User Conference: Modelling-waxy-fluids
Europe User Conference: Modelling-waxy-fluids
 
Europe User Conference: KBC Engineering Suite v7
Europe User Conference: KBC Engineering Suite v7Europe User Conference: KBC Engineering Suite v7
Europe User Conference: KBC Engineering Suite v7
 
Europe User Conference: GRACE catalyst trial evaluation
Europe User Conference: GRACE catalyst trial evaluationEurope User Conference: GRACE catalyst trial evaluation
Europe User Conference: GRACE catalyst trial evaluation
 

Último

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 

Último (20)

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 

Albemarle using user variables scripts triggers

  • 1. Proprietary Information of Albemarle Corporation. Using User Variables, Scripts & Triggers Alan Kramer Global FCC Modeling Specialist KBC Software User Group Conference 2018 Houston
  • 2. Proprietary Information of Albemarle Corporation. • Often we receive data with poor flue gas analysis. • This leads to bad values for Hydrogen in Coke. • For “simple” situations, we can use an equation to estimate the flue gas analysis to give a reasonable H in Coke. • For “complex” situations, we have to manually iterate each calibration case individually for the flue gas estimate to give a reasonable H in Coke. • We want to add H in Coke as an independent variable in calibration mode. • We want the model to solve for the flue gas analysis. The Problem 2
  • 3. Proprietary Information of Albemarle Corporation. • Create a user variable to hold the H in Coke target value. – This can be input from Calibration Input • Create a user variable script to calculate the flue gas CO2. • Use triggers to start the script calculation. • Use triggers to iterate the CO2 calculation until the H in Coke target is met. The Solution 3
  • 4. Proprietary Information of Albemarle Corporation. Logic Schematic 4 Flue Gas CO2 H Content of Coke Stream FCC
  • 5. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic 5 Flue Gas CO2 H Content of Coke Stream FCC
  • 6. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic Flue Gas CO2 H Content of Coke Stream FCC HinC Target
  • 7. Proprietary Information of Albemarle Corporation. Creating User Variables To Store Values 7
  • 8. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC Script Flue Gas CO2 H Content of Coke Stream FCC HinC Target
  • 9. Proprietary Information of Albemarle Corporation. Creating User Variables With Embedded Scripts 9 Type script here
  • 10. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC Script Flue Gas CO2 H Content of Coke Stream FCC HinC Target
  • 11. Proprietary Information of Albemarle Corporation. Writing Scripts 11
  • 12. Proprietary Information of Albemarle Corporation. VB Script Hints 12 • All script variables are variant type • No script variable declarations – You do need to declare arrays with dimensions • If a variable in a script refers to an object, you must SET it • No GOTO, GOSUB, EXIT or END – Handle this with (nested) IF blocks and lots of planning – But you can have multiple functions in a single script • Empty = -32767
  • 13. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 H Content of Coke Stream FCC
  • 14. Proprietary Information of Albemarle Corporation. Writing Scripts 14
  • 15. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 H Content of Coke Stream FCC
  • 16. Proprietary Information of Albemarle Corporation. Writing Scripts 16
  • 17. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 H Content of Coke Stream FCC HinC Current Error
  • 18. Proprietary Information of Albemarle Corporation. Writing Scripts 18
  • 19. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 H Content of Coke Stream FCC HinC Current ErrorIf ~0 then stop
  • 20. Proprietary Information of Albemarle Corporation. Writing Scripts 20
  • 21. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 H Content of Coke Stream FCC HinC Stored Error HinC Current Error
  • 22. Proprietary Information of Albemarle Corporation. Writing Scripts 22
  • 23. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error H Content of Coke Stream FCC HinC Current ErrorIf = then stop
  • 24. Proprietary Information of Albemarle Corporation. Writing Scripts 24
  • 25. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error H Content of Coke Stream FCC HinC Current Error
  • 26. Proprietary Information of Albemarle Corporation. Writing Scripts 26
  • 27. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error H Content of Coke Stream FCC T
  • 28. Proprietary Information of Albemarle Corporation. Setting Trigger to Solve Parent Object on Value Change 28
  • 29. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error H Content of Coke Stream FCC T
  • 30. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error H Content of Coke Stream FCC T
  • 31. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T H Content of Coke Stream Trigger 3 FCC Value
  • 32. Proprietary Information of Albemarle Corporation. Run Script After Parent Object Execute 32
  • 33. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T H Content of Coke Stream Trigger 3 T FCC
  • 34. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T Trigger 1 H Content of Coke Stream Trigger 3 T FCC Value
  • 35. Proprietary Information of Albemarle Corporation. Setting Trigger to Solve Parent Object on Value Change 35
  • 36. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T Trigger 1 T H Content of Coke Stream Trigger 3 T FCC
  • 37. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic 37 HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T Trigger 1 T H Content of Coke Stream Trigger 2 T Trigger 3 T FCC Compare If different take on a random value between 0 and 1
  • 38. Proprietary Information of Albemarle Corporation. Setting Trigger to Take on A Radom Value 38
  • 39. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic 39 HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T Trigger 1 T H Content of Coke Stream Trigger 2 T Trigger 3 T FCC
  • 40. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic 40 HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T Trigger 1 T Trigger on Calib Start TH Content of Coke Stream Trigger 2 T Trigger 3 T FCC
  • 41. Proprietary Information of Albemarle Corporation. Setting Trigger to Run Script on Calibration Starting 41
  • 42. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic 42 HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T Trigger 1 T Trigger on Calib Start TH Content of Coke Stream Trigger 2 T Trigger 3 T FCC -1
  • 43. Proprietary Information of Albemarle Corporation. Setting Trigger to Solve Parent Object on Value Change 43
  • 44. Proprietary Information of Albemarle Corporation. FCC-MeterFCC Coke-Meter Logic Schematic 44 HinC TargetHinC Script Flue Gas CO2 HinC Stored Error T Trigger 1 T Trigger on Calib Start TH Content of Coke Stream Trigger 2 T Trigger 3 T FCC
  • 45. Proprietary Information of Albemarle Corporation. • User variables and scripts aren’t really difficult or scary. • You can use user variables and scripts to add important functionality. • The ‘simplicity’ of VB Script has advantages and drawbacks. • Triggers take some practice and patience to set up correctly. • Save often. It’s easy to create infinite calculation loops. • VB Script syntax examples on following slides. Conclusions 45
  • 46. Proprietary Information of Albemarle Corporation. • Create a variable referencing an object in the flowsheet Set CokeMeter = SimulationCase.GetObjectInCase("FCC Coke-Meter") • Create a variable referencing a variable in a meter Set HinCVariable = CokeMeter.ActiveDataSet.Variables.Find("Hydrogen Content", "") • Store the value from the ‘screened’ column of a meter using a specific unit of measure HinC = HinCVariable.ScreenedValueWithUnits("wt %") • Put a value into the ‘input’ column of a meter HinCVariable.InputValue = 7 VB Script Syntax Examples 46
  • 47. Proprietary Information of Albemarle Corporation. • Get a user variable value from the same parent object ThisScriptVariable = Me.GetUserVariable(“OtherUserVar").Variable.Value • To set the value of a user variable value, flip the above statement around • Get a user variable value with a specific UOM from another object (cokemeter) ThisScriptVariable = CokeMeter.GetUserVariable(“OtherUserVar").Variable.GetValue(“UOM”) • Set the value of the current user variable to xxx Result = xxx • Send something to the trace window Application.Trace “Something = " & Something, True VB Script Syntax Examples 47
  • 48. Proprietary Information of Albemarle Corporation.