Skip to content

Stack Motor

A Stackmotor consists in a pair of motors mounted on top of each other.

- one motor with a large stroke (fast but not very precise)
- and one with a short stroke (slow but very precise).

A StackMotor can be (de)activated with stack_on & stack_off

- when inactive only the large motor will move when moving the stack
- when active, the small motor will make the move if it stays within its limits,
  otherwise small motor is moved to its middle position and the large motor makes the move.

Config example

controller:
  - module: stackmotor
    class: StackMotor
    axes:
      # large stroke motor
      - name: $m1
        tags: real mls

      # small stroke motor
      - name: $m2
        tags: real mss
        # low and high limits
        low_limit: -1
        high_limit: 1
        # absolute limits:
        #   if False, limits are calculated from the current position when stack is enabled
        #   at startup stack is enabled
        absolute_limits: False

      - name: mstack
        tags: stack
        unit: mrad