Use output argument syntax in function and function block calls
Enable the generation of =>
syntax in generated code
Since R2023a
Model Configuration Pane: PLC Code Generation / Interface
Description
Enable the Use output argument syntax in function and function block calls parameter to generate code that uses the =>
syntax for function block outputs.
Settings
- On
Generated code contains the
=>
syntax for function block outputs.- Off
Generated code does not contain the
=>
syntax for function block outputs.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: PLC_UseCallOutputArgSyntax |
Type: string |
Value: 'on' | 'off' |
Default: 'off' |
Limitations
If you currently use the
fUseCallOutputArgSyntax
plugin Simulink® PLC Coder™ recommends enabling this parameter instead. ThefUseCallOutputArgSyntax
plugin option will be removed in a future release.Do not use this option when the Target IDE parameter is set to
Selectron
. TheSelectron
IDE uses thefSimplifyFunctionCallExpr
that changes the call expressions fromname:=value
assignments to a simple call likefunction(value1,value2)
as it does not support assignments in function call expressions. Since assignments are not supported by theSelectron
IDE, output assignments do not work.
Version History
Introduced in R2023a