LOG / LOGL
A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Calculates the logarithm (base 10) of the input.
Inputs
IN : REAL/LREAL Real value.
Outputs
Q : REAL/LREAL Result: logarithm (base 10) of IN.
Remarks
- In the FFLD language, the operation is executed only if the input rung (EN) is TRUE.
- The output rung (ENO) keeps the same value as the input rung.
- In the IL
"Instruction list"
This is a low-level language and resembles assembly language, the first input must be loaded before the function call.
ST Language
Q := LOG (IN);
FBD Language
FFLD Language
(* The function is executed only if EN is TRUE. *)
(* ENO keeps the same value as EN. *)
IL Language
See Also





