MC_ReadActualVelocity (motion control read actual velocity)
The MC_ReadActualVelocity instruction returns the value of the actual velocity of the feedback axis.
MC_ReadActualVelocity is only applicable to feedback motion.
Before executing MC_ReadActualVelocity, verify that the axis is in one of the following axis states:
- Standstill
- Discrete Motion
- Error Stop
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L50E and L70E controllers that support motion control.
MC_ReadActualVelocity

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
AxisIn | Input | FB_AXIS_REF | For an FB_Axis (feedback axis), use the FB_AXIS_REF data type to define AxisIn. |
Enable | Input | BOOL |
|
Axis | Output | FB_AXIS_REF | Axis output is read-only in ladder diagram programs. The Axis output parameters are defined in the FB_AXIS_REF data type. |
Valid | Output | BOOL |
|
Busy | Output | BOOL |
|
Error | Output | BOOL | Indicates an error occurred.
|
ErrorID | Output | UNIT | A unique numeric that identifies the error. The errors for this instruction are defined in Motion control function block error IDs. |
ActualVelocity | Output | REAL | The value of the actual velocity for the feedback motion axis (in axis' unit [u/s]). ActualVelocity is a signed value, which includes direction information. |
MC_ReadActualVelocity examples
MC_ReadActualVelocity function block diagram example

MC_ReadActualVelocity ladder diagram example

MC_ReadActualVelocity structured text example

Results


Provide Feedback