Main Content

Override Target Default enum Name Behavior

Override default enum variable behavior to use enum names instead of enum values

Model Configuration Pane: PLC Code Generation / Identifiers


The Override target default enum name behavior parameter enables enum names to be used as the identifier names instead of enum values. The PLC target IDE must support enum type.


off (default) | on

Override target default enum behavior and always have enum names instead of enum values.


The generated code uses the enum behavior of the target IDE.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

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


This parameter is not available when Target IDE is set to:

  • Phoenix Contact PC WORX 6.0

  • Rockwell RSLogix 5000: AOI

  • Rockwell RSLogix 5000: Routine

  • Rockwell Studio 5000: AOI

  • Rockwell Studio 5000: Routine

  • Siemens SIMATIC Step 7

  • Siemens TIA Portal

  • Siemens TIA Portal: Double Precision

Version History

Introduced in R2018a