# # Get the alarm limits from PLC # These PLC varables of type ALARM_ANALOG should not be # grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).LLimit") } grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).HLimit") } grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LLLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).LLLimit") } grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HHLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).HHLimit") } grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).LSeverity") } grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).HSeverity") } grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LLSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).LLSeverity") } grecord(ai,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HHSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).HHSeverity") } grecord(bi,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Suppressed") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).Suppressed") } grecord(bi,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Disabled") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEp)ALMA_$(CHAN).Disabled") } # # Transfer the lmits to the actual variable EPICS limits # grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):LoLoAlm") { field(SCAN,"1 second") field(CALC,"a") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LLLimit NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).LOLO NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") } grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):LoLoSvr") { field(SCAN,"1 second") field(CALC,"b=0&c=0?a:0") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LLSeverity NPP NMS") field(INPB,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Suppressed NPP NMS") field(INPC,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Disabled NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).LLSV NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") } grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):LoAlm") { field(SCAN,"1 second") field(CALC,"a") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LLimit NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).LOW NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") } grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):LoSvr") { field(SCAN,"1 second") field(CALC,"b=0&c=0?a:0") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):LSeverity NPP NMS") field(INPB,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Suppressed NPP NMS") field(INPC,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Disabled NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).LSV NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") } grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):HiAlm") { field(SCAN,"1 second") field(CALC,"a") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HLimit NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).HIGH NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") } grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):HiSvr") { field(SCAN,"1 second") field(CALC,"b=0&c=0?a:0") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HSeverity NPP NMS") field(INPB,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Suppressed NPP NMS") field(INPC,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Disabled NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).HSV NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") } grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):HiHiAlm") { field(SCAN,"1 second") field(CALC,"a") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HHLimit NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).HIHI NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") } grecord(calcout,"$(IOC):$(SCOPEi)$(CHAN):HiHiSvr") { field(SCAN,"1 second") field(CALC,"b=0&c=0?a:0") field(INPA,"$(IOC):$(SCOPEi)ALMA_$(CHAN):HHSeverity NPP NMS") field(INPB,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Suppressed NPP NMS") field(INPC,"$(IOC):$(SCOPEi)ALMA_$(CHAN):Disabled NPP NMS") field(OUT, "$(IOC):$(SCOPEi)$(CHAN).HHSV NPP NMS") field(OOPT,"Every Time") field(DOPT,"Use CALC") }