日本語 English

CS/CJ Series Calculation Function Block Library

Overview

The NX/NJ series calculation library has been ported to the CS/CJ series
The calculations are explained in the NX/NJ series calculation library, so see there

List

2D
NameNJ/NX FUN namePorted to CS/CJ FB
Right triangleRightTriangle〇
Polygon enclosed by pointsPolygonArea-
Inscribed circle of a triangleTriangleIncircle〇
Circumscribed circle of a triangleTriangleCircumcircle〇
Inscribed circle of a regular polygonRegularPolygonIncircle〇
Circumscribed circle of a regular polygonRegularPolygonCircumcircle〇
Intersection and angle of two linesIntersection〇
Distance and angle between two pointsLinearPtoP〇
Rotation around the originPointRotate〇
Cartesian to polar coordinatesPolarCoordinates〇
Polar to Cartesian coordinatesCartesianCoordinates〇
Center of a circle through three pointsGetCenter2D〇
3D - space
NameNJ/NX FUN namePorted to CS/CJ FB
Distance between two pointsDistance3D〇
Center of a circle through three pointsGetCenter3D-
3D - vectors
NameNJ/NX FUN namePorted to CS/CJ FB
CreateVector3d〇
AdditionvecADD〇
SubtractionvecSUB〇
Scalar multiplicationvecMUL〇
Hadamard productvecMultiply〇
Cross productvecCROSS〇
ComparisonvecEQ〇
Dot productvecDot〇
NormvecNorm〇
3D - rotation
NameNJ/NX FUN namePorted to CS/CJ FB
Rotation about each axismatRotateXYZ〇
Convert Euler angles to a rotation matrixEulerToMatrix〇
Rotation with quaternionsqtRotate-
3D - rotation conversion
NameNJ/NX FUN namePorted to CS/CJ FB
Euler angles → rotation matrixEulerToMatrix〇
Rotation matrix → Euler anglesMatrixToEuler〇
Euler angles → quaternionEulerToQuaternion-
Quaternion → Euler anglesQuaternionToEuler-
Quaternion → rotation matrixQuaternionToMatrix-
Rotation matrix → quaternionMatrixToQuaternion-
Hyperbolic functions
NameNJ/NX FUN namePorted to CS/CJ FB
sinhsinh〇
coshcosh〇
tanhtanh〇
sechsech〇
cschcsch〇
cothcoth〇
Inverse hyperbolic functions
NameNJ/NX FUN namePorted to CS/CJ FB
asinhasinh〇
acoshacosh〇
atanhatanh〇
asechasech〇
acschacsch〇
acothacoth〇
Matrices
NameNJ/NX FUN namePorted to CS/CJ FB
AdditionmatADDmat3x3ADD
Subtractionmat3SUBmat3x33SUB
Scalar multiplicationmatMULmat3x3MUL
Hadamard productmatMultiplymat3x3Multiply
Dot productmatDotmat3x3Dot
Cross productmatCrossmat3x3Cross
TransposematTmat3x3T
Inverse matrixmatInv-
Determinant calculationmatDetmat3x3Det
Quaternion
NameNJ/NX FUN namePorted to CS/CJ FB
CreateQuaternion-
ComparisonqtEQ-
AdditionqtADD-
SubtractionqtSUB-
Cross productqtCross-
ConjugateqtCQ-
Set real partqtSetReal-
Set imaginary partqtSetImag-
Other
NameNJ/NX FUN namePorted to CS/CJ FB
ATAN2atan2〇
Solving a system of three linear equationsgauss-

Download

These sample ladders use variables for inputs and outputs, so when copying them, use automatic address allocation or allocate free addresses

Comments