SMC3_PersistPositionSingleturn (FB)

 

FUNCTION_BLOCK SMC3_PersistPositionSingleturn

This functionblock serves to persist the axis position of an absolute encoder that has a limited range with a real axis.

Strictly speaking, this function block is not only for single-turn encoders but also for multi-turn encoders where the range of the encoder is a power of two and less than 2^32.

Both encoders with a range -2^k .. 2^k - 1 and a range 0 .. 2^(k+1) are supported.

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

PersistentData

SMC3_PersistPositionSingleturn_Data

Input

bEnable

BOOL

FALSE

TRUE: Acrivates FB, else inactive.

usiNumberOfAbsoluteBits

USINT

16

Number of bits that are presistent (absolute encoded) [8..32].

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: Èrror has occured within the function bloc.k

eErrorID

SMC_ERROR

SMC_NO_ERROR

Error identification

eRestoringDiag

SMC3_PersistPositionDiag

SMC3_PersistPositionDiag.SMC3_PPD_RESTORING_OK

Diagnostic information about restoring