Enable unsigned integer and double datatypes in generated code
Enable generation of unsigned integer and double data types
Since R2023a
Model Configuration Pane: PLC Code Generation
Description
The Enable unsigned integer and double data types in generated code parameter enables the generation of unsigned integer and double data types in the generated code. By default, Simulink® PLC Coder™ converts unsupported data types and lists the converted data types in the code generation report.
Dependencies
To enable this parameter, set Target IDE to Rockwell Studio 5000: AOI
or Rockwell Studio 5000: Routine
.
Settings
- On
Enable the generation of unsigned integer and double data types in the generated code.
- Off
Prevent the generation of unsigned integer and double data types in the generated code. Simulink PLC Coder converts the unsigned integer and double data types into supported data types and lists them in the code generation report.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On |
Safety precaution | No impact |
Programmatic Use
Parameter:PLC_EnableUnsignedAndDoubleTypes |
Type: string |
Value: 'on' | 'off' |
Default: 'off' |
Limitations
Use this parameter when generating code for Rockwell Automation® Studio 5000 version 33.01.01 or later. Rockwell Automation does not support unsigned integer and double data types prior to version 33.01.01.
Version History
Introduced in R2023a