Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
xbpmOxCy.mac | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
Set of macros to control and read the XBPM, using the Cyberstart/Oxford control unit (ICPLUS). The RS232 serial interface allows remote reading and programming of the controller. The serial line parameters are: - 8 bits; - no parity; - 1 stop bit; - 19200 bauds. SETUP The serial line cable is connected to a RocketPort serial line interface. A serial line device server, on top of which a linux device server XbpmOxCy should run. The macro calles the XbpmOxCy device server commands only. The serial line shouldnot be configured in SPEC! | ||||||
Macros:
Usage: oxbpm_setup [dev root raw] Setup the reading of the device dev in root counters mnemonic and raw counts reading (raw=1) or not (raw=0). There shoud be at least two counters defined in the spec - cx and cy (where c is the root mnemonic), for the X and Y position of the beam. If reading of the raw counts is chosen, than 5 more counters (c1, c2, c3, c4 and csum) shoud be configured. oxbpm_on Usage: oxbpm_on [nb] Add the reading of the nb XBPM (nb starts from 0) in the user_getcounts, according to the raw counts read or not. If no input parameter, all the configures XBPMs will be added. oxbpm_off Usage: oxbpm_off [nb] Remove the reading of the nb XBPM (nb starts from 0) from the user_getcounts. If no input parameter, all the configures XBPMs will be removed. oxbpm_getcnt Usage: oxbpm_getcnt (nb) Read the raw counts and the X and Y for the XBPM nb (nb starting from 0). X and Y are calculated as (i1-i2)/(i1+i2); (i3-i4)/(i3+i4) or (i1+i2-i3-i4)/(i1+i2+i3+i4); (i1-i2-i3+i4)/(i1+i2+i3+i4), depending on the device server setup, which reflects the cabling. oxbpm_getcounts Usage: oxbpm_getcounts (nb) Read the X and Y for the XBPM nb (nb starting from 0). X and Y are calculated as (i1-i2)/(i1+i2); (i3-i4)/(i3+i4) or (i1+i2-i3-i4)/(i1+i2+i3+i4); (i1-i2-i3+i4)/(i1+i2+i3+i4), depending on the device server setup, which reflects the cabling. | ||||||
Internal Macros: | ||||||
| ||||||
|