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

ApplicationSetting
DebuggingNo impact
TraceabilityOn
EfficiencyNo impact
Safety precautionOn

Programmatic Use

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

Version History

Introduced in R2010a