F_KinAxesInTolerance
![F_KinAxesInTolerance 1:](Images/png/9058416395__Web.png)
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.
VAR_INPUT
VAR_INPUT
stAxesPosIn1 : ARRAY[1..8] OF LREAL;
stAxesPosIn2 : ARRAY[1..8] OF LREAL;
stAxesTolerance : ARRAY[1..8] OF LREAL;
END_VAR
stAxesPosIn1: First array. This is compared with the second array.
stAxesPosIn2: Second array. This is compared with the first array.
stAxesTolerance: 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) |