Main Content

Remove unused ssmethod FB call arguments

Generate compact code by removing unused function block ssmethod calls

Since R2023a

Model Configuration Pane: PLC Code Generation / Optimization

Description

Use the Remove unused ssmethod FB call arguments parameter to generate less complex, more readable code by removing unused arguments in function block calls from ssmethod calls.

Settings

off (default) | on

Default: off

On

Generate readable, less complex code by removing unused arguments in function block calls from ssmethod calls in the generated code.

Off

Do not remove unused arguments in function block calls.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOn
Safety precautionNo impact

Programmatic Use

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

Limitations

Before you enable this option, ensure that the target IDE supports the removal of unused arguments in function block calls from ssmethod calls.

Version History

Introduced in R2023a