You are on page 1of 2

h a n g e Pro h a n g e Pro

XC d XC d
F- F-

uc

uc
PD

PD
!

!
W

W
t

t
O

O
N

N
y

y
bu

bu
to

to
ww

ww
om

om
k

k
lic

lic
C

C
.c

.c
w

w
tr re tr re
.

.
ac ac
k e r- s o ft w a k e r- s o ft w a

Macro User's Guide


To display a list of topics by category, click any of the contents entry below. To display an alphabetical list of topics, open the
Table of Contents.
Macros are grouped as shown below.

EDI Macros Thermo Macros

Flowsheet Macros Model Macros

Solver Macros RTS Macros

Collection Macros Case Macros

Measurement and Tuning Parameters Macros Variables and Parameters Macros

Reporting Macros Function on Macros

To open the Macro Manager, click the Macro Manager button on the toolbar, or select Input/Macro Manager from the main
menu.

A macro is a set of instructions that can be used to modify the data of a flowsheet or to invoke methods on objects. You can
inspect the predefined default macros or create new macros in the Macro Manager.

To inspect the predefined macros, open the Macros node in the Macro Manager tree to display the following folders or
subcollection: Default, Utilities and Training.

The first 23 macros in the Default subcollection are predefined class macros. For each of the three predefined calculation
modes (Simulation, DataRec and Optimization), there is a corresponding macro for the five ROMeo units that manipulate scan
values, offsets, setpoints, and so on: Measurement Units, Turning Parameter Units, Controllers, Penalty Units and
Composition Estimators. In addition, the ComplementaritySpec class macro activates all Complementarity units that have
been defined. These 23 Class macros are predefined, and you cannot invoke them from the Macro Manager window. ROMeo
executes them automatically as part of the Solve sequence.

The remaining six instance macros in the Default subcollection are not predefined. You can define them, and you can use the
Macro Manager window to check and execute them.

The predefined macros cannot be renamed, deleted or reordered. However, you can include a user-defined macro in the Default
subcollection.

You can create a new custom subcollection by clicking on the main Macros node.

Class Macros implement Class Methods. Class Methods define settings for the corresponding classes of equipment and are
flowsheet independent. For example, you can use a Class Macro to set the offset for Tuning Parameters even though the
current flowsheet may not (yet) incorporate any Tuning Parameters. You can then use this same Class Macro with other
flowsheets in the future.

Instance Macros are macros that the user defines to use with a particular flowsheet.

The Utilities subcollection macros create simple units.

The Training subcollection macros guide you in using other macros to perform actions in the flowsheet.

EDI Macros create links between model variables and external data sources.

Modular Thermo Macros automate construction of Thermo properties.

Flowsheet Macros automate the actions that can be performed on a flowsheet.


h a n g e Pro h a n g e Pro
XC d XC d
F- F-

uc

uc
PD

PD
!

!
W

W
t

t
O

O
N

N
y

y
bu

bu
to

to
ww

ww
om

om
k

k
lic

lic
C

C
.c

.c
w

w
tr re tr re
.

.
ac ac
k e r- s o ft w a k e r- s o ft w a

Model Macros define the individual models of the flowsheet.

Solver Macros define the parameters in the Solver Manager.

Collection Macros perform actions on collections.

Case Macros perform actions on cases.

Measurement and Tuning Parameters Macros perform actions on measurements and tuning parameters.

Variables and Parameters Macros define the variables or parameters in the flowsheet.

RTS Macros automate actions that are performed on real time sequences.

Reporting Macros generate reports for the sequence.

Function on Macros are functions that can be performed on a specific macro.

Macros can change flowsheet configuration. For example, you can use a Macro to add or delete a unit operation; or to change
flowsheet connectivity by creating, deleting or rerouting process streams.

See also:

Creating a macro

You might also like