Maximum Identifier Length
Specify maximum number of characters in identifiers
Model Configuration Pane: PLC Code Generation / Identifiers
Description
Specify the maximum number of characters in generated function, type definition, and variable names.
Dependencies
To use this parameter, enable Override target default maximum identifier length.
Settings
31 (default)
Minimum: 31
Maximum: 256
You can use this parameter to limit the number of characters in function, type definition, and variable names. Many target IDEs have their own restrictions for these names. Simulink® PLC Coder™ complies with target IDE limitations.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | Greater than 30 |
Efficiency | No impact |
Safety precaution | Greater than 30 |
Programmatic Use
Parameter: PLC_RTWMaxIdLength |
Type: int |
Value: 31 to 256 |
Default: 31 |
Version History
Introduced in R2018a