AsStruct()

A clamping point of the lookup table can be retrieved or written as a structure using this method.
Syntax:
METHOD AsStruct : ST_LookUpClamping
VAR_INPUT
nIdx: INT; // target index in the point table
refWrite: REFERENCE TO ST_LookUpClamping; // if = 0, the structure is read instead of written
END_VAR
Return value
Name | Type | Description |
|---|---|---|
AsStruct | If the method is used for reading, the requested point is returned. |
Inputs
Name | Type | Meeting |
|---|---|---|
nIdx | INT | The index of the interpolation point in the table. |
refWrite | REFERENCE TO ST_LookUpClamping | Reference to a variable that is to be written to the lookup table. |
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) |