Process Statement Expressions
When writing expressions for process statements, you can access properties of dynamic component objects and elements of lists.
Member access
You can use dot notation (.) to get the value of a Product, ProductType, Component or Group property.
The syntax for Product Type Variables is
<VariableName>.<PropertyName> <VariableName>.ProductType.<PropertyName> <VariableName>.Component.<PropertyName> <VariableName>.ProductType.Group.<PropertyName> |
The syntax for Flow Variables is
<FlowInfo>.ForceExactFlowStep (boolean) <FlowInfo>.ForceExactProcessGroup (boolean) <FlowInfo>.Group.<PropertyName> <FlowInfo>.FlowStep.<PropertyName> <FlowInfo>.<dynamic property> <FlowInfo>.ProcessId (string) <FlowStep>.<PropertyName> <ProcessGroup>.ProcessId |
The syntax for accessing Assemblies is
<VariableName>.Assembly <Assembly>.FirstEmptySlot <Assembly>.LastOccupiedSlot <Assembly>.Slots list of slots <AssemblySlot>.State integer corresponding to the enum value <AssemblySlot>.AssignedProduct assigned product instance or null <AssemblySlot>.DefiningStep AssemblyStep instance that defines this slot <AssemblySlot>.DefiningSlot AssemblyPatternSlot instance that defines this slot <AssemblyStep>.Name <AssemblyStep>.Pattern <AssemblyStep>.RelativePosition <AssemblyStep>.Parent Parent step <AssemblyStep>.ChildSteps list of child steps <AssemblyPatternSlot>.OrderIndex <AssemblyPatternSlot>.Position <AssemblyPatternSlot>.Pattern owning assembly pattern instance <AssemblyPatternSlot>.Item assembly pattern item to create <AssemblyPatternItem>. Varspace properties vary depending on actual subclass <AssemblyPattern>.Name <AssemblyPattern>.Slots list of pattern slots |
Methods
The syntax is
<VariableListName>.length() Returns the length of the list as integer. |
Subscript operator
You can also use square brackets to access an element of a list.
When writing strings in expressions, use quotation marks e.g. "string".
Other
To access current simulation time, the internal function SimTime() can be used inside expressions.
Supported Tasks
Accessing properties with dot notations and list elements with brackets in expressions are supported with the following statements:
- Assign Variable
- Delay
- If
- Switch Case
- Wait Property Condition
- While