esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

newfocusmotortype.mac
See other macros in category: Positioning
Description:
    Macros to select the motor type for NewFocus 8753
Documentation:
    DESCRIPTION
    Use this macro to set the motor type in a NewFocus picomotor controller type 8753. It can be "0" for Standard Picomotor; "1" for Tiny Picomotor.
    Commands are :
     Query Motor Type
                     Syntax TYP [<driver>] [<motor>]
     Argument Driver: A1 to A31
     Motor: 0, 1, or 2
     Response "0" for Standard Picomotor; "1" for Tiny Picomotor
     Example >typ a1 0
     0
     >
     Set Motor Type
                      Syntax TYP <driver> <motor>=<type>
     Argument Driver: A1 to A31
     Motor: 0, 1, or 2
     Type: 0 = Standard Picomotor, 1 = Tiny Picomotor
     Example Set motor 0 on driver A1 to Tiny motor type:
     >typ a1 0=1
     >
     When done issue a SAV command to retain the values across power cycles.
    
    SPEC commands to use (from http://www.certif.com/hardware/newfocus_8753.html):
    motor_par(motor, "send", cmd)
    Sends the string cmd to the New Focus channel associated with motor.
    motor_par(motor, "read", cmd)
    Sends the string cmd to the New Focus channel associated with motor , as above, and returns a string containing the response.


Macros:
    newfocusmotortype
    Usage: newfocusmotortype mne [type]
    Returns the motor type corresponding to the motor mnemonic mne. If type is given, sets the type to type.

Internal Macros:
Filename: newfocusmotortype.mac
Author: BLISS / ESRF
Last mod.: 12/08/2008 16:47 by rey