Main Content

Remove Top-level Subsystem Ssmethod Type

Remove the ssmethod type from the top-level subsystem

Model Configuration Pane: PLC Code Generation / Interface

Description

The Remove top level subsystem ssmethod type parameter removes the ssmethod type from the top-level subsystem argument interface. When this option is enabled, the software removes the ssmethod type and converts the subsystem initialization code from switch case statement to conditional if statement. As a result, the generated code has the same interface as the model subsystem.

Settings

off (default) | on

Default: off

On

Remove top level function block ssmethod type in generated code.

Off

Generated code contains ssmethod type Function block and switch case statements.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

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

Version History

Introduced in R2018a