UpdatePosition()
In some use cases, the target position of the segments must be modified after definition. This method is used for transforming axes, for example.
Syntax:
METHOD UpdatePosition: HRESULT
VAR_INPUT
nIdx : INT;
fPosition: LREAL;
bSwap : BOOL;
bForce : BOOL;
END_VAR
Return value
Name | Type | Description |
---|---|---|
UpdatePosition | HRESULT | Return value with feedback on the success of the execution. |
Inputs
Name | Type | Description |
---|---|---|
nIdx | INT | The index of the point. Permissible range 1 ... NumberOfPoints. |
fPosition | LREAL | The value to be used for the update. |
bSwap | BOOL | With |
bForce | BOOL | If TRUE, the point will be updated even if the axis executes a command. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.35 | PC or CX (x64, x86) | Tc3_PlasticFunctions v3.12.4.26 or higher |