esrf

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

SDLIN.MAC
See other macros in category: All
Description:
    Sodilec bos/s sdlin power supply.
Documentation:
    DESCRIPTION
    Those macros deal with the Sodilec BOS/S power supply basic remote control and feature also its output control as a pseudo motor.

    SETUP
    RS232 (9600 Baud) or GPIB.

    WARNING
    Tue 26 Jun 2012 17:27:10
    ID26 was Unable to use GPIB INTERFACE of sodilec power supply of the pool/id15 USE rs232...

    SETUP
    sdsetup "RS232" "0" 0.3 "CURRENT" 0 10

    DEPENDENCIES
      - The file sdlin.mac has to be read in
        this file needs: menu.mac
    


Macros:
    sdsetup
    Usage: sdsetup [interface] [address] [sleep_time] [control] [min] [max]
    Device setup and software initialisation:
     - interface : "RS232" or "GPIB";
     - address   : If RS232, it is in fact the serial line number from config.
     - sleep time: time waited after a command is sent to the controller.
     - control   : either "CURRENT" or "VOLTAGE".
     - min, max  : Limits are in percentage of DAC output full scale.
    
    The controller is put into remote control. Default is RS232 and CURRENT control.

    sdinit
    Usage: sdinit
    Turns the controller into remote and current/voltage control (default is current), and reads in the firmware version.

    sdlim
    Usage: sdlim
    Changes output limits, in percentage of full scale.

    sdunsetup
    Usage: sdunsetup
    Removes sdlin software from SPEC memory.

    sdoff
    Usage: sdoff
    Disconnects sdlin control from the standard macros.

    sdon
    Usage: sdon
    Connect sdlin control to the standard macros .(ct, scans...)

    sdflush
    Usage: sdflush
    Empties RS232 line.

    sdpseudodef
    Usage: sdpseudodef [mnemonic]
    Sets power supply output as a pseudo motor.

    sdset
    Usage: sdset <setpoint>
    Sets power supply output setpoint.

    sdlocal
    Usage: sdlocal
    Turns the controller into local control.

    sdremot
    Usage: sdremot
    Turns the controller into remote control.

    sdvoltcont
    Usage: sdvoltcont
    Turns the controller into voltage control.

    sdcurrcont
    Usage: sdcurrcont
    Turns the controller into current control.

    sdmeasvolt
    Usage: sdmeasvolt
    Reads in measured output voltage.

    sdmeascurr
    Usage: sdmeascurr
    Reads in measured output current.

    sdlin_debug
    Usage: sdlin_debug [<debug_level>]
    Activates or desactivates the printing of debug messages.

Internal Macros:
    sdsetup_menu
    Usage: sdsetup_menu
    Setup menu.

    sd_io
    Usage: sd_io (<command>)
    Sends <command> to the controller and eventually reads back its response.

    sd_put
    Usage: sd_put (address,command)
    Sends command to the controller.

    sd_get
    Usage: sd_get (address)
    Reads back response from the controller.

    sd_mvsetpt
    Usage: sd_mvsetpt <mnemonic> <polarity_care>
    Hooked to standard move_em. Changes power supply output setpoint. If polarity_care flag is 0, changes only the output magnitude.

    sd_getfield
    Usage: sd_getfield <mnemonic> <polarity_care>
    Hooked to standard get_angles. Reads in power supply output. If polarity_care flag is 0, reads only the output magnitude.

    sd_wait
    Usage: sd_wait <mnemonic> <polarity_care>
    Hooked to standard move_poll. Waits for the power supply output to reach the setpoint. If polarity_care flag is 0, checks only the output magnitude.

    sdlin_msg
    Usage: sdlin_msg (<msg>)
    Prints a message in green.

    sdlin_dbg
    Usage: sdlin_dbg (<debug_msg>, <level>)
    Prints a debug message if debug level is activated.

    sdlin_err
    Usage: sdlin_err (<err_msg>)


Filename: sdlin.mac
Author: SDLIN.MAC - Jeroen GOEDKOOP - Marie-Claire LAGIER - 96/9/10
Last mod.: 03/07/2012 11:52 by guilloud