Allow nesting of UDTs if fields are more than allowed threshold
Optimize the generation of user-defined tags
Since R2023a
Model Configuration Pane: PLC Code Generation
Description
The Allow nesting of UDTs if fields are more than allowed threshold parameter allows Simulink® PLC Coder™ to nest user-defined tags (UDTs) when the number of UDT elements exceeds the value set in the Maximum number of fields allowed in a UDT parameter, which has a default value of 500. Rockwell Automation® does not allow the import of structured text code when the number of UDT elements exceeds 500.
Dependencies
To use this parameter, set the Target IDE parameter to Rockwell Studio 5000: Routine
or Rockwell RSLogix 5000: Routine
.
Settings
- On
Enable the nesting of UDTs in the generated code when the number of UDT elements exceeds the value set in the Maximum number of fields allowed in a UDT parameter.
- Off
Disable the nesting of UDTs in the generated code.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On |
Safety precaution | No impact |
Programmatic Use
Parameter:PLC_EnableUDTSplitting |
Type: string |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2023a