MCV_ReadParamValue
Read parameter value
The parameter values from the original list or work list of a selected parameter set can be read with this function block. If the parameter sought is in the always-existing original list, it is returned as the "old parameter". If a work list exists and contains the parameter value, it is returned as the "new parameter".
| |
· The parameter value effective in the controller may differ from the two parameter values read in if the parameter value has been corrected in the controller due to a warning when interpreting the original or work list. After activation without a warning, the parameter value of the work list is active in the controller. Otherwise, it is the value of the original list. |
Block diagram

Parameters of the function block
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference. |
VAR_INPUT | |||
| Execute | BOOL | Reading of parameter value at rising edge. |
| NCListTypeIn | STRING | Identification of parameter or list type, e.g. ‘ACHS_MDS’. |
| NCParamSetIDIn | UINT | Number of parameter set from which the parameter value is to be read. |
| NCParamIdentIn | STRING | Identification of the parameter to be read, e.g. ‘kenngr.swe_pos’. |
VAR_OUTPUT | |||
| Valid | BOOL | Indicates if the parameter value has been read successfully. |
| Busy | BOOL | Indicates if the function block is still busy. |
| NCListTypeOut | STRING | Identification of parameter or list type, e.g. ‘ACHS_MDS’. |
| NCParamSetIDOut | UINT | Number of parameter set from which the parameter value has to be read or has been read. |
| NCParamIdentOut | STRING | Identification of the parameter, e.g. ‘kenngr.swe_pos’. |
| NCOldParamValueRead | BOOL | Indicates if the parameter identification could be found in the original list. |
| NCOldParamValueOut | STRING | Parameter value from the original list. |
| NCNewParamValueRead | BOOL | Indicates if the parameter identification could be found in the working list. |
| NCNewParamValueOut | STRING | Parameter value from the working list. |
| NCWarning | BOOL | Indicates if a warning in the ISG-MCP has occurred. |
| NCError | BOOL | Indicates if an error in the ISG-MCP has occurred. |
| NCErrorCode | UDINT | Error identification of the error in the ISG-MCP. |
| Error | BOOL | Indicates if an error has occurred. Save of parameter set is not executed. |
| ErrorID | WORD | Error identification. |
Behavior of the function block
- The function block is in an error state if ‘Error’ = TRUE. The parameter value could not be read correctly. An error has occurred either in the function block itself or in the ISG-MCP. The ‘NCError’ output parameter indicates whether an error has occurred in the ISG-MCP.
- The ISG-MCP returns an error if the parameter value cannot be found in any of the lists.