Software documentation: PntDef
Preface
The primary description of all monitor and control points for the Compact Array are held in a set of files known as `The Database'. The database consists of a file, called the descriptor file containing the definition of all control and monitor points and a set of secondary files providing descriptive information on some points. The descriptor file contains a record for each type of point. Each record contains fields described the following FORTRAN structure held in A_DATA.INC PNTDEF now also writes its creation date into the PDEF record. This is so that the process CAMPA (Compact Array Monitor Point Archiver) will recognise any changes in the PDEF array. This is written in the last record that exists, thus making this useless for genuine monitor point data.Call sequence:
program pntdef implicit none include 'ARRAY$INC:a_params.inc' include 'ARRAY$INC:a_data.inc/list'Creation date: 9-May-1994
Author: David McConnell (with CAMPA mod by Derek McKay)
File: PNTDEF.FOR
Routine name: dscode
Function:
To return the 16-bit code for accessing dataset functions.
SBDQ Single bit digital out 64 0..9 0..9 0..31 A08Q Addressed 8 bit out 96 0..63 0..63 0..63 A16Q Addressed 16 bit out 160 0..63 0..63 0..63 D08Q Decoded addr. 8 bit out 224 0..3 0..3 0..3 D16Q Decoded addr. 16 bit out 228 0..3 0..3 0..3 GRBQ Grouped bits (bytes) 232 0..3 0..3 0..3 WRDQ Write word 256 0..3 0..3 0..3 IOSQ Setup IO status 260 0..3 0..3 0..3 82CQ 82C43 write 264 0..3 0..3 0..3 SFNQ Special functions 268 0..3 0..3 0..3 BLKQ Block write 272 0..15 0..15 0..15 DATQ Do block data 288 na 0..15 0..15 FNCQ Do func block 304 na 0..15 0..15 BALI Balanced analog in 0 na 0..7 0..7 UALI Unbalanced analog in 8 na na 0..55 SBDI Single bit digital in 64 0..9 0..9 0..31 A08I Addressed 8 bit in 96 0..63 0..63 0..63 A16I Addressed 16 bit in 160 0..63 0..63 0..63 D08I Decoded addr. 8 bit in 224 0..3 0..3 0..3 D16I Decoded addr. 16 bit in 228 0..3 0..3 0..3 GRBI Grouped bits (bytes) 232 0..3 0..3 0..3 WRDI Read word 256 0..3 0..3 0..3 IOSI Check IO status 260 0..3 0..3 0..3 82CI 82C43 read 264 0..3 0..3 0..3 SFNI Special functions 268 0..3 0..3 0..3 BLKI Block read 272 0..15 0..15 0..15 MXAI Multiplexed analog in 288 na 0..63 0..63
Call sequence:
integer*2 function dscode(dset,func,chan) implicit none integer*2 dset ! Dataset number. Must be in [0,31] character*5 func ! function desctiption integer*2 chan ! function channel number
Original: Derek McKay (14-Oct-1996)
Modified: Derek McKay (14-Oct-1996)