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
AxisPersistentDataInput
bEnableBOOLFALSE
TRUE: Acrivates FB, else inactive.usiNumberOfAbsoluteBitsUSINT16
Number of bits that are presistent (absolute encoded) [8..32].
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.bErrorBOOLFALSE
TRUE: Èrror has occured within the function bloc.keErrorIDSMC_ERRORSMC_NO_ERROR
Error identification
eRestoringDiagSMC3_PersistPositionDiag.SMC3_PPD_RESTORING_OK
Diagnostic information about restoring