SMC_MeasureDistance (FB)

 

FUNCTION_BLOCK SMC_MeasureDistance

This function block may be employed on a rotary axis to measure the covered distance by regarding the wrap.

InOut:

Scope

Name

Type

Comment

Inout

Axis

AXIS_REF_SM3

Input

bExecute

BOOL

Output

fDistance

LREAL

bBusy

BOOL

Travelled distance since start of measurement.

bError

BOOL

TRUE: Execution of the function block has nor been finished yet.

nErrorID

SMC_ERROR

TRUE: Error has occurred within the function block.