Motion control instructions Chapter 17
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 495
MC_ReadParameter returns the value of a vendor specific parameter.
MC_ReadParameter operation
• When the MC_ReadParameter function block Enable input is set to False,
the Value output is reset to 0.
• Only supports the REAL data type.
Arguments
Parameter
Parameter
type
Data type Description
EN Input BOOL Function block enable.
When EN = TRUE, execute current MC_ReadParameter computation.
When EN = FALSE, the Value output is reset to 0.
Applies only to LD programs.
AxisIn Input AXIS_REF
FB_AXIS_REF
See also AXIS_REF data type on page 433.
See also FB_AXIS_REF data type on page 434.
Enable Input BOOL When TRUE, gets the value of the parameter continuously.
ParameterNumber Input DINT Parameter identification.
See also Motion control function block parameter numbers on page 438.
ENO Output BOOL Enable out.
Applies only to LD programs.
Axis Output AXIS_REF Axis output is read-only in LD programs.
See also AXIS_REF data type on page 442.
Valid Output BOOL When TRUE, parameter available.
Busy Output BOOL When TRUE, the function block is not finished.
Error Output BOOL When TRUE, an error was detected.
ErrorID Output UINT Error identification.
See also Motion control function block error IDs on page 440.
Value Output REAL Value of the specified parameter in the data type, as specified by the vendor.