![background image](http://html.mh-extra.com/html/ifm/ecomat-100-mobile-cr0301/ecomat-100-mobile-cr0301_programming-manual_620659032.webp)
32
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
System description
Software description
>
Calculations and conversions in the application program
20779
NOTE
If the following elements are required in the application program:
• mathematical functions (e.g. ATAN),
• calculations,
• conversions (e.g. REAL_TO_BYTE),
then the following applies to the values at the inputs and outputs of the corresponding operators:
► Strictly observe the admissible value range in each individual case!
>
Otherwise, this may cause an FPU error in the controller.
Examples:
20777
The value of the target format that can max. represented is exceeded.
Example:
REAL_TO_INT (12345678.3)
> INT is limited to -32768...+32767 (only integers)
20778
An existing real number is obviously in the value range of the target format.
In reality, however, the number is outside the target format (because of the internal representation of
the real number).
Example:
DW := REAL_TO_DWORD (4294967295.0);
> The most accurate representation of 4294967295 in REAL is 4.294967296E9
> Therefore the value exceeds the max. permissible value of the target format by 1.
> DWORD is limited to 0...4294967295.
>
Note the cycle time!
8006
For the programmable devices from the controller family
ecomatmobile
numerous functions are
available which enable use of the devices in a wide range of applications.
As these units use more or fewer system resources depending on their complexity it is not always
possible to use all units at the same time and several times.
NOTICE
Risk that the device acts too slowly!
Cycle time must not become too long!
► When designing the application program the above-mentioned recommendations must be
complied with and tested.
► If necessary, the cycle time must be optimised by restructuring the software and the system set-
up.
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......