MC_ReadParameter
This function block corresponds to the function block described in PLCopen for reading parameters.
Notice
This function block is not available in TwinCAT systems..
Notice
Only parameters from the axis MDS are read. Parameters that are only defined in the default axis MDS can not be read.
Block diagram
FB parameters
VAR_IN_OUT | ||||
Variable name | Data type | Description | ||
Axis | AXIS_REF | Axis reference | ||
VAR_INPUT | ||||
Variable name | Data type | Description | ||
Enable | BOOL | Value must be TRUE to start continuous read. | ||
ParameterNumber | STRING | Identifier of the parameter whose value is to be read. See Note 1. | ||
ParameterType | STRING | Type of parameter to be read. Currently: ACHS_MDS | ||
ParameterSet | UINT | Number of the parameter set from which the parameter value is to be read. | ||
VAR_OUTPUT | ||||
Variable name | Data type | Description | ||
Valid | BOOL | Is TRUE when the parameter was successfully read. | ||
Busy | BOOL | Is TRUE if the FB is still active. | ||
Error | BOOL | Indicates whether an error occurred in the FB. | ||
ErrorID | WORD | Error identifier | ||
Value | STRING | Parameter value from the original list. | ||
InternalErrorID | UDINT | Internal error identification of the ISG-MCP. |
Behaviour of the FB:
- The behaviour of this FB corresponds to that of the MCV_ReadParamValue function block.
Example
Parameterising the Motion Controller by ASCII file lists
kenngr.swe_pos.
getriebe[0].vb_not_referenced
Example
Parameterising the Motion Controller by XML file lists
If the Motion Controller is parameterised using XML files, access to the parameter must be specified by an XPath value at the "ParameterNumber" input.
/AX_MDS/Head/P-AXIS-00297/@Value
/AX_MDS/Settings/P-AXIS-00015/@Value
/AX_MDS/Settings/Homing/P-AXIS-00299/@Value
/AX_MDS/Drive/Generic/address/@Value
or for parameters with index:
/AX_MDS/Gear/GearIndex[@Value=“0“]/P-AXIS-00234/@Value
or simply use the parameter name, e.g.:
P-AXIS-00299