]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
FLOW: Mapping/naming CONNector -> Position
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 4 Aug 2017 09:13:37 +0000 (11:13 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 4 Aug 2017 09:13:37 +0000 (11:13 +0200)
FLOW_METER/FLOW_METERApp/Db/FLOW_METER.substitutions
FLOW_METER/FLOW_METERApp/Db/FLOW_METER.template
FLOW_METER/iocBoot/iocFLOW_METER/st.cmd
FLOW_METER/protocols/FLOW_METER.proto

index 8df2b9e5c1a1cf5cc75da92c97b5d938bb2eb432..d080ba1b87415728aac750807be94468213ce947 100644 (file)
@@ -1,8 +1,8 @@
 
 file FLOW_METER.template {
 
-pattern { REC }
-        { "A" }
-        { "B" }
+pattern { CONN_NAME, CONN }
+        { $(CONN_A)  "A"  }
+        { $(CONN_B)  "B"  }
 }
 
index 4662b2fb47e1c9cedb81c96fe171e9d5e162cabb..83d3eb333e45208dd2e7b5c00117ccde654f03ef 100644 (file)
@@ -14,9 +14,9 @@
 # ###         PORT  Asyn Interface      ### #
 #############################################
 
-record (ai, "$(sys):$(sub):COOLING:$(csys):FLOW:$(REC):Flow") {
+record (ai, "$(sys):$(sub):COOLING:$(csys):FLOW:$(CONN_NAME):Flow") {
   field (DTYP, "stream")
-  field (INP,  "@FLOW_METER.proto flow_$(REC) $(PORT)")
+  field (INP,  "@FLOW_METER.proto flow_$(CONN) $(PORT)")
   field (SCAN, "I/O Intr")
   field (EGU,  "l/min")
   field (PREC, "3")
@@ -24,9 +24,9 @@ record (ai, "$(sys):$(sub):COOLING:$(csys):FLOW:$(REC):Flow") {
   #field (MDEL, "0.01")
 }
 
-record (ai, "$(sys):$(sub):COOLING:$(csys):FLOW:$(REC):Total") {
+record (ai, "$(sys):$(sub):COOLING:$(csys):FLOW:$(CONN_NAME):Total") {
   field (DTYP, "stream")
-  field (INP,  "@FLOW_METER.proto total_$(REC) $(PORT)")
+  field (INP,  "@FLOW_METER.proto total_$(CONN) $(PORT)")
   field (SCAN, "I/O Intr")
   field (EGU, "l")
   field (PREC, "3")
index d8ae047d904ce10be2998888b2bb8a05603e367c..e0526f5ac01999aceed0c9454c069918d37902a2 100755 (executable)
@@ -24,7 +24,7 @@ asynSetOption ("FLOW_METER_PORT", 0, "crtscts", "N")
 ## Load record instances
 #dbLoadRecords("db/xxx.db","user=scs")
 
-dbLoadRecords("db/FLOW_METER.db", "PORT=FLOW_METER_PORT,sys=CBM,sub=MVD,csys=CC405")
+dbLoadRecords("db/FLOW_METER.db", "PORT=FLOW_METER_PORT,sys=CBM,sub=MVD,csys=CC405,CONN_A=IN,CONN_B=OUT")
 
 cd "${TOP}/iocBoot/${IOC}"
 iocInit
index acb240d0030a1165f9a456e13ff89da12a36a525..88a5762112c7aee00b970965720fd3bb59d9a652 100644 (file)
@@ -24,16 +24,16 @@ ExtraInput    = Ignore;
 
 
 flow_A {
-  in  "F %*X %f";
+  in  "F A %f";
 }
 total_A {
-  in  "T %*X %f";
+  in  "T A %f";
 }
 
 flow_B {
-  in  "F %*X %f";
+  in  "F B %f";
 }
 total_B {
-  in  "T %*X %f";
+  in  "T B %f";
 }