Control the comments that the Simulink® PLC Coder™ software automatically creates and inserts into the generated code.
Specify which comments are in generated files. This option is available on the PLC Code Generation > Comments pane in the Configuration Parameters dialog box.
Default: 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 Simulink Requirements™ software, the links also appear in generated code comments.
Omits comments from the generated files.
Parameter:
PLC_RTWGenerateComments |
Type: string |
Value:
'on' | 'off' |
Default:
'on' |
Specify which block description comments are in generated files. This option is available on the PLC Code Generation > Comments pane in the Configuration Parameters dialog box.
Default: on
Places comments in the generated files based on the contents of the block properties General tab.
Omits block descriptions from the generated files.
Parameter:
PLC_PLCEnableBlockDescription |
Type: string |
Value:
'on' | 'off' |
Default:
'on' |
Specify whether to insert Simulink block and Stateflow® object comments. This option is available on the PLC Code Generation > Comments pane in the Configuration Parameters dialog box.
Default: on
Inserts automatically generated comments that describe block code and objects. The comments precede that code in the generated file.
Suppresses comments.
Parameter:
PLC_RTWSimulinkBlockComments |
Type: string |
Value:
'on' | 'off' |
Default:
'on' |
Specify whether to insert eliminated block comments. This option is available on the PLC Code Generation > Comments pane in the Configuration Parameters dialog box.
Default: off
Inserts statements in the generated code from blocks eliminated as the result of optimizations (such as parameter inlining).
Suppresses statements.
Parameter:
PLC_RTWShowEliminatedStatement |
Type: string |
Value:
'on' | 'off' |
Default:
'off' |