Vector Functions ¶ AddMultiplicatedVector (Function) CrossProduct (FunctionBlock) CrossProductNormed (FunctionBlock) MakeNormed3D (Function) Norm3D (Function) ScalProd3D (Function) ScalProd3DStand (Function) SubVector (Function)
signals ¶ MeasureFrequence (FunctionBlock)
MeasureFrequence (FB) ¶ FUNCTION_BLOCK MeasureFrequence This function block will measure the average frequency of an input signal over a defined number of periods. Note The function block has to be called with a frequency higher than the maximum frequency of the input signal to be able to calculate the correct result. InOut: Scope Name Type Initial Comment Input xEnable BOOL Reset xInput BOOL Input signal usiPeriods USINT (1..10) 1 Number of time periods the frequency shall be averaged in ( \(1 \leq \mbox{number} \leq 10\) ) Output lrFrequency LREAL Avareged frequency (in Hz) xValid BOOL Validity of result FALSE : If the required number of time periods has not yet been passed or if the distance in time of two raising edges exceeds \(3 \cdot \mbox{lrFrequency}\)
GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL This function has been automatically generated from the project information. InOut: Scope Name Type Return IsLibReleased BOOL
VersionConstants (GVL) ¶ InOut: Scope Name Type Initial Constant gc_byVersion BYTE 1 gc_Version_1 BYTE 0
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 15.12.2017, 11:36:22 companyName string 3S-Smart Software Solutions GmbH libraryFile CAA_Mathematics.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP12 contentFile CAA_Mathematics.clean.json version version 2.0.0.0 ProjectInformation OnlineHelp bool True Released True LastModificationDateTime date 15.12.2017, 11:36:15 LibraryCategories library-category-list Intern|CAA|Utilities Author string 3S - Smart Software Solutions GmbH Company CAA Technical Workgroup DefaultNamespace MATH Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder CAA Mathematics Project CAA_Mathematics Title CAA Mathematics Version version 3.5.12.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
ProjectPointOnLine (FUN) ¶ FUNCTION ProjectPointOnLine : BOOL This function will project the point \(x \in \mathbb{R^{3}}\) onto a straight line: thereby, the direction vector of the straight line is taken as normal vector of a plane that is moved along the line as long as it touches the point \(x\) . The intersection point of the plane with the line corresponding to this location is the projected point. InOut: Scope Name Type Comment Return ProjectPointOnLine BOOL Input pline POINTER TO LINE_3D Pointer on straight line pvOrig POINTER TO Vector3D Pointer on point \(x\) to be projected pvProj POINTER TO Vector3D Pointer to projected result
CalcHesseRepresentation (FB) ¶ FUNCTION_BLOCK CalcHesseRepresentation This function block will retrieve the normal form (due to Hesse) of a plane \(E\) in the three dimensional space: \(E\colon(x-p)\cdot n = 0\) , where \(n\) is the normed normal on the plane and \(p\) a point on the plane. The plane is originally specified by three of its points. InOut: Scope Name Type Comment Input vP1 POINTER TO Vector3D point on plane \(E\) vP2 POINTER TO Vector3D point on plane \(E\) vP3 POINTER TO Vector3D point on plane \(E\) Output plane PLANE_H normal form of plane \(E\) xError BOOL Error flag TRUE : If input points are collinear