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

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

ENABLE

BOOL

TRUE

Read current state information of the axis continuously.

Source

MC_SOURCE

Source of relevant data:

  • mcSetValue: Setpoint
  • mcActualValue: Current value
  • mcCommandedValue: Commanded value
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

L_IE1P_Error

If Error = TRUE: Error number for the error that has occurred.

ConstantVelocity

BOOL

TRUE

Axis traverses with constant velocity.

  • If the speed is constantly 0.0, this output is FALSE.

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 .