Home > EZStepper software in MATLAB > Class FocusDrive

EZStepper: Software in MATLAB for Controlling Motorized Devices Based on EZStepper Motor Controllers

 

Class FocusDrive

FocusDrive.m (handle class)
    Properties:
        PortObj
        ControllerType
        ControllerName
        StrokePerRotation
        MotorSteps
        WithLimits
        HoldCurrent
        RunCurrent
        StepDivide
        SlewVelocity
        InitVelocity
        Ramp
        Log
        LastErr
    Methods:
        ZRelative         - Relative move; travel in microns
        ZAbsolute         - Absolute move; destination in microns
        ZJog              - Jog at given speed in microns/sec
        ZHome             - Start moving home at given speed; do not wait for completion
        ZHomeComplete     - Home and wait for completion
        ZWait             - Wait for completion of motion
        ZOrigin           - Set position to the given value (in microns), or to 0
        ZPos              - Return current position in microns
        ZExecute          - Execute command string in controller (e.g., "gP10240J1M100J0M100G5R" will repeat 5 times: move Z by 10240 microsteps, set digital output to snap an image)
        ZOut              - Digital output
        ZToLimit          - Move until any limit turns on; return the limit that was hit; sign of speed determines direction