TranslateToDrive()
This method is used to calculate a drive position using the transformation table of the load table.
Syntax:
METHOD TranslateToDrive : HRESULT
VAR_INPUT
bExecute: BOOL;
fLoadPosition: LREAL;
fLoadVelocity: LREAL;
fDrivePosition: REFERENCE TO LREAL;
fDriveVelocity: REFERENCE TO LREAL;
nSlot: INT;
END_VAR
Return value
Name | Type | Description |
---|---|---|
TranslateToDrive | 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. |
fLoadPosition | LRELA | Load position to be translated. |
fLoadVelocity | LREAL | Load velocity to be translated. |
fDrivePosition | REFERENCE TO LREAL | Translated load position. |
fDriveVelocity | 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 |