esrf

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

WIKA.MAC
See other macros in category: All
Description:
    %B%wika.mac%B% - macros to control the WIKA Pressure Indicator
Documentation:
    DESCRIPTION
    The RS232 serial interface allows remote reading and programming the Pressure Indicator. The parameters of the serial line are:
    - 8 bits
    - no parity
    - 1 stop bit
    - 9600 bauds


    SETUP
    The serial line cable is connected to the serial line interface card COMU 2000 (COMU 30), known as IBAM. A "device server" called SerialLine should be running in the VME crate, where the IBAM is. The configuration of the "server" can be found in a the resource file xxxSerilaLine.res, where xxx is the name of the crate (i.e. d291, id011 ...)

Macros:
    wika_setup
    Usage: wika_setup <serial line number (i.e. 0) counter_mnemonic>
    Establishes the communication with the Indicator. The input parameter is the ordinal number of the serial line device (starting from 0), as assigned in the config file. The counter_mnemonic is needed for the reading during a count.

    wika_on
    Usage: wika_on
    Configure the reading of the pessure into the counters reading.

    wika_off
    Usage: wika_off
    removes all the macros and definitions for the WIKA Pressure Indicator

    wika_read
    Usage: wika_read
    Reads the pressure [bars]

    wika_read_min
    Usage: wika_read_min
    Reads the minimum pressure [bars]

    wika_read_max
    Usage: wika_read_max
    Reads the maximum pressure [bars]

    wika_set_limit_down
    Usage: wika_set_limit_down [setpoint offset]
    puts pressure limits [bars] when the setpoint is lower than the current pressure
    1E.........1A.........SP.........2A.........2E
    |<-offset->|<-offset->|<-offset->|<-offset->|

    wika_set_limit_up
    Usage: wika_set_limit_up [setpoint offset]
    puts pressure limits [bars] when the setpoint is higher than the current pressure
    1E.........1A.........SP.........2A.........2E
    |<-offset->|<-offset->|<-offset->|<-offset->|

Internal Macros:
    _wika_read
    Usage: _wika_read ()
    Generic read information from the controller. Return the value or -10000 if read error

    _wika_check_limits
    Usage: _wika_check_limits (val1,val2)
    Checks the set limit macros input values.

    _check_sl
    Usage: _check_sl ()
    Check if the serial line is configured (return 0) or not (return -1).

    _format_string
    Usage: _format_string (val)
    Format a string.

Filename: wika.mac
Author: A.Beteva
$Revision: 1.4 $, $Date: 2002/11/06 15:01:14 $
Last mod.: 18/11/2002 14:44 by beteva