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
Axis
PersistentData
SMC3_PersistPositionSingleturn_Data
Input
bEnable
BOOL
TRUE
: Activates FB, else inactive.usiNumberOfAbsoluteBits
USINT
16
Number of bits that are persistent (absolute encoded) [1..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
TRUE
: Error has occurred within the function block.eErrorID
SMC_ERROR
Error identification
eRestoringDiag
SMC3_PersistPositionDiag.SMC3_PPD_RESTORING_OK
Diagnostic information about restoring