This function is only used to convert the FB 102 of an existing S5 pro-
gram to a function of an S7 program programmable controller.
15.4.3 FC 114 - Tangent(x) - Tangent
The function FC 114 expects the input value in ACCU 1 as a floating point number.
1. The input value must be within the range between zero
(REAL = +0.0000000e+00) ... 2 x p (REAL = +0.6283185e+01)
2. The function also stores the result in ACCU 1 as a floating point number.
3. 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).
ð
If the calculation is carried out correctly, the RLO ENO is FALSE after the func-
tion 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, the function sets the RLO to signal state ENO to TRUE. In this
case, the contents of accumulator 1 remain unchanged. One of the following errors has
occurred:
n The input value is out of range from 0 ... 2 x p.
n A number range overflow occurred during calculation of the function.
n The input value amounts to p/2 or 3 x p/2. In this case, the function value is infinite.
The assignment of the remaining registers and the auxiliary flags are not changed.
This function is only used to convert the FB 103 of an existing S5 pro-
gram to a function of an S7 program programmable controller.
15.4.4 FC 115 - Cotangent(x) - Cotangent
The function FC 115 expects the input value in ACCU 1 as a floating point number.
1. The input value must be within the range between zero
(REAL = +0.0000000e+00) ... 2 x p (REAL = +0.6283185e+01)
Description
Error information
Description
VIPA SPEED7
Standard
S5 Converting > FC 115 - Cotangent(x) - Cotangent
HB00 | OPL_SP7 | Operation list | en | 18-30 827