Converted from .HLP to .HTML by HLPTOHTML.

cfi .HLP

MENU

The MENU command outputs the menu of the CAMAC subroutine. A summary of the commands is listed below.

<ul> <li> EXIT Return to CFIMENU main menu <li> LOOP Loop on next command <li> HELP Accesses this help file <li> CRATE User enters value of crate to become default </ul>

Crate controller operations: <ul> <li> Z_CRATE CAMAC Z <li> C_CRATE CAMAC C <li> SET_INH Set Inhibit <li> CLR_INH Clear inhibit <li> TST_INH Test inhibit <li> EN_DEM Enable crate demand <li> DI_DEM Disable crate demand <li> TST_DEM_EN Test if crate demand enabled <li> TST_DEM_PR Test if crate demand is present <li> LOAD_ST Load CAMAC station no. register <li> RD_GR_LAM Read graded LAM </ul>

Operations accessing branch driver CSR0: <ul> <li> READ_CSR0 Read value of CSR 0 of branch driver <li> X_RESET Disable SS=7 on no X response <li> X_SET Enable SS=7 on no X response </ul>

Data control: <ul> <li> DIS_BLK_OUT Disable display of block transfer data <li> EN_BLK_OUT Enable display of block transfer data (default) <li> DEC_DATA Change base of data display to decimal (default) <li> OCT_DATA Change base of data display to octal <li> HEX_DATA Change base of data display to hexadecimal <li> DIS_DIRECT Disable direct data transfer through CFI <li> EN_DIRECT Enable direct data transfer through CFI (default) </ul> Single word transfer operations: <ul> <li> CNAF Camac operation - user enters C,N,A,F </ul> Block transfer operations: <ul> <li> Q_STOP_BLOCK Block transfer operation terminated on no Q response <li> UNIDEV_BLOCK Block transfer operation wordcount terminated to fixed address <li> MULDEV_BLOCK Block transfer operation wordcount terminated incrementing address </ul>

Z_CRATE

This command causes the CAMAC crate controller to send a 'Z' to the default CAMAC crate. The command sent is N(28),A(8),F(26).

C_CRATE

This command causes the crate controller to send a 'C' (i.e. clear) the default CAMAC crate. The command sent is N(28),A(9),F(26).

SET_INH

This command causes the crate controller to set the inhibit on the default CAMAC crate. The command sent is N(30),A(9),F(26).

CLR_INH

This command causes the crate controller to clear the inhibit on the default CAMAC crate. The command sent is N(30),A(9),F(24).

TST_INH

This command causes the crate controller to test the inhibit on the default CAMAC crate. The command sent is N(30),A(9),F(27).

EN_DEM

This command causes the crate controller to enable CAMAC crate demand on the default crate. The command sent is N(30),A(10),F(26).

DI_DEM

This command causes the CAMAC crate controller to disable crate demand on the default crate. The command sent is N(30),A(10),F(24).

TST_DEM_EN

This command causes the CAMAC crate controller to test state of crate demand on the default crate. A Q=1 is returned if enabled. The command sent is N(30),A(10),F(27).

TST_DEM_PR

This command causes the CAMAC crate controller to test CAMAC crate demand on the default crate. A Q=1 is returned if present. The command sent is N(30),A(11),F(27).

LOAD_ST

This command causes the CAMAC crate controller to load CAMAC station number register (Q=1) on the default crate. The command sent is N(30),A(8),F(16).

RD_GR_LAM

This command causes the CAMAC crate controller to read graded LAM (Q=1) on the default crate. The command sent is N(30),A(0-7),F(0).

CNAF

CNAF allows the user to enter CAMAC commands to any CAMAC crate on the system, by inputting the values of C (CAMAC crate number), N (CAMAC slot), A (CAMAC subaddress), F (CAMAC function) and data value.

If the value of C is zero or not specified, the default crate value is used (entered by using the CRATE command). The result of the operation (Q,X response and data) is reported.

The base of the data value is by default in decimal, but can be changed to hexadecimal or octal by entering the HEX_DATA or OCT_DATA commands prior to the CNAF command.

If, instead of entering the parameters N,A,F, a carriage return is entered, the last command will be repeated. For continuous looping on a command, see HELP CAMAC LOOP.

To exit from the CNAF command back to the CAMAC menu, enter Control Z or -1.

EXIT

This command returns control to the CFIMENU program.

LOOP

Parameter NLOOP - number of times to loop on next command e.g. CAMAC>LOOP 5

This command will repeat the next command entered NLOOP times. IF the value of NLOOP is not supplied, it will be prompted for. By entering a value of 0 for NLOOP, the next command will be repeated an infinite number of times. During the infinite loop, typing any character on the terminal will return control to the main CAMAC menu.

CRATE

parameter CRATE_NUMBER

e.g. CAMAC> CRATE 3

This command is used to set up the default crate value. If the parameter CRATE_NUMBER is not supplied, it will be prompted for.

All operations except CNAF and all block transfers are performed on the default crate. See HELP CNAF or Q_STOP_BLOCK,UNIDEV_BLOCK,MULDEV_BLOCK for details.

READ_CSR0

This command reads and interprets CSR 0 of the Branch driver. The most significant 16 bits contain the manufacturer's ID. Access to the functions in CSR0 is available using the CFIMENU command BRDRV.

X_RESET

This command disables the FASTBUS error response SS=7 generated by the branch driver when no X-response has been detected after a CAMAC operation. This is the default.

X_SET

This command enables the FASTBUS error response SS=7 generated by the branch driver when no X-response has been detected after a CAMAC operation. By default, this error response is disabled.

Q_STOP_BLOCK

Unidevice block transfer, repeat mode - slave terminated (Q-stop )

