
7–2 Calibrating Your Incremental Encoder Module
&%! ( '
Calibration Method 1
Calibration is enabled by the flag CalEnable, which is enabled by the
control system. The preset value is copied to the counter register at a
positive edge on input Z. The old counter register value is saved in
the store register for evalution.
Calibration direction is determined by CalDirection (0 = positive
direction, 1 = negative direction).
Reset Calibrated, Stored and PresetReached after calibration with
CalReset, StoreReset and PresetReset.
!& %# $%#
% $%#
!& %# $%#
!
#$% $%#
PresetReached = 1
Stored = 1
CalEnable = 1
CalDirection = #%!
! % %$% !& % "&$
Calibrated = 0
StoreControl = 0
Stored = 0
Calibrated = 1
!
Commentaires sur ces manuels