|
|||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Printer friendly version |
Next: Develop an medm GUI Up: The records needed Previous: The substitution file Contents The template file
Change to the directory
record (ai, "$(DEVICE)-COOL:TEMP1") { field (DESC, "Sensor T1") field (DTYP, "Hy8401") field (INP, "#$(ADC1) @") field (EGU, "Grad C") field (PREC, "1") field (LINR, "LINEAR") field (EGUF, "100") field (EGUL, "-100") field (HOPR, "100") field (LOPR, "0") field (HIGH, "51") field (HIHI, "52") field (SCAN, ".1 second") }
record (ai, "$(DEVICE)-COOL:TEMP2") { field (DESC, "Sensor T2") field (DTYP, "Hy8401") field (INP, "#$(ADC2) @") field (EGU, "Grad C") field (PREC, "1") field (LINR, "LINEAR") field (EGUF, "100") field (EGUL, "-100") field (HOPR, "100") field (LOPR, "0") field (HIGH, "51") field (HIHI, "52") field (SCAN, ".1 second") }
record (calc, "$(DEVICE)-COOL:COMPARE") { field (DESC, "Calculation") field (INPA, "$(DEVICE)-COOL:TEMP1") field (INPB, "$(DEVICE)-COOL:TEMP2") field (INPC, "10") field (CALC, "((A+B)/2) > C") field (SCAN, "10 second") field (FLNK, "$(DEVICE)-COOL:SW PP") }
record (bo, "$(DEVICE)-COOL:SW") { field (DESC, "Switch for Cooler") field (DOL, "$(DEVICE)-COOL:COMPARE") field (ZNAM, "OFF") field (ONAM, "ON") field (DTYP, "Dim8001") field (OUT, "#$(OUTPUT) @") field (OMSL, "closed_loop") }
Zimoch Elke 2009-04-14 Updated: 06.04.2021 Source: /afs/psi.ch/project/epics/webhosting/training/handouts/e_basehandouts/node33.html |