esrf

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

See other macros in category: All
Description:
    ID32SY127.MAC
Documentation:
    DESCRIPTION
    This file contains all macros for controlling the CAEN High Voltage multichannel supply (model SY127) through an RS232 serial line The serial line can be handled by a OS9 device server and a VME IBAM board. parameters for serial line : 9600b ; 7 bits; no parity.

    These macros have been tested with 20 channels installed on a SY127 controller.

    Last Modifications :
    TODO : change for a macro motors.
    08/12/98 (MP) Initial Revision global SY127_DBG global SY127_SERDEV global SY127_CH global SY127_TO_OLD global SY127_LIST global SY127_ON global SL_RAW global SL_LINE global ESRF_ERR_MSG ##################################################################### ############################# ############################## ############################# CONFIG ############################## ############################# ############################## #####################################################################

Macros:
    sy127_setup
    Usage: sy127_setup <serial_ds_name>
    Must always be called in the setup of the SPEC session.

    sy127_unsetup
    Usage: sy127_unsetup
    Removes cdefs and globals.

    sy127_hvadd
    Usage: sy127_hvadd <mnemonic> <channel> <parameter>
    Add the definition of a SY127 channel as a pseudomotor mnemonic and select the parameter that will be changed.

    sy127_hvon
    Usage: sy127_hvon <mnemonic>
    Switch ON the channel associated with the HV pseudomotor mnemonic

    sy127_hvoff
    Usage: sy127_hvoff <mnemonic>
    Switch OFF the channel associated with the HV pseudomotor mnemonic

    sy127_hvshow
    Usage: sy127_hvshow
    Shows, for all the HV pseudomotors defined, the status of their associated channels.

    sy127_readall
    Usage: sy127_readall
    Read for all the channels available all their parameters.

    sy127_read
    Usage: sy127_read channel parameter
    Read for the specified channel the parameter specified.

    sy127_write
    Usage: sy127_write <channel> <parameter> <value>
    Set for the specified channel, the specified parameter with the value given.

Internal Macros:
    sy127_hvonoff
    Usage: sy127_hvonoff on|off mnemonic
    Switch ON or OFF the channel associated with the HV pseudomotor mnemonic.

    sy127_on
    Usage: sy127_on
    Activate use of SY127 HV channel pseudomotors.

    sy127_off
    Usage: sy127_off
    Desactivate use of SY127 HV channel pseudomotors.

    sy127_body
    Usage: sy127_body(mode)
    Called by blmenu.

    sy127_prescan_head
    Usage: sy127_prescan_head
    Called once at the begining of any scan to check if HV has been enabled.

    sy127_checkall
    Usage: sy127_checkall mnemonic


    sy127_getpangles
    Usage: sy127_getpangles mnemonic


    sy127_flush
    Usage: sy127_flush


    sy127_talk
    Usage: sy127_talk
    Used to communicate directly with the SY127 and its menus.

    sy127_readline
    Usage: sy127_readline()
    Read from serialline a single line but with error checking.

    sy127_readline2
    Usage: sy127_readline2()
    Read from serialline a single line but without error checking

    sy127_findinline
    Usage: sy127_findinline string_to_find


    sy127_read_f
    Usage: sy127_read_f(ch, param_name)


    sy127_write_f
    Usage: sy127_write_f(ch, param_name, var)


Filename: sy127.mac
Author:
Last mod.: 24/10/2012 14:15 by guilloud