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
- 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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No 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