SMC3_PersistPositionSingleturn (FB)ΒΆ
FUNCTION_BLOCK SMC3_PersistPositionSingleturn
This function block serves to persist the axis position of an absolute encoder that has a limited range.
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.
For a more general function block, see SMC3_PersistPosition, which allows encoder ranges that are not a power of two (in bus increments).
- InOut:
Scope
Name
Type
Initial
Comment
Inout
AxisPersistentDataSMC3_PersistPositionSingleturn_DataInput
bEnableBOOLTRUE: Activates FB, else inactive.usiNumberOfAbsoluteBitsUSINT16
Number of bits that are persistent (absolute encoded) [1..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.bErrorBOOLTRUE: Error has occurred within the function block.eErrorIDSMC_ERRORError identification
eRestoringDiagSMC3_PersistPositionDiag.SMC3_PPD_RESTORING_OK
Diagnostic information about restoring