F_VN_GenerateCalibrationPatternReferencePoints

F_VN_GenerateCalibrationPatternReferencePoints 1:

Generate reference points for common calibration patterns.

Syntax

Definition:

FUNCTION F_VN_GenerateCalibrationPatternReferencePoints : HRESULT
VAR_INPUT
    ipReferencePoints : Reference To ITcVnContainer;
    ePattern          : ETcVnCalibrationPattern;
    eOrigin           : ETcVnCalibrationPatternOrigin;
    nWidth            : UDINT;
    nHeight           : UDINT;
    fDistX            : REAL;
    fDistY            : REAL;
    hrPrev            : HRESULT;
END_VAR

F_VN_GenerateCalibrationPatternReferencePoints 2: Inputs

Name

Type

Description

ipReferencePoints

Reference To ITcVnContainer

Returns the generated reference points (ContainerType_Vector_TcVnPoint3_REAL)

ePattern

ETcVnCalibrationPattern

Calibration pattern type

eOrigin

ETcVnCalibrationPatternOrigin

Calibration pattern origin

nWidth

UDINT

Pattern width, i.e. number of pattern points in x direction

nHeight

UDINT

Pattern height, i.e. number of pattern points in y direction

fDistX

REAL

Distance between pattern points in x direction

fDistY

REAL

Distance between pattern points in y direction

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

F_VN_GenerateCalibrationPatternReferencePoints 3: Return value

HRESULT

Required License

TC3 Vision Metrology 2D

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.54 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision