-------------------------------------------------------------- Field Type DCT Initial Access Modify Rec Proc PP Monitor -------------------------------------------------------------- VAL ULONG No 0 Yes Yes Yes No OUT OUTLINK Yes 0 No No N/A No GTYP RECCHOICE Yes 0 Yes Yes No No HGV SHORT Yes 0 Yes Yes No No SGL INLINK Yes 0 No No N/A No SGV RECCHOICE Yes 0 Yes Yes No No OSGV SHORT No 0 Yes No No CSIZ RECCHOICE Yes 1 Yes Yes No CNTE RECCHOICE Yes 0 Yes Yes No No CNTS SHORT Yes 0 Yes Yes No No HOPR FLOAT Yes 4.3e+9 Yes Yes No No LOPR FLOAT Yes 0 Yes Yes No No CMD RECCHOICE No 0 Yes Yes Yes Yes SCMD USHORT No 0 Yes No No CPTR ULONG No 0 Yes No No --------------------------------------------------------------
--------------------------------------------------------------------------------------- Name Summary Description --------------------------------------------------------------------------------------- VAL Counter Value The read command places the current value of the counter into the VAL field. OUT Output Link This field is used by the device support routines to decide where to send output. For soft records, it can be a constant, a database link, or a channel access link. If the link is a constant, the result is no output. GTYP Gate Type This can be Hardware or software. If GTYP is hardware, then HGV determines gating control. If GTYP is software, the SGV determines gating control. HGV Hardware Gate If GTYP is hardware, then this field is device dependent. Value SGL Soft Gate Location If SGL is a database link and GTYP is software, then SGV (Input Link) will be set to the value read from SGL. SGV Soft Gate Value This can be inactive or active. This will enable and disable counting if GTYP is software. OSGV Old Soft Gate Value This is the previous value of SGV. CSIZ Counter size 16 bit or 32 bit counter. CNTE Count Edge This can be Rising Edge or Falling Edge. This field forces counting on rising or falling edge of source signal. CNTS Count Source HOPR High Operating These fields determine the upper and lower display limits Range for graphics displays and the upper and lower control limits for control displays. The fields are used by record support routines to honor calls to get_graphic_double or get_control_double. LOPR Low Operating Range CMD Command Read: Read the current value of the counter. Clear: Clear the counter. Note theat the counter is also stopped. The Start command must be issued to restart the counter. Start: Start counting. Stop: Stop counting. Setup: Setup the counter. Counting will not begin until the Start command is issued. SCMD Save Command This is the saved value of CMD. CPTR Callback ---------------------------------------------------------------------------------------
If SGL is a constant and GTYP is software, then SGV is initialized with its value. If SGL type is PV_LINK a channel access link is created.
Device support is then checked to see if cmd_pc is defined.
If device support includes init_record, it is called.
------------------------------------------------------------------------------------- Name Summary Description ------------------------------------------------------------------------------------- CSIZ Counter size This will determine to a 16 bit or 32 bit count is to be used. With 32 bit, two counters are used. CMD Command The device support routine is responsible for processing the commands READ, CLEAR, START, STOP, and SETUP. GTYP,IGV Gate Type If GTYP is internal, device support is responsible for using IGV to determine gating control. CNTE Count Edge This field is used by the device support routines to force counting on leading or falling edge of signal. CNTS Count Source Device support must use CNTS to set count source during setup. -------------------------------------------------------------------------------------
report()This routine is optional. If provided, it prints a report of all device modules.
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.
cmd_pc(precord)This routine issues commands to the output device. It returns the following values:
Table of Contents Next Chapter