Main Content
Include Comments
Include comments in generated code
Model Configuration Pane: PLC Code Generation / Comments
Description
The Include comments parameter specifies which comments are in generated files.
Settings
on (default) | off
Default: on
- On
Places comments in the generated files based on the selections in the Auto generated comments pane.
If you create links to requirements documents from your model using the Requirements Toolbox™ software, the links also appear in generated code comments.
- Off
Omits comments from the generated files.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | On |
Efficiency | No impact |
Safety precaution | On |
Programmatic Use
Parameter: PLC_RTWGenerateComments |
Type: string |
Value: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2010a