SetFloatParameter
This method is used to define LREAL parameters of the controller. For details see E_PressureControlParam.
Syntax:
METHOD SetFloatParameter : HRESULT
VAR_INPUT
eSelect: E_PressureControlParam;
fValue : LREAL;
END_VAR
Return value
Name | Type | Description |
---|---|---|
SetFloatParameter | HRESULT | See below |
The return value of the method is of type HRESULT. The following return values are to be expected.
E_AdsErr | Return value | Cause |
---|---|---|
DEVICE_BUSY | 0x9B00 0708 | The axis is busy performing another core function. |
DEVICE_INVALIDDATA | 0x9B00 0706 | Not all data and parameters for the core function are available and valid. |
DEVICE_INVALIDSTATE | 0x9B00 0712 | The state of the axis does not allow the execution. |
DEVICE_NOTINIT | 0x9B00 0718 | The core function is not or not completely initialized. |
NOERR | 0x1B00 0000 | The core function has accepted the command. |
Inputs
Name | Type | Description |
---|---|---|
eSelect | E_PressureControlParam | The selection of the parameter. |
fValue | LREAL | The value with which the parameter is to be defined. |