Table of Contents
Previous Chapter
--------------------------------------------------------------
Field Type DCT Initial Access Modify Rec Proc PP
Monitor
--------------------------------------------------------------
VAL ENUM No 0 Yes Yes Yes Yes
INP INLINK Yes 0 No No N/A No
ZSV GBLCHOICE Yes 0 Yes Yes No Yes
OSV GBLCHOICE Yes 0 Yes Yes No Yes
COSV GBLCHOICE Yes 0 Yes Yes No Yes
ZNAM STRING Yes Null Yes Yes No Yes
ONAM STRING Yes Null Yes Yes No Yes
RVAL ULONG No 0 Yes Yes Yes Yes
ORAW ULONG No 0 Yes No No No
MASK ULONG No compute Yes No No No
LALM USHORT No 0 Yes No No No
MLST USHORT No 0 Yes No No No
SIOL INLINK Yes 0 No No N/A No
SVAL USHORT No 0 Yes Yes No No
SIML INLINK Yes 0 No No N/A No
SIMM GBLCHOICE No 0 Yes Yes No No
SIMS GBLCHOICE Yes 0 Yes Yes No No
--------------------------------------------------------------
--------------------------------------------------------------------------------------
Name Summary Description
--------------------------------------------------------------------------------------
VAL Value Field This is the value resulting from record processing unless
soft device support with a constant INP is chosen. If the
later is chosen, VAL, which is an unsigned short, is given
values via dbPuts.
INP Input Link This field is used by the device support routines to obtain
input. For soft records, it can be a constant, a database
link, or a channel access link.
ZSV Zero Severity Alarm Severity for state zero.
OSV One Severity Alarm Severity for state one.
COSV Change of State Alarm Severity for change of state.
Severity
ZNAM Zero Name ASCII string defining state zero.
ONAM One Name ASCII string defining state one.
RVAL Raw Value RVAL is the value obtained by the device support routine.
ORAW Old Raw Value ORAW is used to decide if monitors should be triggered for
RVAL at the same time monitors are triggered for changes
in VAL.
MASK Hardware mask
LALM Last Alarmed Value Value when last change of state alarm was issued.
MLST Last Monitored Value when last monitor for value changes was triggered.
Value
SIMM Simulation Mode Simulation mode process variables. Refer to Chapter 3,
Section "Simulation Mode" on page 11 for more
information.
SIML Simulation Mode
Location
SVAL Simulation Value
SIOL Simulation Value
Location
SIMS Simulation Mode
Alarm Severity
--------------------------------------------------------------------------------------
This routine next checks to see that device support is available and a device support read routine is defined. If either does not exist, an error message is issued and processing is terminated.
If device support includes init_record, it is called.
status=read_bi
PACT = TRUE
TIME = tslocaltime
if status is 0, then set VAL=(0,1) if RVAL is (0, not 0) and UDF = False
if status is 2, set status = 0
-----------------------------------------------------------------------------------------
Name Summary Description
-----------------------------------------------------------------------------------------
PACT Processing Active See Chapter 2, Section "Database Common: Field
Descriptions" on page 4 for descriptions.
DPVT Device Private
UDF VAL Undefined
NSEV New Alarm Severity
NSTA New Alarm Status
VAL Value Field This field is set by a device support routines only if it
doesn't want record support to set it.
INP Input Link This field is used by the device support routines to locate
its input.
RVAL Raw Value It is the responsibility of the device support routine to give
this field a value.
MASK Hardware mask. The device support routine must give this field a value if it
needs to use it.
-----------------------------------------------------------------------------------------
report(FILE fp, paddr)Not currently used.
init()This routine is called once during IOC initialization.
init_record(precord)This routine is optional. If provided, it is called by the record support init_record routine.
get_ioint_info(int cmd,struct dbCommon *precord,IOSCANPVT *ppvt)This routine is called by the ioEventScan system each time the record is added or deleted from an I/O event scan list. cmd has the value (0,1) if the record is being (added to, deleted from) an I/O event list. It must be provided for any device type that can use the ioEvent scanner.
read_bi(precord)This routine must provide a new input value. It returns the following values:
If the INP link type is constant, then the constant value is stored into VAL by init_record, and UDF is set to FALSE. VAL can be changed via dbPut requests. If the INP link type is PV_LINK, then dbCaAddInlink is called by init_record.
read_bi calls recGblGetLinkValue to read the current value of VAL. See Chapter 3, Section "Soft Input" on page 10 for details.
If the return status of recGblGetLinkValue is zero, then read_bi sets UDF to FALSE. The status of recGblGetLinkValue is returned.