15.4.13 FC 124 - 10 to Power n - 10 high n
The function FC 124 expects the input value in ACCU 1 as a floating point number.
1. The input value DWORD = DW#16#0000 0000 is treated the same way as the
floating point value zero (REAL = +0.0000000e+00 in accordance with DWORD =
DW#16#8000 0000).
2. The function also stores the result in ACCU 1 as a floating point number.
3. If the calculation is carried out correctly, the RLO ENO is FALSE after the function
has been called up.
Parameters
Parameter Declaration Data Type Memory Area Description
EN INPUT BOOL I, Q, M, D, L
n Enable
– TRUE: activates the function
– FALSE: deactivates the function
ENO OUTPUT BOOL I, Q, M, D, L
n Status
– TRUE: function executed with error
In the event of an error, if the input value is not within the range from -0.3823079e+02 ...
REAL = + 0.3823080e+02 (than the value would be outside the number range), the func-
tion sets the RLO ENO to signal state TRUE. In this case, the contents of ACCU 1 remain
unchanged. The assignment of the auxiliary flags is not changed.
This function is only used to convert the FB 113 of an existing S5 pro-
gram to a function of an S7 program programmable controller.
15.4.14 FC 125 - ACCU 2 to Power ACCU 1 - ACCU 2 high ACCU 1
The function FC 125 expects both the input value for the base in ACCU 2 and the input
value for the exponent in ACCU 1 as floating point numbers.
1. The input value for the base must be positive.
An input value DWORD = DW#16#0000 0000 is treated the same way as the
floating point value zero (REAL = +0.0000000e+00 in accordance with DWORD =
DW#16#8000 0000).
For zero high zero the result is zero.
2. The function also stores the result in ACCU 1 as a floating point number.
3. If the calculation is carried out correctly, the RLO ENO is FALSE after the function
has been called up.
Description
Error information
Description
VIPA SPEED7
Standard
S5 Converting > FC 125 - ACCU 2 to Power ACCU 1 - ACCU 2 high ACCU 1
HB00 | OPL_SP7 | Operation list | en | 18-30 834