MC_ReadMotionState
This FB serves to read various state information on the current axis movement.
|
|
|
|
MC_ReadMotionState |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
|
Axis |
Valid |
|
- |
BOOL |
|
BOOL |
- |
|
ENABLE |
Busy |
|
- |
BOOL |
|
MC_SOURCE |
- |
|
Source |
Error |
|
- |
BOOL |
|
|
|
|
|
ErrorID |
|
- |
L_IE1P_Error |
|
|
|
|
|
ConstantVelocity |
|
- |
BOOL |
|
|
|
|
|
Accelerating |
|
- |
BOOL |
|
|
|
|
|
Decelerating |
|
- |
BOOL |
|
|
|
|
|
DirectionPositive |
|
- |
BOOL |
|
|
|
|
|
DirectionNegative |
|
- |
BOOL |
|
|
|
|
|
InPosition |
|
- |
BOOL |
|
|
|
|
|
StandstillSetVelocity |
|
- |
BOOL |
|
|
|
|
|
StandstillActVelocity |
|
- |
BOOL |
|
|
|
|
|
|
|
|
|
Inputs
Outputs
|
Name Data type |
Value/meaning |
|
|---|---|---|
|
Valid BOOL |
TRUE |
Valid values are applied to the FB outputs. |
|
Busy BOOL |
TRUE |
Processing is running. |
|
Error BOOL |
TRUE |
An error has occurred. For details see ErrorID . |
|
ErrorID |
If Error = TRUE: Error number for the error that has occurred.
|
|
|
ConstantVelocity BOOL |
TRUE |
Axis traverses with constant velocity.
|
|
Accelerating BOOL |
TRUE |
Axis is accelerated. (Increase in the speed value.) |
|
Decelerating BOOL |
TRUE |
Axis is decelerated/braked. (Decrease in the speed value.) |
|
DirectionPositive BOOL |
TRUE |
Axis traverses in positive direction. |
|
DirectionNegative BOOL |
TRUE |
Axis traverses in negative direction. |
|
InPosition BOOL |
TRUE |
Drive in target, see "Target position reached" window (subindex 130 ) |
|
StandstillSetVelocity BOOL |
TRUE |
Setpoint speed = 0 |
|
StandstillActVelocity BOOL |
TRUE |
Actual speed within the window parameterised in subindex 132 . |
Motion axes (AXIS_REF)