Main Content

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.

Off

Do not inline the generated enum cast function.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: PLC_InlineEnumCastFunction
Type: string
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2021a