SMC3_PersistPosition (FB)

 

FUNCTION_BLOCK SMC3_PersistPosition

This function block serves to persist the axis position of a multi-turn absolute encoder with real axis.

This function block assumes that the multi-turn encoder has a range of 2^32. For multi-turn encoders with a smaller range, please use SMC3_PersistPositionSingleturn.

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

PersistentData

SMC3_PersistPosition_Data

Input

bEnable

BOOL

FALSE

TRUE: Acrivates FB, else inactive.

Output

bPositionRestored

BOOL

TRUE: The position has been restored during the last start-up of the axis.

bPositionStored

BOOL

TRUE: The position has been stored during the last call.

bBusy

BOOL

TRUE: FB is not idle.

bError

BOOL

FALSE

TRUE: Error has occured within the function block.

eErrorID

SMC_ERROR

SMC_NO_ERROR

Error identification

eRestoringDiag

SMC3_PersistPositionDiag

SMC3_PersistPositionDiag.SMC3_PPD_RESTORING_OK

Diagnostic information about restoring