esrf

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

See other macros in category: All
Description:
    PM.MAC - Macros to control a pico motor (New Focus, Inc) by RS232 or GPIB
Documentation:
    DESCRIPTION
    This macro file allows to define pico motor as pseudo-motors in SPEC. As this is implemented on the macro level not all commands will work.

    EXAMPLE
    mv pm1 50
    Send 50*(nbsetp/mm) steps to the pico motor controller according to the parameter set in the SPEC configuration
    ascan pm1 0 10 10 1
    (scan pm1 from 0 to 10 in 10 steps and count for 1 second)
    a2scan pm1 0 20 opti -5 5 10 1
    (scan the optical table stepper motor from -5 to 5 degrees and scan at the same time the pm1 from 0 to 20 micr.)


    DEPENDENCIES
    To use a pico motor the following conditions have to be fulfilled:
    • The file pm.mac has to be read in done by: startup s. (this file needs: pseudo.mac , stchanges.mac)
    • the pico motors have to be configured done by: SPECADM (Controller NONE, mnemonic as in startupscript)
    • setup the pico motors (with pmsetup ) done by: startup s.


Macros:
    pmadd
    Usage: pmadd pm-device pm-mnemonic pm-slot pm-connector pm-channel
    Add definitions for a pico motor pseudomotor

    pmdel
    Usage: pmdel (pm-mnemonic)
    Delete definitions for one PICO MOTOR mnemonic

    pmreset
    Usage: pmreset


    pmoff
    Usage: pmoff
    Deactivates definitions for pico motors pseudomotors.

Internal Macros:
    pm_add
    Usage: pm_add (pm-mnemonic, pm-device)
    Add definitions for a pico motor pseudomotor

    pmunsetup
    Usage: pmunsetup


    pmshow
    Usage: pmshow
    Shows current Pico pseudomotors definition.

    pmon
    Usage: pmon
    Activates definitions for pico motor pseudomotors.

    pmread
    Usage: pmread


    pmstop
    Usage: pmstop
    Stop all configured pico motors

    pmmove
    Usage: pmmove


    pmgetangles
    Usage: pmgetangles


    pmset
    Usage: pmset
    Set New position value to a pico motor

    pm_send
    Usage: pm_send(nmot, com)
    Send command to pico controller

    pm_get
    Usage: pm_get(nmot)
    Get answer from pico controller

Filename: picomotor.mac
Author:
Last mod.: 08/08/2002 14:37 by berruyer