Versions Compared

Key

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

...

  • Signal state change to 33 (Burst close signal received)
  • Move (MA) to positive closed position (P1)
  • If error checking is enabled (Ec=1), check drift at previous, assumed positive negative closed position (call X8X9) (this is redundant here)
  • Hold until movement complete
  • Set Df=1 to indicate slits are at positive closed position
  • Copy current encoder count (C2) to shadow register Cs
  • Signal state change to 91 (Move to positive closed position complete)
  • Return

...

  • Signal state change to 40 (Fast Open Init)
  • Load fast open speeds
  • Calculate target position using drift of current position (X9)
  • Move (MA) to the open position (P0)
  • If error checking is enabled (Ec=1), check drift at previous, assumed positive closed position (call X8)
  • Hold until movement complete
  • Set Df=0 to indicate that slits are in open position
  • Signal state change to 41 (Fast open complete)
  • Goto mode select

...

  • Signal state change to 50 (Fast close init)
  • Load fast close speedsCalculate target position using drift of current position (X9)
  • If neither at position P1 (positive closed) nor at position P2 (negative closed), then
    • Move (MA) to the positive closed position (P1)
    • If error checking is enabled (Ec=1), check drift at previous, assumed negative closed position (call X8)
    • Hold until movement complete
    • Set Df=1 to indicate that slits are in positive closed position
    • Copy current encoder count to Cs for future drift checks
  • EndIf
  • Signal state change to 51 (Fast close complete)
  • Goto mode select

...