EcoStruxure Control Expert doesn't provide Double length real calculation functions.
This library performs Long real calculation using an array type LREAL of 2 Dword, where the long real is coded using IEEE 754 format.
The zip file attached contains the library, a FBD section to test the library and a tool allowing to convert the IEEE 754 format (useful to make the test)
Be aware that all the controls are not performed when overflow happens, so use the library with care, mainly when you perform type conversions.
Math functions ADD_DREAL SUB_DREAL MUL_DREAL DIV_DREAL ABS_DREAL NEG_DREAL POW_DREAL SQRT_DREAL EXP_DREAL LN_DREAL LOG_DREAL
Trigononmetric Functions ACOS_DREAL ASIN_DREAL ATAN_DREAL COS_DREAL SIN_DREAL TAN_DREAL
Logic Functions EQ_DREAL GE_DREAL GT_DREAL LE_DREAL LT_DREAL
Convertion Functions INT_TO_DREAL DINT_TO_DREAL DREAL_TO_DINT DREAL_TO_INT DREAL_TO_REAL DREAL_TO_STRING REAL_TO_DREAL
The views and opinions expressed in this article are those of the author(s) and do not necessarily reflect the official policy or position of Schneider Electric. This library is given as if. Use of the library is the responsibility of the user