MC_ReadParameter (motion control read parameter)
The MC_ReadParameter instruction returns the value of a vendor specific parameter in a Real data type.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L50E and L70E controllers that support motion control.
MC_ReadParameter

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | Instruction block enable.
Applies only to ladder diagram programs. |
AxisIn | Input | AXIS_REF FB_AXIS_REF | Use the AXIS_REF data type to define AxisIn. For FB_Axis (feedback axis), use the FB_AXIS_REF data type to define AxisIn. |
Enable | Input | BOOL |
|
ParameterNumber | Input | DINT | Parameter identification. Parameter numbers definitions are defined in motion control function block parameter numbers. |
ENO | Output | BOOL | Enable output. Applies only to ladder diagram programs. |
Axis | Output | AXIS_REF | Axis output is read-only in ladder diagram programs. |
Valid | Output | BOOL |
|
Busy | Output | BOOL |
|
Error | Output | BOOL | Indicates an error occurred.
|
ErrorID | Output | UINT | A unique numeric that identifies the error. The errors for this instruction are defined in Motion control function block error IDs. |
Value | Output | REAL | Value of the specified parameter in the data type, as specified by the vendor. |
MC_ReadParameter examples
MC_ReadParameter function block diagram example

MC_ReadParameter ladder diagram example

MC_ReadParameter structured text example

Results


Provide Feedback