|
Support for additional controllers and modules can be added
as needed.
BUILT-IN FUNCTIONS
ca_get(i,
a) - Returns the 24-bit value read
(using F = 0) from the
i-th
(i = 0, 1, ... ) CAMAC I/O device (from the
config file) using subaddress a.
ca_put(x, i,
a) - Writes the 24-bit value
x (using F = 16) to the
i-th (i = 0, 1, ... )
CAMAC I/O device (from the config file) using subaddress
a. Returns the value written.
ca_fna(f, n,
a [, v]) - Sends
the arbitrary FNA command to the module in slot
n. If the dataway command given by
f is a write function, the 24-bit value to be
written is contained in v. If the dataway
command given by f is a read command, the
function returns the 24-bit value obtained from the module. The
user should avoid issuing commands that would cause a LAM and
should certainly avoid issuing commands to slots that are being
used for motor or counter control by spec's
internal hardware code.
ca_cntl(cmd [,
arg]) - Performs the selected CAMAC
crate command according to the parameter
cmd,
as follows:
"Z" or "init" - performs a
crate initialize (reset).
"C" or "clear" - performs a
crate clear.
"inhibit" - set crate inhibit if
arg is 1 and clears crate inhibit if
arg is 0.
During normal operation, you should not need to issue
these commands. You should probably issue a
reconfig after sending a crate initialize or clear.
MULTIPLE CRATE CONTROLLERS
As of spec release 5.06.02-1, up to four
CAMAC crate controllers can be configured at a time. Currently,
use of more than one instance of a particular controller is
supported only for the Jorway 73A, the KS-3929 and the DSP 6001
controller models. Otherwise, only only one instance of a
particular type or model of a controller can be used at a time.
Also, the only CAMAC modules that currently can be installed
in other than the first crate (crate 0) are the E250, KS-3655,
KS-3610, KS-3112, KS-3116, KS-3195, QS-450, RTC-018 and XIA
DXP-4C/4C2X MCA modules.
In addition, the user-level functions ca_get(),
ca_put(), ca_fna() and
ca_cntl() currently only work with the first crate.
The multiple crate support will be extended for multiple
identical controllers, additional modules and to the user-level
functions in the future as needed.
To configure additional controllers from the edconf
configuration editor (invoked by the config macro),
use ^F or ^B on the CAMAC entry of the
Interfaces screen.
To configure modules in the additional crates, type
C from the CAMAC crate screen to cycle through the
crates associated with each controller.
For scaler modules installed in other than the first CAMAC
crate, the crate number must be entered in the same field as the
unit number on the Scaler screen of the configuration
editor using the crate/unit notation, as in 1/0 for crate 1, unit
For motor modules installed in other than the first CAMAC
crate, the crate number is entered as [crate/]unit/channel in the
unit/[module/]channel field of the motor screen.
If only one crate is configured, the config file
syntax is the same as before. When multiple crates are
configured, additional information specifying crate number for
each module and controller is added to the config file.
... Meeting the software needs of scientists since 1985 ...
Last Formatted Feb 1, 2008
Last Updated 04/21/05
Send comments, queries, suggestions to
info@certif.com
© 1995-2003 Certified Scientific Software. All rights reserved
|