esrf

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

REGLO.MAC
See other macros in category: All
Description:
    Macros to control REGLO Digital TUBING PUMP
Documentation:
    OVERVIEW
    This macro set allows to control the REGLO tubing pump in \"Pump flow rate\" mode only.
    Only one pump can be driven at a time.

    EXAMPLE
    reglosetup 0 4
    Configures a reglo pump unit connected to the spec serial line #0 and having an address #4 (to be set on the controller)
    reglostart + 0.2
    Start the pump in clockwise direction with a flow rate of 0.2 ml/min.
    reglostop
    Stop the pump


Macros:
    reglosetup
    Usage: reglosetup <serline> <address>
    Configure the REGLO pump unit connected to <serline> with address <address>
    The serial line has to be configured as raw, 9600 baud.
    The address has to be set on the controller. Turn the unit off, press settings button while powering on. Go to \"addr\", and set/read desired address.
    On setup, the pump is set to \"PUMP FLOW RATE\" mode, and direction set \"clockwise\"

    reglostart
    Usage: reglostart [<direction>] [<flowrate>]
    Start the pump.
    if direction is specified by + or -, set it before starting.
    if flowrate is also specified (in ml/min), set it before starting.

    reglostop
    Usage: reglostop
    Stop the pump

    reglostatus
    Usage: reglostatus
    Print out current status (running state, flow rate, direction)

    reglodirection
    Usage: reglodirection <+ or ->
    Set pump direction:
    + : clockwise direction
    - : counter-clockwise direction

    reglorate
    Usage: reglorate
    Set flow rate in ml/min if rate is specified, or print out current flow rate.

Internal Macros:
    _reglo_setrate
    Usage: _reglo_setrate(flow)


    _reglo_getmaxrate
    Usage: _reglo_getmaxrate()


    _reglo_io
    Usage: _reglo_io(par)


    _reglo_serput
    Usage: _reglo_serput(cmd)


    _reglo_command
    Usage: _reglo_command(cmd)


Filename: reglo.mac
Author: EP, BLISS $Revision: 1.1 $ / $Date: 2008/12/17 10:28:50 $
Last mod.: 17/12/2008 11:29 by papillon