esrf

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

OT302.MAC
See other macros in category: Positioning Detection BPM
Description:
    Macros to control the ON-TRAK (OT-302D) module
Documentation:
    DESCRIPTION
    The is the OT302 display module for the ON-TRAK position sensig amplifiers. The later provide an X-Y (normalised) position and SUM output from different position detectors.

    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 ...) The parameters of the RS232 serial line are:
    - 8 bits
    - no parity
    - 1 stop bit
    - 9600 bauds

Macros:
    ot_on
    Usage: ot_on
    Activates the OT-302D: executes the setup sequence (_ot_setup macro), adds the reading of the possition into the counters reading (ct) only if ot_x counter defined

    ot_off
    Usage: ot_off
    removes all the macros and definitions for the OT-302D

    ot_setup
    Usage: ot_setup <serial line number (i.e. 0), <unit number>>
    Establish the communication with the module. The input parameter is the ordinal number of the serial line device (starting from 0), as assigned in the config file and the unit number connected to the module. Default unit number is 1.

    ot_read
    Usage: ot_read()
    Read the position (X,Y) [mm] and the SUM gain calibration [V].

Internal Macros:
    _ot_setup
    Usage: _ot_setup (ser_line)
    Sets the Module in mm, no echo, fast averaging, default unit number

    _ot_read
    Usage: _ot_read(unit, ot_data)
    Read the position (X,Y) [mm]. Return 0 if success, -1 if error

Filename: ot302.mac
Author: A.Beteva
$Revision: 1.2 $, $Date: 2008/08/12 15:27:02 $
Last mod.: 12/08/2008 17:27 by rey