esrf

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

MKS_PR4000.MAC
See other macros in category: All
Description:
    Macros for controlling MKS PR4000 dual channel power supply and readout for flow and pressure. The communication is done through a serial line that has to configured in SPEC config first. Currently multi controllers are not supported. constant MKS_EOC "\r" global MKS_SL
Documentation:
Macros:
    mks_setup
    Usage: mks_setup serial_line
    Select the SPEC serial line to use.

    mks_remoteon
    Usage: mks_remoteon
    Switch on remote control, disable controller front panel

    mks_remoteoff
    Usage: mks_remoteoff
    Switch off remote control, enable controller front panel

    mks_setpoint
    Usage: mks_setpoint channel [value]
    Change the setpoint on the given channel

    mks_read
    Usage: mks_read channel
    Print the current flow rate on the given channel

    mks_wait
    Usage: mks_wait channel
    Wait until the current flow rate is at least 90% of the setpoint WARNING: no timeout, use <cltr-c>

    mks_valveclose
    Usage: mks_valveclose channel
    Close the valve on the given channel

    mks_valveopen
    Usage: mks_valveopen channel
    Open the valve on the given channel

    mks_valve
    Usage: mks_valve channel [OPEN|CLOSE]
    Control the valve on the given channel

Internal Macros:
    _mks_remote
    Usage: _mks_remote (action)
    Switch remote control on or off, depending if action given is 1 or 0. Can be called without any action. Returns non null if remote control is on

    _mks_setpoint
    Usage: _mks_setpoint (channel, value)
    Change the setpoint on the given channel. Can be called without any value. Returns the current setpoint.

    _mks_read
    Usage: _mks_read (channel)
    Returns the current flow rate on the given channel.

    _mks_wait
    Usage: _mks_wait (channel)
    Returns the current flow rate on the given channel.

    _mks_valve
    Usage: _mks_valve (channel, action)
    Change the valve state on the given channel. Can be called without any action. Returns non null if the valve is open.

    _mks_checkchannel
    Usage: _mks_checkchannel (channel)


    _mks_cmd
    Usage: _mks_cmd (cmd)
    Send the given command to the controller and returns its answer or ".error."

    mks_sp_config
    Usage: mks_sp_config(num,type,p1,p2,p3)
    MACRO COUNTER: Called by spec after reading the config file

    mks_sp_cmd
    Usage: mks_sp_cmd(num,key,p1,p2)
    MACRO COUNTER: Called by spec on counter operation.

    mks_read_config
    Usage: mks_read_config(num,type,p1,p2,p3)
    MACRO COUNTER: Called by spec after reading the config file

    mks_read_cmd
    Usage: mks_read_cmd(num,key,p1,p2)
    MACRO COUNTER: Called by spec on counter operation.

Filename: mks_pr4000.mac
Author: MP BLISS (Original Apr/2015).
$Revision: 1.1 $ / $Date: 2015/06/02 05:25:21 $
Last mod.: 02/06/2015 07:25 by perez