esrf

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

syncmot.mac
See other macros in category: Positioning
Description:
    Synchronized macro motor
Documentation:
    DESCRIPTION
    Macro for defining macro motors as a combination of an arbitrary number of real motors that need to be moved together like, for example, the height of a table.
    To define a motor that would perform synchronize movement on other motors you need to define a macro motor controller in config with macro prefix = syncmot
    Then define a motor on that controller and set as motor parameter in config the nbmotors value and as many mot-x- entries as necessary referring to real motors


    EXAMPLE
    In CONFIG file header:
       PSE_MAC_MOT      = syncmot 8
    
    Then define in the motor definition area:
      MOT011 = MAC_MOT:0/0  2000  1  2000  200   50  125    0 0x003     mhgt  Hht 
      MOTPAR:nbmotors = 3
      MOTPAR:mot1 = j1
      MOTPAR:mot2 = j2 
      MOTPAR:mot3 = j3
    


Macros:
Internal Macros:
    syncmot_config
    Usage: syncmot_config(mne,type,unit,module,chan)
    Used on spec config or reconfig

    syncmot_calc
    Usage: syncmot_calc(mne, mode)
    Used for reading macro motor position or calculating real motor displacements

Filename: syncmot.mac
Author: BLISS / ESRF 2007
Last mod.: 28/03/2014 15:53 by witsch