[SLAC Controls Software Group [SLAC Controls Department] [SLAC Home Page]

Go to bottom of page

11.1 INTRODUCTION . . . . . . . . . . . . . . . . . . 11-1

11.2 DATA BASE STRUCTURE . . . . . . . . . . . . . . 11-2

11.2.1 Primary Data Type ASDF . . . . . . . . . . . . 11-2

11.2.2 Primary Data Type ASTS . . . . . . . . . . . . 11-3 CHAPTER 11 ANALOG STATUS SYSTEM

11.1 INTRODUCTION The analog status system is used to monitor an arbitrary number of quasi-static voltages on the accelerator. Data is read through 32 channel Smart Analog Monitors (SAMs). No restrictions are placed on the crate or channel locations of specific inputs. In order to separate logical functions from physical crate and channel addresses the total system is divided into logical subsystems. A subsystem consists of a set of channel names. For a given channel name, corresponding voltages may exist in some or all micro-clusters. Operational access to the system is through the Analog Status touch panel. Provision exists in the software for the following functions: 1. Automatic monitoring of the voltages to within fixed or adjustable tolerances. 2. Enabling and disabling (with automatic timeout) of error messages on individual channels. 3. Scaling from volts to arbitrary units.

ANALOG STATUS SYSTEM Page 11-2 4. Display of current values by channel across micros, or by micro across channels. 5. Time plots of selected channels (software chart recorder).

11.2 DATA BASE STRUCTURE Two primary data types define the data base for the analog status system. Primary data ASDF is used to define subsystems, and ASTS defines data specific to a single micro and SAM.

11.2.1 Primary Data Type ASDF Secondary Supertype Conversion _________ _________ __________ SNAM 4 2A4 Subsystem name CNAM 4 VS4 Channel names and scaled units. where o SNAM is the 8-character subsytem name, which should not contain blanks, commas, equal signs or quotation marks. o CNAM defines the 8-character channel names and the 4-character scaled units (e.g. vlts, amps, yen, ...). Format: NAME1,UNITS1,NAME2,UNITS2,...,NAMEN,UNITSN. where both the names and units are 8-character strings (Note, however, that only the first 4 characters of the units are used.) Channel names must be unique across all subsystems unless one wants a single channel to belong to more than one

ANALOG STATUS SYSTEM Page 11-3 subsystem. Names should not contain blanks, commas, equal signs, or quotation marks.

11.2.2 Primary Data Type ASTS Secondary Supertype Conversion _________ _________ __________ CTLW 1 1Z4 Module CAMAC CTLW CHAN 1 2I2 Starting and total # channels NAME 2 VS4 Channel names LIMS 2 VR4 Limits SCAL 1 VR4 Scale factors CTRL 2 VZ2 Control words DATA 3 VR4 Raw and scaled channel readings STAT 3 VZ2 Micro status words where o CTLW is the CAMAC address (CTLW, F0) of the SAM. o CHAN is a 2-word array giving then starting channel number (0-32) and the number of consecutive channels to be read. o NAME is an array of 8-character channel names whose dimension must match the total number of channels as given by CHAN(2) above. A SAM channel is associated with a specific subsystem by matching NAME to an identical CNAM for primary data type ASDF. Names should not contain blanks, commas, equal signs or quotation marks. o LIMS is a (2,NCHAN) real array giving the tolerance limits, in scaled units, for the channel. If the %TOLS bit of the corresponding control word (see CTRL below) is set,

ANALOG STATUS SYSTEM Page 11-4 LIMS(1,ICHAN) is the reference value for the channel, and LIMS(2,ICHAN) is the channel tolerance. If the %TOLS bit is reset, LIMS(1,ICHAN) and LIMS(2,ICHAN) are the lower and upper limits respectively, within which the channel is within tolerance. o SCAL is a (2,NCHAN) real array giving the scale factors used to convert from raw to scaled values. Normally a linear relationship is assumed: = SCAL(1,ICHAN) + SCAL(2,ICHAN)*. However, non-linear 2-parameter relationships can be handled using special bits of the control word (see CNTRL below) if appropriate software is written. o DATA is a (2,NCHAN) real array giving the unscaled (volts as read by ADC) and scaled data values. o CTRL is a (2,NCHAN) word array used for control purposes: CTRL(1,ICHAN) Bit 0- 2 give the severity level used if channel is out of tolerance: 0 = %DISPLAY: Display only; no error mesages. 1 = %WARNING: Warning messages issued. 7 = %PANIC: Special computer action required through tailored software. 3 = %LOG : Log data in error file if out of tolerance. 4 5 Set to disable error messages for a finite time duration. Should normally be intialized to 0, and set only through the operator console. 6 Used internally as a toggle bit informing the micro that it should examined and heed the disable bit (bit 5 above). Should normally be intialized to 0.
ANALOG STATUS SYSTEM Page 11-5 7 8 = %TOLS: If set indicates that LIMS (see above) should be interpreted as reference values and tolerances. If reset, indicates that LIMS should be interpreted as lower and upper tolerance limits. 9 = %THRMOCPL: If set, indicates that channel is a thermocouple and requires non-standard scaling. 0-11 2 = %ADJUST : If set, indicates that LIMS is allowed to be changed from the console. Note, however, that such changes will be lost if the data-base is re-gened. 3-15 CTRL(2,ICHAN) gives the disable time in minutes for which the channel can remain disabled. Normally initialized to 0, and set from the operator console. o STAT is a (2,NCHAN) word array used for status information from the micro. Normally initialized to 0 and used internally by the programs. STAT(1,ICHAN) Bit 0 is set by the micro if the channel is out of tolerance. 1 is set by the micro if a CAMAC or other error occurred in reading the data 2 is set by the micro if the device is "dead" or disabled 3 is set by the micro if the channel is out of tolerance. 4 is used internally by the micro to prevent more than one out-of-tolerance message from a single channel within one minute 5 is set to disable error messages for a finite time duration. Controlled internnaly by the micro: When bit 6 of CTRL(1,ICHAN) is set to a state different from bit 6 of STAT(1,ICHAN), the micro copies the disable bit (bit 5) from CTRL(1,ICHAN) to STAT(1,ICHAN). After the timeout occurs the micro resets the disable bit in STAT, independent of that in CTRL
ANALOG STATUS SYSTEM Page 11-6 6 Used internally as a synchronization bit. Whenever bit 6 of CTRL(1,ICHAN) is different from that in STAT(1,ICHAN) the micro copies the disable bit, the synchronization bit, and the disable time from CTRL to STAT. This exercise is necessary to allow the micro to reset the disable bit, since the micro does not have write access to CTRL. 7-15 STAT(2,ICHAN) is the disable time, initially copied from CTRL, and counted down to 0 by the micro, at which time the disable bit is reset.
Go to top of page
Contact (until Aug. 15, 1996): Jeffrey Miller
Owner: Bob Sass

Converted from VAX Runoff output using doc2webset.pl