SMC3_PersistPosition (FB)ΒΆ

FUNCTION_BLOCK SMC3_PersistPosition

This function block serves to persist the axis position of an axis with an absolute encoder.

This function block assumes that the encoder has a range from 0 to maxPersistedValue or from -maxPersistedValue/2 .. maxPersistedValue/2.

For persisting the position of a logical axis, see SMC3_PersistPositionLogical.

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

Reference to axis

PersistentData

SMC3_PersistPosition_Data

Reference to the data stored persistently.

Input

bEnable

BOOL

TRUE: Activates FB, else inactive.

maxPersistedValue

DWORD

16#FFFFFFFF

The range of the encoder. This is the maximum value returned from the encoder after it is turned on. (In case the encoder returns negative values, the range is assumed

from -maxPersistedValue/2 .. maxPersistedValue/2.

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

TRUE: Error has occurred within the function block.

eErrorID

SMC_ERROR

Error identification

eRestoringDiag

SMC3_PersistPositionDiag

SMC3_PersistPositionDiag.SMC3_PPD_RESTORING_OK

Diagnostic information about restoring