MC_ReadBoolParameter_SML (FB)ΒΆ

FUNCTION_BLOCK FINAL MC_ReadBoolParameter_SML

Reads the value of a boolean SoftMotion or axis specific parameter. For the list of all SoftMotion parameter numbers see Axis_REF_SML.

See MC_ReadParameter_SML (FB) for a description of axis specific parameters.

Note

  • If the parameter is not of type BOOL, the returned value is undefined.

InOut:

Scope

Name

Type

Comment

Inout

Axis

AXIS_REF_SML

Reference to the axis

Input

Enable

BOOL

Get value is updated continuously while enabled

ParameterNumber

DINT

Number of the parameter

Output

Value

BOOL

The value of the parameter

Valid

BOOL

The value is valid

Busy

BOOL

The FB is not finished and new output values are to be expected

Error

BOOL

An error occurred

ErrorID

SML_ERROR

The error number