Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • If Df==-1 (position is negative closed position), then
    • Let Dr=Cs-N2, such that Dr is positive if the motor is slipping (missing steps while traveling in the negative direction)
    • If Df >= Dl (drift limit), then
      • Set Ud=1, indicating a drift limit violation in the negative positive direction
    • EndIf
  • EndIf
  • Return

...