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

Description

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.

Settings

off (default) | on
On

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

Off

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

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

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

Limitations

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