F_KinAxesInTolerance

F_KinAxesInTolerance 1:

The function block F_KinAxesInTolerance compares two arrays element by element.

The function returns TRUE if the difference between the respective array elements is within the expected tolerance.

F_KinAxesInTolerance 2: Inputs

VAR_INPUT  
    stAxesPosIn1    : ARRAY[1..8] OF LREAL;
    stAxesPosIn2    : ARRAY[1..8] OF LREAL;
    stAxesTolerance : ARRAY[1..8] OF LREAL;
END_VAR

Name

Type

Description

stAxesPosIn1

ARRAY[1..8] OF LREAL

First array. This is compared with the second array.

stAxesPosIn2

ARRAY[1..8] OF LREAL

Second array. This is compared with the first array.

stAxesTolerance

ARRAY[1..8] OF LREAL

Contains the tolerance for each array element to be compared.

Return value

BOOL: The function returns TRUE if the difference between the respective array elements is within the expected tolerance.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.7

Advanced Motion Pack V3.1.10.1

PC or CX (x86 or x64)

Tc2_KinematicTransformation (V3.2.7.3 or later)