#! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND template() { #! OutputMacro(CHAN,"",1480,860,16777215,1,true) #! OutputMacro(SCOPEvi,"",1480,640,16777215,1,true) #! OutputMacro(SCOPEai,"",1480,720,16777215,1,true) #! OutputMacro(PLC,"",1480,560,16777215,1,true) #! OutputMacro(IOC,"",1480,500,16777215,1,true) #! OutputMacro(SCOPEap,"",1480,800,16777215,1,true) } # Get the alarm limits from PLC # These PLC varables of type ALARM_ANALOG should not be record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).LLimit") } record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LLLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).LLLimit") } record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).HLimit") } record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HHLimit") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).HHLimit") } record(calcout, "$(IOC):$(SCOPEai)$(CHAN):LoAlm") { field(SCAN, "1 second") field(CALC, "a") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LLimit.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).LOW NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } # # Transfer the lmits to the actual variable EPICS limits # record(calcout, "$(IOC):$(SCOPEai)$(CHAN):LoLoAlm") { field(SCAN, "1 second") field(CALC, "a") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LLLimit.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).LOLO NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } record(calcout, "$(IOC):$(SCOPEai)$(CHAN):HiAlm") { field(SCAN, "1 second") field(CALC, "a") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HLimit.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).HIGH NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } record(calcout, "$(IOC):$(SCOPEai)$(CHAN):HiHiAlm") { field(SCAN, "1 second") field(CALC, "a") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HHLimit.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).HIHI NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).HSeverity") } record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).LSeverity") } record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LLSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).LLSeverity") } record(ai, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HHSeverity") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).HHSeverity") } record(bi, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).Suppressed") } record(bi, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled") { field(SCAN, "1 second") field(DTYP, "EtherIP") field(INP, "@$(PLC) Program:$(SCOPEap)ALMA_$(CHAN).Disabled") } record(calcout, "$(IOC):$(SCOPEai)$(CHAN):HiSvr") { field(SCAN, "1 second") field(CALC, "b=0&c=0?a:0") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HSeverity.VAL NPP NMS") field(INPB, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL NPP NMS") field(INPC, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).HSV NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } record(calcout, "$(IOC):$(SCOPEai)$(CHAN):LoSvr") { field(SCAN, "1 second") field(CALC, "b=0&c=0?a:0") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LSeverity.VAL NPP NMS") field(INPB, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL NPP NMS") field(INPC, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).LSV NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } record(calcout, "$(IOC):$(SCOPEai)$(CHAN):LoLoSvr") { field(SCAN, "1 second") field(CALC, "b=0&c=0?a:0") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):LLSeverity.VAL NPP NMS") field(INPB, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL NPP NMS") field(INPC, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).LLSV NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } record(calcout, "$(IOC):$(SCOPEai)$(CHAN):HiHiSvr") { field(SCAN, "1 second") field(CALC, "b=0&c=0?a:0") field(INPA, "$(IOC):$(SCOPEai)ALMA_$(CHAN):HHSeverity.VAL NPP NMS") field(INPB, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL NPP NMS") field(INPC, "$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL NPP NMS") field(OUT, "$(IOC):$(SCOPEvi)$(CHAN).HHSV NPP NMS") field(OOPT, "Every Time") field(DOPT, "Use CALC") } #! Further lines contain data used by VisualDCT #! View(24,100,0.7) #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):LLimit",20,20,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LLimit") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):LLimit.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LLimit.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):LLLimit",520,20,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LLLimit") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):LLLimit.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LLLimit.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):HLimit",1020,20,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HLimit") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):HLimit.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HLimit.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):HHLimit",1520,20,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HHLimit") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):HHLimit.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HHLimit.VAL") #! Record("$(IOC):$(SCOPEai)$(CHAN):LoAlm",300,18,0,0,"$(IOC):$(SCOPEai)$(CHAN):LoAlm") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoAlm.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoAlm.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoAlm.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):LLimit.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoAlm.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):LoAlm.OUT") #! Record("$(IOC):$(SCOPEai)$(CHAN):LoLoAlm",800,18,0,0,"$(IOC):$(SCOPEai)$(CHAN):LoLoAlm") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoLoAlm.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoLoAlm.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoLoAlm.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):LLLimit.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoLoAlm.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):LoLoAlm.OUT") #! Record("$(IOC):$(SCOPEai)$(CHAN):HiAlm",1300,18,0,0,"$(IOC):$(SCOPEai)$(CHAN):HiAlm") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiAlm.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiAlm.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiAlm.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):HLimit.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiAlm.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):HiAlm.OUT") #! Record("$(IOC):$(SCOPEai)$(CHAN):HiHiAlm",1800,18,0,0,"$(IOC):$(SCOPEai)$(CHAN):HiHiAlm") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiHiAlm.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiHiAlm.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiHiAlm.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):HHLimit.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiHiAlm.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):HiHiAlm.OUT") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):HSeverity",20,360,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HSeverity") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):HSeverity.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HSeverity.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):LSeverity",20,660,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LSeverity") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):LSeverity.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LSeverity.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):LLSeverity",20,960,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LLSeverity") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):LLSeverity.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):LLSeverity.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):HHSeverity",20,1280,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HHSeverity") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):HHSeverity.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):HHSeverity.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed",300,800,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL") #! Record("$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled",560,900,0,0,"$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled") #! Field("$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL",16777215,1,"$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL") #! Record("$(IOC):$(SCOPEai)$(CHAN):HiSvr",1060,288,0,0,"$(IOC):$(SCOPEai)$(CHAN):HiSvr") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):HSeverity.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPB",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPB") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPB","$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPC",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPC") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiSvr.INPC","$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiSvr.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):HiSvr.OUT") #! Record("$(IOC):$(SCOPEai)$(CHAN):LoSvr",1060,588,0,0,"$(IOC):$(SCOPEai)$(CHAN):LoSvr") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):LSeverity.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPB",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPB") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPB","$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPC",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPC") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoSvr.INPC","$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoSvr.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):LoSvr.OUT") #! Record("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr",1060,888,0,0,"$(IOC):$(SCOPEai)$(CHAN):LoLoSvr") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):LLSeverity.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPB",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPB") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPB","$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPC",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPC") #! Link("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.INPC","$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):LoLoSvr.OUT") #! Record("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr",1060,1208,0,0,"$(IOC):$(SCOPEai)$(CHAN):HiHiSvr") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPA",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPA") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPA","$(IOC):$(SCOPEai)ALMA_$(CHAN):HHSeverity.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPB",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPB") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPB","$(IOC):$(SCOPEai)ALMA_$(CHAN):Suppressed.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPC",16777215,0,"$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPC") #! Link("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.INPC","$(IOC):$(SCOPEai)ALMA_$(CHAN):Disabled.VAL") #! Field("$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.OUT",16777215,1,"$(IOC):$(SCOPEai)$(CHAN):HiHiSvr.OUT")