SetParameter()

The procedure for returning to normal operation can be specified.
Syntax:
METHOD SetParameter : HRESULT
VAR_INPUT
fDistance : LREAL;
fVelocity : LREAL;
fAcceleration : LREAL;
fDeceleration : LREAL;
fJerk : LREAL;
bOptionsDisableDriveAccess : BOOL;
END_VAR
Return value
Name | Type | Description |
---|---|---|
SetParameter | HRESULT | Return value with feedback on the success of the execution. |
Inputs
Name | Type | Description |
---|---|---|
fDistance | LREAL | Here you can define a distance by which the axis should move away from the homing position. In many cases, there is a torque at the end of a homing procedure. The mechanics of the axis can be relieved by a movement suitably selected in amount and direction. |
fVelocity | LREAL | The velocity to be commanded for this. |
fAcceleration | LREAL | The acceleration to be commanded for this. |
fDeceleration | LREAL | The deceleration to be commanded for this. |
fJerk | LREAL | The jerk to be commanded for this. |
bOptionsDisableDriveAccess | BOOL | A TRUE prevents ADS communication via the fieldbus from being used to change parameters of the controlled device in order to return to normal operation. |
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 |