Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
NHQ204M.mac | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Other hardware | ||||||
Description:
| ||||||
Documentation:
The following set of macros allow the user to interrogate the state, read and change the voltage setting on an NHQ204M high voltage powersupply. 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 RS232 serial line parameters are: - 8 bits - no parity - 1 stop bit - 9600 bauds | ||||||
Macros:
Usage: nhq204m_setup [serial line] [channel] setup NHQ204M channel (1/2) and serial_line. The serial line parameter is the ordinal number of the serial line device (starting from 0), as assigned in the config file nhq204m_status Usage: nhq204m_status Print Status, Voltage, Ramp of NHQ204M nhq204m_set Usage: nhq204m_set [voltage] Set voltage of NHQ204M nhq204m_ramp Usage: nhq204m_ramp [ramp] Set ramp speed of NHQ204M nhq204m_on Usage: nhq204m_on [c/m/b] Defines the nhq204m as pseudo c(ounter), pseudo m(otor) or b(oth) Pseudo names are: nhqps_c for counter, nhqps_m for motor nhq204m_off Usage: nhq204m_off Undefines pseudo counter/motor for nhq204m | ||||||
Internal Macros: | ||||||
Usage: _nhq204m_write (str) Write string charcater by character to NHQ204M serial line _nhq204m_state Usage: _nhq204m_state () Return state of NHQ204M _nhq204m_set Usage: _nhq204m_set (voltage) Set voltage of NHQ204M _nhq204m_get Usage: _nhq204m_get () Return voltage of NHQ204M _nhq204m_set_ramp Usage: _nhq204m_set_ramp (ramp) Set ramp speed of NHQ204M _nhq204m_get_ramp Usage: _nhq204m_get_ramp () Get ramp speed of NHQ204M | ||||||
|