Transformations ¶ LinearTrafo (FunctionBlock) fmod (Function)
LinearTrafo (FB) ¶ FUNCTION_BLOCK LinearTrafo This function will calculate the linear transformation \(y \in \mathbb{R}\) of \(x \in \mathbb{R}\) according to \[ \begin{align}\begin{aligned}\frac{y - y_{1}}{y_{2}-y_{1}} = \frac{x-x_{1}}{x_{2}-x_{1}}\\\mathrm{with}\ x_{1}, x_{2}, y_{1}, y_{2} \in \mathbb{R}\ \mathrm{and}\ x_{1} \neq x_{2} \land x_{1} \leq x \leq x_{2}\end{aligned}\end{align} \] InOut: Scope Name Type Comment Input lrInputValue LREAL Value \(x\) to be transformated lrInput1 LREAL Coefficient \(x_{1} \in \mathbb{R}\) lrInput2 LREAL Coefficient \(x_{2} \in \mathbb{R}\) lrOutput1 LREAL Coefficient \(y_{1} \in \mathbb{R}\) lrOutput2 LREAL Coefficient \(y_{2} \in \mathbb{R}\) Output lrOutputValue LREAL Linear transformation \(y \in \mathbb{R}\) of \(x \in \mathbb{R}\) xOutOfLimits BOOL Error flag TRUE : If \(x_{1} = x_{2} \lor x < x_{1} \lor x > x_2\)
fmod (FUN) ¶ FUNCTION fmod : LREAL This function will return the modulo of the integral division \(\frac{x}{m}\) : \[x\ \mathrm{mod}\ m = x - \left \lfloor \frac{x}{m} \right \rfloor \cdot m\] Note The invalid input \(m=0\) will result in the return 0. InOut: Scope Name Type Comment Return fmod LREAL Input lrX LREAL Dividend \(x\) lrM LREAL Divisor \(m\)
CAA Types Extern Library Documentation ¶ Company CAA Technical Workgroup Title CAA Types Extern Version 3.5.13.0 Categories Intern|CAA|Foundation Namespace CAA Author 3S - Smart Software Solutions GmbH Placeholder CAA Types Description 1 ¶ Basic system dependend data types Contents: ¶ CAA Types Convert Functions Enums Function Blocks GlobalConstants GlobalVariables Helper Fuctions Types GetSupplierVersion (Function) VersionConstants (GVL) Indices and tables ¶ 1 Based on CAA_Types_Extern.library, last modified 03.07.2018, 09:55:47. LibDoc 4.4.0.0-b.27 The content file CAA_Types_Extern.clean.json was generated with CODESYS V3.5 SP13 on 03.07.2018, 09:55:51.
Convert Functions ¶ COUNT COUNT_TO_UDINT (Function) COUNT_TO_UINT (Function) COUNT_TO_ULINT (Function) UDINT_TO_COUNT (Function) UINT_TO_COUNT (Function) ULINT_TO_COUNT (Function) DURATION DURATION_TO_LTIME (Function) DURATION_TO_TIME (Function) LTIME_TO_DURATION (Function) TIME_TO_DURATION (Function) FLOAT FLOAT_TO_LREAL (Function) FLOAT_TO_REAL (Function) LREAL_TO_FLOAT (Function) REAL_TO_FLOAT (Function) HANDLE DWORD_TO_HANDLE (Function) HANDLE_TO_DWORD (Function) HANDLE_TO_LWORD (Function) HANDLE_TO_WORD (Function) LWORD_TO_HANDLE (Function) WORD_TO_HANDLE (Function) IDENT DWORD_TO_IDENT (Function) IDENT_TO_DWORD (Function) IDENT_TO_WORD (Function) WORD_TO_IDENT (Function) PVOID DWORD_TO_PVOID (Function) LWORD_TO_PVOID (Function) PVOID_TO_DWORD (Function) PVOID_TO_LWORD (Function) PVOID_TO_WORD (Function) WORD_TO_PVOID (Function) SIGNED DINT_TO_SIGNED (Function) INT_TO_SIGNED (Function) LINT_TO_SIGNED (Function) SIGNED_TO_DINT (Function) SIGNED_TO_INT (Function) SIGNED_TO_LINT (Function) SIZE SIZE_TO_UDINT (Function) SIZE_TO_UINT (Function) SIZE_TO_ULINT (Function) UDINT_TO_SIZE (Function) UINT_TO_SIZE (Function) ULINT_TO_SIZE (Function) TICK TICK_TO_UDINT (Function) TICK_TO_UINT (Function) TICK_TO_ULINT (Function) UDINT_TO_TICK (Function) UINT_TO_TICK (Function) ULINT_TO_TICK (Function) UNSIGNED UDINT_TO_UNSIGNED (Function) UINT_TO_UNSIGNED (Function) ULINT_TO_UNSIGNED (Function) UNSIGNED_TO_UDINT (Function) UNSIGNED_TO_UINT (Function) UNSIGNED_TO_ULINT (Function)
CAA Types ¶ Convert Functions COUNT COUNT_TO_UDINT (Function) COUNT_TO_UINT (Function) COUNT_TO_ULINT (Function) UDINT_TO_COUNT (Function) UINT_TO_COUNT (Function) ULINT_TO_COUNT (Function) DURATION DURATION_TO_LTIME (Function) DURATION_TO_TIME (Function) LTIME_TO_DURATION (Function) TIME_TO_DURATION (Function) FLOAT FLOAT_TO_LREAL (Function) FLOAT_TO_REAL (Function) LREAL_TO_FLOAT (Function) REAL_TO_FLOAT (Function) HANDLE DWORD_TO_HANDLE (Function) HANDLE_TO_DWORD (Function) HANDLE_TO_LWORD (Function) HANDLE_TO_WORD (Function) LWORD_TO_HANDLE (Function) WORD_TO_HANDLE (Function) IDENT DWORD_TO_IDENT (Function) IDENT_TO_DWORD (Function) IDENT_TO_WORD (Function) WORD_TO_IDENT (Function) PVOID DWORD_TO_PVOID (Function) LWORD_TO_PVOID (Function) PVOID_TO_DWORD (Function) PVOID_TO_LWORD (Function) PVOID_TO_WORD (Function) WORD_TO_PVOID (Function) SIGNED DINT_TO_SIGNED (Function) INT_TO_SIGNED (Function) LINT_TO_SIGNED (Function) SIGNED_TO_DINT (Function) SIGNED_TO_INT (Function) SIGNED_TO_LINT (Function) SIZE SIZE_TO_UDINT (Function) SIZE_TO_UINT (Function) SIZE_TO_ULINT (Function) UDINT_TO_SIZE (Function) UINT_TO_SIZE (Function) ULINT_TO_SIZE (Function) TICK TICK_TO_UDINT (Function) TICK_TO_UINT (Function) TICK_TO_ULINT (Function) UDINT_TO_TICK (Function) UINT_TO_TICK (Function) ULINT_TO_TICK (Function) UNSIGNED UDINT_TO_UNSIGNED (Function) UINT_TO_UNSIGNED (Function) ULINT_TO_UNSIGNED (Function) UNSIGNED_TO_UDINT (Function) UNSIGNED_TO_UINT (Function) UNSIGNED_TO_ULINT (Function) Enums ENDIANESS (Enum) ERROR (Enum) SYSTYPE (Enum) Function Blocks BOLT (FunctionBlock) Enter (Method) Free (Method) Leave (Method) Reserve (Method) SEMA (FunctionBlock) Init (Method) Preset (Property) Release (Method) Request (Method) GlobalConstants Constants (GVL) System (GVL) GlobalVariables Architecture (GVL) Helper Fuctions TaskLock (Function) TaskUnlock (Function) Types COUNT (Alias) DURATION (Alias) FILENAME (Alias) FLOAT (Alias) HANDLE (Alias) IDENT (Alias) PVOID (Alias) SIGNED (Alias) SIZE (Alias) TICK (Alias) UNSIGNED (Alias)
COUNT ¶ COUNT_TO_UDINT (Function) COUNT_TO_UINT (Function) COUNT_TO_ULINT (Function) UDINT_TO_COUNT (Function) UINT_TO_COUNT (Function) ULINT_TO_COUNT (Function)
COUNT_TO_UDINT (FUN) ¶ FUNCTION COUNT_TO_UDINT : UDINT InOut: Scope Name Type Return COUNT_TO_UDINT UDINT Input ctValue COUNT
COUNT_TO_UINT (FUN) ¶ FUNCTION COUNT_TO_UINT : UINT InOut: Scope Name Type Return COUNT_TO_UINT UINT Input ctValue COUNT
COUNT_TO_ULINT (FUN) ¶ FUNCTION COUNT_TO_ULINT : ULINT InOut: Scope Name Type Return COUNT_TO_ULINT ULINT Input ctValue COUNT