beckhoff TwinCAT 3 — 12.11 Time Functions

Programming Reference | Time Functions The functions have the extension "_" (underscore), which identifies them as TwinCAT implementation. Most are analog math.h, designed by Microsoft, only for the data type double. See also MSDN documentation of analog math.h functions. 12.11 Time Functions | Time Functions TwinCAT provides functions for time conversion, they are declared in TcTimeConversion.h, which is part of TwinCAT SDK. TwinCAT 3 207 Version: 1.19.1 Name Description atan2 _ Calculates the angle whose tangent is the quotient of two specified values. asin _ Calculates the angle whose sine is the specified value. acos _ Calculates the angle whose cosine is the specified value.

exp _ Calculates e to the specified power. log _ Calculates the logarithm of a specified value. log10 _ Calculates the base 10 logarithm of a specified value. fabs _ Calculates the absolute value. fmod _ Calculates the remainder. ceil _ Calculates the smallest integer that is greater than or equal to the specified number. floor _ Calculates the largest integer that is smaller than or equal to the specified number. pow _ Calculates a specified number to the specified power. sincos _ Calculates the sine and cosine of x. fmodabs _ Calculates the absolute value that meets the Euclidean definition of the mod operation. round _ Calculates a value and rounds to the nearest integer.

round digits _ _ Calculates a rounded value with a specified number of decimal places. coubic _ Calculates the cubic value. ldexp _ Calculates a real number (double) from mantissa and exponent. ldexpf _ Calculates a real number (float) from mantissa and exponent. sinh _ Calculates the hyperbolic sine of the specified angle. cosh _ Calculates the hyperbolic cosine of the specified angle. tanh _ Calculates the hyperbolic tangent of the specified angle. finite _ Determines whether the specified value is finite. isnan _ Determines whether the specified value is not a number (NAN). rands _ Calculates a pseudo random number between 0 and 32767.

The parameter holdrand is set randomly and changed with every call.