esrf

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

etelmac.mac
See other macros in category: All
Description:
Documentation:
    DESCRIPTION
    set of macros for the management of Maxe-like motors (the spec MAXE controller), but with new commands (not in the original MAXE server) to read position, move to a target and set position. With these new commands (DevSetValue, RevReadValue, DevLoatMot, the arguments are provided in 'double' instead of 'float'
    BE CAREFULL: WITH THIS NEW MAXE SERVER, IT HAS NOT BEEN POSSIBLE TO KEEP THE DEVSTORE COMMAND AS BEFORE. IT TAKES NOW AN ARRAY OF 2 DOUBLE [axis,offet] INSTEAD OF DEVMOTORFLOAT.
    THE CONSEQUENCE IS TO CHANGE THE HOME_ETEL COMMAND WHICH CALLS DEVSTORE
    Configuration for the macro controllers

             MOTORS  DEVICE       ADDR  <>MODE   NUM                <>TYPE
                YES   etelmac     idxx/maxe/1      5           Macro Motor
                YES   etelmac     idxx/maxe/2      3           Macro Motor
    ...

Macros:
    etelmac_debug
    Usage: etelmac_debug
    toggle the debug mode if (!(whatis("__etelmac_debug") & 2)) rdef __etelmac_debug \'#$*\'

Internal Macros:
    etelmac_config
    Usage: etelmac_config(num,cmd,p1,p2,p3)
    MACRO MOTOR: Called by spec after reading the config file

    etelmac_par
    Usage: etelmac_par(num,key,todo,p1)
    MACRO MOTOR: Called by spec after reading the config file, after calling _config() and only if parameters are set in the config file for a motor.

    etelmac_cmd
    Usage: etelmac_cmd(num,key,p1,p2)
    MACRO MOTOR: Called by spec on motor operation. It manages:

    - position
    - start_one
    - get_status
    - abort_one
    - slew_rate
    - base_rate
    - acceleration
    - search
    - home_slew_rate
    - set_position

Filename: etelmac.mac
Author: MCD
$Revision: 1.1 $ / $Date: 2013/01/25 10:18:13 $
Last mod.: 25/01/2013 11:18 by domingue