Inline Enum Cast Function
Inline generate enum cast function
Since R2021a
Model Configuration Pane: PLC Code Generation / Identifiers
Description
The Inline enum cast function parameter inlines the generated enum-to-integer or integer-to-enum function. By default, the software generates an enum-to-integer or integer-to-enum function as a part of the generated code.
Dependencies
To use this parameter, select the Generate enum cast function parameter.
Settings
off (default) | on
On Inline the generated enum cast function.
OffDo not inline the generated enum cast function.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: PLC_InlineEnumCastFunction |
| Type: string |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2021a