TranslateToLoad()
This method is used to calculate a load position via the transformation table of the drive side.
Syntax:
METHOD TranslateToLoad : HRESULT
VAR_INPUT
bExecute: BOOL;
fDrivePosition: LREAL;
fDriveVelocity: LREAL;
fLoadPosition: REFERENCE TO LREAL;
fLoadVelocity: REFERENCE TO LREAL;
nSlot: INT;
END_VAR
Return value
Name | Type | Description |
---|---|---|
TranslateToLoad | HRESULT | Return value with feedback on the success of the execution. |
Inputs
Name | Type | Description |
---|---|---|
bExecute | BOOL | A rising edge starts the asynchronous execution of this method. |
fDrivePosition | LREAL | Drive position to be translated. |
fDriveVelocity | LREAL | Drive velocity to be translated. |
fLoadPosition | REFERENCE TO LREAL | Translated load position. |
fLoadVelocity | REFERENCE TO LREAL | Translated load velocity. |
nSlot | INT | The slot to be used for the asynchronous query. |
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 |