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
AxisReference to axis
PersistentDataReference to the data stored persistently.
Input
bEnableBOOLTRUE: Activates FB, else inactive.maxPersistedValueDWORD16#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
bPositionRestoredBOOLTRUE: The position has been restored during the last start-up of the axis.bPositionStoredBOOLTRUE: The position has been stored during the last call.bBusyBOOLTRUE: FB is not idle.bErrorBOOLTRUE: Error has occurred within the function block.eErrorIDSMC_ERRORError identification
eRestoringDiagSMC3_PersistPositionDiag.SMC3_PPD_RESTORING_OK
Diagnostic information about restoring