日本語 English
KVKV-X

Math library

List

This page collects math libraries for KEYENCE KV and KV-X.
Mathematical processing that is hard to implement on a PLC alone, such as geometry, 3D coordinate transformation, vector operations, rotation matrices, quaternions and matrix operations, is provided as functions.
They can be used for robot control, image processing, positioning, coordinate transformation and more.

2D

2D Calculations on 2D coordinates such as distance, angle, intersection, rotation and circle center, used in image processing and XY stage control.

linearPtoP

Distance and angle between two points

Distance and angle of the line through two points on plane coordinates

Intersection

Intersection and angle of two lines

Intersection coordinates and crossing angle of two lines on plane coordinates

PointRotate

Rotation around the origin

Rotation around the origin on plane coordinates

GetCenter2d

Center of a circle through three points

Find the center and radius of the circle through three points on a plane

3D

A collection of distance, rotation, Euler angle and quaternion conversion in XYZ space.

Distance3D

Distance between two points

Calculate the distance between two points in space coordinates

GetCenter3D

Center of a circle through three points

Calculate the center of the circle through three points in space

matRotateXYZ

Rotation around the X, Y and Z axes

Rotation around the X, Y or Z axis

matRotateEuler

Rotation with Euler angles

Convert Euler angles to a rotation matrix (EulerToMatrix) and rotate (matRotateEuler)

qtRotate

Rotation with quaternions

Rotation around a rotation axis

Spiral

Helix

Vectors

A collection of vector calculations.

vecADD

Vector addition

vecSUB

Vector subtraction

vecCross

Vector cross product

Other

Vector creation, scalar multiplication, Hadamard product, comparison, dot product, norm

Rotation Conversion

A collection of functions that convert between Euler angles, rotation matrices and quaternions.

Hyperbolic / Inverse Hyperbolic Functions

Matrices

A collection of functions for matrix operations.

Quaternions

A collection of quaternion functions for calculating rotations in 3D space.

Other

Download

keisanKVXLib.kufb (library only)

* Operation on the KV-X was verified with the simulator