# # This template is used to monitor and control each channel from a # 5069-IB16 module that monitors a EPS for Gun and buncher interlock # # Macros: # LOCA The sector/area in the accelerator where the sensors are present # UNIT The PLC/ IOC instance of the subsystem # CR Crate/panel number # SLOT I/O module location on the panel # CHAN I/O channel on the I/O module # PLC Name of the ether_ip connection to PLC as defined in st.cmd # ARRAY Array instance in which data is read # INDEX index of the array from PLC where the the data will be read out of # DESC EPICS PV description # ALIAS EPICS name for the PV # ZNAM Zero name # ONAM One name # ZSV Zero severity # OSV One severity # FLNK FLNK to the PV that needs to be processed after ALIAS PV #============================================================================== record(bi, "PLC:${LOCA}:${UNIT}:CR$(CR)_M${SLOT}_CH${CHAN}") { field(SCAN, "I/O Intr") field(DTYP, "EtherIP") field(INP , "@$(PLC) CR$(CR)_DI[$(INDEX)] B $(CHAN)") field(ZNAM, "$(ZNAM)") field(ONAM, "$(ONAM)") field(FLNK, "${ALIAS}") } #Holds mapping between PLC channel,slot and alias record(stringout, "PLC:${LOCA}:${UNIT}:CR$(CR)_M${SLOT}_CH${CHAN}_ALIAS") { field(VAL,"$(ALIAS)") field(PINI,"YES") } #PV for user record(bi, "${ALIAS}") { field(DESC, "${DESC}") field(INP, "PLC:${LOCA}:${UNIT}:CR$(CR)_M${SLOT}_CH${CHAN} CA MS") field(ZNAM, "$(ZNAM)") field(ONAM, "$(ONAM)") field(ZSV, "$(ZSV)") field(FLNK, "$(FLNK)") field(OSV, "$(OSV)") field(PINI,"YES") }