#
# This template is used to control MPS outputs
#
#
# Macros:
#        TYPE  Type of MPS Permit signal- eg: TEMP, FLOW etc.
#        CHAN  I/O channel on the I/O module
#        PLC   Name of the ether_ip connection to PLC as defined in st.cmd 
#        ALIAS EPICS name for the PV
#        MAD   MAD name for the PV
#==============================================================================
# Temperature PV Alarm status
# Alarm channels are the PV  bit
record(bi, "${ALIAS}${TYPE}_PERMIT"){
  field(DESC, "${MAD} ${TYPE} Permit Alarm Sts")
  field(SCAN, "I/O Intr")
  field(DTYP, "EtherIP")
  field(INP , "@$(PLC) MPSAlarm[${INDEX}] B $(CHAN)")
  field(ONAM, "OK")
  field(ZNAM, "FAULT")
  field(OSV, "NO_ALARM")
  field(ZSV, "MAJOR")
}
