12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

config file. Built-in code for the <strong>spec</strong>ialized CAMAC devices used for controllingmotors, clocks and scalers is accessed through commands such as mcount() ,tcount() and move_all . However, simple devices, such as input or output registers,can be accessed directly by the user. These modules are also assigned slot numbersin the config file. They are also given device numbers, starting at 0, that are used inthe following functions.ca_get(device, address) — The CAMAC module having device number device ,asset in the config file, is read using F=0and A=address with the 24-bit valueso obtained returned. Resets to command level if not configured for device .ca_put(x, device, address) — This function is similar to ca_get() above, exceptthe 24-bit value x is written using F=16. The actual number written isreturned, which is the 24-bit integer representation of x . Resets to commandlevel if not configured for device .ca_fna(f, n, a [, v ]) — Sends the arbitrary FNA command to the module in slotn . Ifthe dataway command given by f is a write function, the 24-bit value tobe written is contained in v . Ifthe dataway command given by f is a readcommand, the function returns the 24-bit value obtained from the module.The user should avoid issuing commands that would cause a LAM and shouldcertainly avoid issuing commands to slots that are being used for motor orcounter control by <strong>spec</strong>’s internal hardware code.ca_cntl(cmd, [, arg ]) — Performs the selected CAMAC crate command accordingto the parameter cmd ,asfollows:"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. Youshould probably issue a reconfig after sending a crate initialize or clear.GPIB (IEEE-488) Hardware FunctionsGPIB functions are available if the appropriate hardware and software drivers havebeen installed on the computer. Information in the config file describes the particularGPIB hardware in use. Refer to the Administrator ’s Guide for information on thesupported GPIB controllers and how to install the corresponding drivers.<strong>spec</strong> allows up to four GPIB controllers to be in use at once. The controller unitnumbers are set in the config file. For the functions below, there are two methods bywhich the unit number can be <strong>spec</strong>ified. If no unit number is <strong>spec</strong>ified, the default,unit 0, is used. The first method of addressing is of the form "unit:addr" where theINTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION REFERENCE MANUAL 95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!