MC_ReadParameter

This function block corresponds to the function block described in PLCopen for reading parameters.

CAUTION

The current implementation only supports reading from the axis lists (achsmdsX.lis). Default lists (default_achs_mds.lis) are not supported.

MC_ReadParameter 1:

The parameter set 0 and the list type ‘ACHS_MDS’ are used by default.

Block diagram

MC_ReadParameter 2:

Parameters of the FB

VAR_IN_OUT

 

Axis

AXIS_REF

Axis reference.

VAR_INPUT

 

Enable

BOOL

Get the values of the parameters continuously while enabled.

 

ParameterNumber

STRING

Number/Identification of the parameter to be read, e.g. ‘kenngr.swe_pos’.

 

ParameterType

STRING

Kind of parameter to be read.
Current: ACHS_MDS

VAR_OUTPUT

 

Valid

BOOL

Parameter available.

 

Busy

BOOL

The FB with the ‘Busy’ = TRUE has control on the axis

 

Error

BOOL

Indicates if an error has occurred.

 

ErrorID

WORD

Error identification.

 

Value

STRING

Parameter value from the original list.

 

InternalErrorID

UDINT

Internal error identification of the ISG-MCP.

Behavior of the FB