#
# PV used to indicate local access
# mode for a particular IOC, group of
# devices, or specific device.
#
record( mbbo, "$(IOC):ACCESS")
        {
	field( DESC, "$(IOC) Acc Mode")
        field( ASG,  "IOCMANAGERS")
        field( IVOA, "Don't drive outputs")
        field( PINI, "YES")
        field( ZRVL, "0")
        field( ZRST,    "Running")
        field( ZRSV,    "NO_ALARM")
        field( ONVL, "1")
        field( ONST,    "Maintenance")
        field( ONSV,    "MINOR")
        field( TWVL, "2")
        field( TWST,    "Test")
        field( TWSV,    "MINOR")
        field( THVL, "3")
        field( THST,    "OFFLINE")
        field( THSV,    "MAJOR")
        }
record(stringin, "$(IOC):STARTTOD")
{
    field(DESC, "Time and date of startup")
    field(DTYP, "Soft Timestamp")
    field(PINI, "YES")
    field(INP, "@%m/%d/%Y %H:%M:%S")
}
record(stringin, "$(IOC):TOD")
{
    field(DESC, "Current time and date")
    field(DTYP, "Soft Timestamp")
    field(SCAN, "1 second")
    field(INP, "@%m/%d/%Y %H:%M:%S")
}

record(calcout, "$(IOC):HEARTBEAT")
{
    field(DESC, "1 Hz counter since boot")
    field(CALC, "(A<2147483647)?A+1:1")
    field(SCAN, "1 second")
    field(INPA, "$(IOC):HEARTBEAT")
}
#
# Using an existing internal set of subroutines, this
# PV updates the Access Security mechanism dynamically.
# The .acf file is re-read.
#
record( sub, "$(IOC):READACF")
{
    field( DESC, "$(IOC) ACF Update")
    field( ASG,  "IOCMANAGERS")
    field( INAM, "asSubInit")
    field( SNAM, "asSubProcess")
    field( BRSV, "INVALID")
}
record(sub, "$(IOC):SYSRESET")
{
    field(DESC, "IOC Restart" )
    field(SNAM, "iocAdminSysReset")
}
