Table of Contents
Previous Chapter
-------------------------------------------------------------
Field Type DCT Initial Access Modify Rec Proc PP
Monitor
-------------------------------------------------------------
VAL See BPTR No 0 Yes No No No
NELM USHORT Yes 1 Yes No No No
CSTA SHORT No 1 Yes No No
CMD RECCHOICE No 0 Yes Yes No
ULIM DOUBLE Yes 0 Yes Yes No No
LLIM DOUBLE Yes 0 Yes Yes No No
WDTH DOUBLE No 0 Yes No No
SGNL DOUBLE No 0 Yes Yes Yes No
SVL INLINK Yes 0 No No N/A No
BPTR NOACCESS No 0 No No No
WDOG NOACCESS No 0 No No No
MCNT SHORT No 0 Yes No No
MDEL SHORT Yes 0 Yes Yes No No
SDEL FLOAT Yes 0 Yes No No
SIOL INLINK Yes 0 No No N/A No
SVAL DOUBLE 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 field is used to reference the array.
NELM Number of
elements in array
CSTA Collections Status
CMD Collections Control
ULIM Upper Signal Limit These fields determine the range of signal values to be
used. This range is subdivided into NELM equal intervals.
The histogram array elements contain frequency counts of
SGNL values for these intervals. Values of the signal
outside these limits are not used by the record support
routines. Whenever ULIM or LLIM are changed, the array
elements counts will be reset to zero.
LLIM Lower Signal Limit
WDTH Element Width
SGNL Signal Value
SVL Signal Value This field can be a constant, a database link, or a channel
Location (input access link. If SVL is a database or channel access link,
link) then SGNL is read from SVL. If SVL is a constant link
then SGNL is initialized with the constant value but can be
changed via dbPuts.
BPTR Buffer Pointer Address of unsigned long array of frequency values.
WDOG Watchdog Callback
MCNT Monitor Counts Number of counts since last monitor.
MDEL Monitor Delta Monitor count deadband.
SDEL Monitor Seconds
Dband
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 initializes SIMM with the value of SIML if SIML type is CONSTANT link or creates a channel access link if SIML type is PV_LINK. SVAL is likewise initialized if SIOL is CONSTANT or PV_LINK.
This routine next checks to see that device supportand a device support read routine are available. If device support includes init_record, it is called.
If ULIM or LLIM are changed, WDTH is recalculated and clear_histogram is called.
If CMD is less or equal to 1, clear_histogram is called and CMD is reset to 0. If CMD is 2, CSTA is set to TRUE and CMD is reset to 0. If CMD is 3, CSTA is set to FALSE and CMD is reset to 0.
clear_histogram zeros out the histogram array. add_count increments the frequency in the histogram array.
Table of Contents
Next Chapter