MC_READPARAMETER
(Original Document)
Function Description
The MC_READPARAMETER function is used to read, via Service Data Object (SDO) messaging, a variable in the servodrive defined by the AXIS parameter.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Axis
CAL MC_READPARAMETER_Instance (AXIS:=AXIS, EXECUTE:=EXEC, PARAMETERNUMBER:=PN, SUBINDEX:=SI, ERROR=>ERR, DONE=>DO, BUSY=>B, ERRORID=>ERRID, VALUE=>X, LENGTH=>L)
Representation in ST
Representation:
MC_READPARAMETER_Instance (AXIS:=AXIS, EXECUTE:=EXEC, PARAMETERNUMBER:=PN, SUBINDEX:=SI, ERROR=>ERR, DONE=>DO, BUSY=>B, ERRORID=>ERRID, VALUE=>X, LENGTH=>L);
Description of the Input Parameters
The following table describes the input parameters that are in addition to the basic parameters:
Parameter
Type
Comment
PARAMETERNUMBER
CANopen index number.
SUBINDEX
CANopen subindex number.
Description of the Output Parameters
The following table describes the output parameters that are in addition to the basic parameters:
Parameter
Type
Comment
VALUE
Value read.
LENGTH
Length in bytes of the value read.