SetParameter()

SetParameter() 1:

A set of parameters specific to this homing procedure is set.

Syntax:

METHOD SetParameter : HRESULT
VAR_INPUT
    fSetPosition                    : LREAL;
    eSwitchMode                     : E_AdaptableSwitchMode;
    bOptionsDisableDriveAccess      : BOOL;
    bOptionsEnableLagErrorDetection : BOOL;
END_VAR

SetParameter() 2: Return value

Name

Type

Description

SetParameter

HRESULT

Return value with feedback on the success of the execution.

SetParameter() 3: Inputs

Name

Description

fSetPosition

Specifies the value that is applied to the actual position at the homing event.

eSwitchMode

Defines how the AbsoluteSwitch is interpreted as a homing event.

bOptionsDisableDriveAccess

A TRUE prevents the underlying motion technology from using ADS communication via the fieldbus to change parameters of the controlled device and return to normal operation.

This option must be used for most non-Beckhoff servo drives.

bOptionsEnableLagErrorDetection

A TRUE will enable the lag error detection while the function is being executed.

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