A block transfer is performed to one address that terminates when no Q response is generated.

The user can perform a block transfer to any CAMAC crate on the system, by inputting the values of C (CAMAC crate number), N (CAMAC slot), A (CAMAC subaddress), F (CAMAC function). The maximum number of transfers is requested, and the data prompted for (if the operation is a write).

If the value of C is zero or not specified, the default crate value is used (entered by using the CRATE command). The result of the operation (Q,X response and data) will be reported.

The base of the data value is by default in decimal, but can be changed to hexadecimal or octal by entering the HEX_DATA or OCT_DATA commands prior to the CNAF command.

If, instead of entering the parameters C,N,A,F, a carriage return is entered, the last command will be repeated. For continuous looping on a command, see HELP CAMAC LOOP.

To exit back to the CAMAC menu, enter Control Z or -1.

MULDEV_BLOCK

A block transfer is performed to an incrementing CAMAC address that is word count terminated (see below).

The user can perform a block transfer to any CAMAC crate on the system, by inputting the values of C (CAMAC crate number), N (CAMAC slot), A (CAMAC subaddress), F (CAMAC function). The number of transfers is requested, and the data prompted for (if the operation is a write).

If the value of C is zero or not specified, the default crate value is used (entered by using the CRATE command). The result of the operation (Q,X response and data) will be reported.

The base of the data value is by default in decimal, but can be changed to hexadecimal or octal by entering the HEX_DATA or OCT_DATA commands prior to the CNAF command.

If, instead of entering the parameters C,N,A,F, a carriage return is entered, the last command will be repeated. For continuous looping on a command, see HELP CAMAC LOOP.

To exit back to the CAMAC menu, enter Control Z or -1.

UNIDEV_BLOCK

Unidevice block transfer, controller synchronized - to single address, (NTA is not incremented) - Master wordcount terminated

A block transfer is performed to a particular CAMAC address. The number of words transferred is determined by the word count.

The user can perform a block transfer to any CAMAC crate on the system, by inputting the values of C (CAMAC crate number), N (CAMAC slot), A (CAMAC subaddress), F (CAMAC function). The number of transfers (word count) is requested, and the data prompted for (if the operation is a write).

If the value of C is zero or not specified, the default crate value is used (entered by using the CRATE command). The result of the operation (Q,X response and data) will be reported.

The base of the data value is by default in decimal, but can be changed to hexadecimal or octal by entering the HEX_DATA or OCT_DATA commands prior to the CNAF command.

If, instead of entering the parameters C,N,A,F, a carriage return is entered, the last command will be repeated. For continuous looping on a command, see HELP CAMAC LOOP.

To exit back to the CAMAC menu, enter Control Z or -1.

Additional Information on:

HELP

Accesses this CFIMENU help file.

DIS_DIRECT

Disables direct transfer via the CFI. With stored transfer, transfers of a maximum of 3892 words are allowed. This command uses the CFIMENU FMODE command.

The default is that direct transfers are enabled (so block transfers up to 32000 words can be handled).

EN_DIRECT

Enables direct transfer via the CFI (the default). Block transfers of up to 32000 words can be handled in this mode.

This command uses the CFIMENU FMODE command.

DIS_BLK_OUT

Disables display of block transfer data. The number of transfers only is displayed.

EN_BLK_OUT

Enables display of block transfer data (the default).

DEC_DATA

Changes the base for inputting the data to decimal in the CNAF, Q_STOP_BLOCK, UNIDEV_BLOCK, or MULDEV_BLOCK command. Decimal is the default.

OCT_DATA

Changes the base for inputting the data to octal in the CNAF, Q_STOP_BLOCK,UNIDEV_BLOCK, or MULDEV_BLOCK command. Decimal is the default.

HEX_DATA

Changes the base for inputting the data to hexadecimalin the CNAF, Q_STOP_BLOCK,UNIDEV_BLOCK, or MULDEV_BLOCK command. Decimal is the default.

COMMAND_FILE

An example of the format to use the command CAMAC in a command file is shown:

  !CAMAC.CCM
  CAMAC	! Branch driver is in slot 19 (hex)
  19

! Above blank line signified default logical address CRATE 1 ! Default crate is crate 1 CLR_INH ! Clear crate inhibit (on crate 1) CNAF ! Perform a CAMAC operation on C=1,N=8,A=0,F=16,Data=1 ,8,0,16,1 -1 OCT ! Set octal data CNAF ! C=3,N=12,A=0,F=16,Data=777 (octal) 3,12,0,16,777 -1 exit ! Exit from CAMAC EXIT ! Exit from CNAF (-1) then exit from CAMAC back to CFIMENU

To run this file, type

 $CFIM	(run CFIMENU)
 QFI>@CAMAC
 
Note that where comments (preceded by exclamation mark) are not shown, they are not allowed.

N.B. The above example assumes that this is the first time that the CAMAC command has been executed, i.e. the slot and logical address are both requested.

The following example gives the case where the slot of the branch driver is not known:

 !CAMAC2.CCM
 CAMAC	! Branch driver slot not known - program calls FBWHO automatically

! Above blank lines signified ! 1. branch driver slot not known - <CR>=default ! 2. broadcast for FBWHO - <CR>=default ! 3. logical address - <CR>=default CRATE 1 ! Default crate is crate 1 CLR_INH ! Clear crate inhibit (on crate 3) CNAF ! Perform a CAMAC operation on C=1,N=8,A=0,F=16,Data=1 ,8,0,16,1 -1 EXIT ! Exit from CNAF (-1) then exit from CAMAC back to CFIMENU

See HELP @ for more information on using commmand files.

Additional Information on: