L_MC1P_MeasureDistance

This FB outputs the covered distance since the start of execution. The FB can also be used at a rotary axis (the Modulo return is taken into account).

 

 

 

L_MC1P_MeasureDistancetrn

 

 

 

AXIS_REF

-

Axis

xValid

-

BOOL

BOOL

-

xEnable

xBusy

-

BOOL

MC_SOURCE

-

eMC_Source

xError

-

BOOL

eErrorID

-

L_IE1P_Error

lrDistance

-

LREAL

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

xEnable

BOOL

TRUE

Start execution of the function block.

eMC_Source

MC_SOURCE

Source of relevant data:

  • mcSetValue: Setpoint
  • mcActualValue: Current value

Other options of MC_SOURCE are not supported.

Acceptance of this input with a False/True edge at xEnable .

Outputs

Name

Data type

Value/meaning

xValid

BOOL

TRUE

Valid values are applied to the FB outputs.

xBusy

BOOL

TRUE

Processing is running.

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

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

lrDistance

LREAL

Covered distance since the start of measurement ( xEnable = TRUE)