MC_ReadParameter

Function block MC_ReadParameter
Reads the value of a vendor-specific parameter from an axis. The returned value has to be converted to LREAL if necessary. If not possible, the vendor has to supply a vendor-specific function block to read the parameter. The parameters are defined in the MC_AxisParameter type.
VAR_IN_OUT
B AxisIn AXIS_REF Reference to an axis.
VAR_INPUT
B Enable BOOL Reads the value of the parameter continuously while enabled.
B ParameterNumber INT A parameter in the MC_AxisParameter type. You can use the parameter name or its corresponding number.
VAR_OUTPUT
B Valid BOOL A valid output is available at the function block.
E Busy BOOL The function block is not finished and new output values are to be expected.
B Error BOOL Signals that an error has occurred within the function block.
E ErrorID MC_Error Error identification.
B Value LREAL Reads the value from the parameter you picked from the MC_AxisParameter type.

 

  MC_ReadParameter  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Enable   Valid   BOOL
INT   ParameterNumber   Busy   BOOL
        Error   BOOL
        ErrorID   MC_Error
        Value   LREAL