Main Content
Remove Code from Floating-Point to Integer Conversions That Wraps Out-Of-Range Values
Enable code removal from floating-point to integer conversions
Model Configuration Pane: PLC Code Generation / Optimization
Description
The Remove code from floating-point to integer conversions that wraps out-of-range values parameter enables code removal for efficient casts. Use this parameter to optimize code generation.
Settings
on (default) | off
Default: on
- On
Removes code from floating-point to integer conversions.
- Off
Does not remove code from floating-point to integer conversions.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On |
Safety precaution | No impact |
Programmatic Use
Parameter: PLC_PLCEnableEfficientCast |
Type: string |
Value: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2012b