Main Content

Aggressively Inline Structured Text Function Calls

Optimize generated code by inlining function calls

Model Configuration Pane: PLC Code Generation

Description

The Aggressively inline Structured Text Function Call parameter controls the inlining of Structured Text function calls for Rockwell Automation® targets. By default, the software attempts to inline only math functions where possible. With this option, the software aggressively inlines all function calls so that the generated code has less number of Function blocks.

Dependencies

To use this option, set Target IDE to:

  • Rockwell Studio 5000: AOI

  • Rockwell Studio 5000: Routine

  • Rockwell RSLogix 5000: AOI

  • Rockwell RSLogix 5000: Routine

Settings

off (default) | on
On

Aggressively inlines all function calls in the generated structured text code.

Off

Inlines only math function calls in the generated code.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOn
Safety precautionNo impact

Programmatic Use

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

Version History

Introduced in R2018a