Overview

The Tc2_Math library contains extended mathematical functions for TwinCAT PLC.

Functions

FLOOR

The FLOOR function determines an integral value from a floating point number that is a fraction smaller than or equal that number.

FRAC

The FRAC function determines the decimal component of a floating point number.

LMOD

The LMOD function carries out a modulo division and returns the signed divide remainder.

LTRUNC

The LTRUNC function determines the integral component of a floating point number.

MODABS

The MODABS function carries out a modulo division and determines the unsigned modulo value within the modulo range.

MODTURNS

The MODTURNS function carries out a modulo division and determines the signed integral component.

F_GetVersionTcMath

Returns the version information of the library