AsStruct()

AsStruct() 1:

A point in the lookup table can be retrieved or written as a structure using this method.

Syntax:

METHOD AsStruct : ST_LookUpPtpPoint
VAR_INPUT
    nIdx:            INT; // target index in the point table
    refWrite:        REFERENCE TO ST_LookUpPtpPoint; // if = 0, the structure is read instead of written
END_VAR

AsStruct() 2: Return value

Name

Type

Description

AsStruct

ST_LookUpPtpPoint

If the method is used for reading, the requested point is returned.

AsStruct() 3: Inputs

Name

Type

Meeting

nIdx

INT

The index of the interpolation point in the table.

refWrite

REFERENCE TO ST_LookUpPtpPoint

Reference to a variable that is to be written to the lookup table.
If 0 is passed, the method is executed in read mode.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.71

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v12.12.0.0)