]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
BALZERS: required changes to get it to work
authorOle Artz <ole.artz@t-online.de>
Mon, 26 Jun 2017 12:21:57 +0000 (14:21 +0200)
committerOle Artz <ole.artz@t-online.de>
Mon, 26 Jun 2017 12:21:57 +0000 (14:21 +0200)
BALZERS_PKG020/BALZERS_PKG020App/Db/BALZERS_PKG020.db
BALZERS_PKG020/BALZERS_PKG020App/Db/Makefile
BALZERS_PKG020/configure/RELEASE
BALZERS_PKG020/iocBoot/iocBALZERS_PKG020/st.cmd
BALZERS_PKG020/protocols/BALZERS_PKG020.proto

index c05836325586a48e9c7a6948a5d2235a11517bbc..fe11b6dfe5023b04673f29597c99b0de4ea4c305 100644 (file)
 # ###         PORT  Asyn Interface      ### #
 #############################################
 
-record (ai, "$(sys):$(sub):VACUUM:$(vsys):Pressure") {
+#record (ai, "$(sys):$(sub):VACUUM:$(vsys):TPR:Pressure") { ...
+
+#record (ai, "$(sys):$(sub):VACUUM:$(vsys):IKR:Pressure") {
+#  field (DTYP, "stream")
+#  field (INP,  "@BALZERS_PKG020.proto getPressureValue3 $(PORT)")
+#  field (SCAN, "I/O Intr")
+#  field (EGU, "mbar")
+#  #field (PREC, "2")
+#  #field (ADEL, "1")
+#  #field (MDEL, "1")
+#  #field (ASLO, "0.01")
+#  #field (AOFF, "0")
+#}
+
+record (ai, "$(sys):$(sub):VACUUM:$(vsys):TPR:Voltage") {
   field (DTYP, "stream")
-  field (INP,  "@BALZERS_PKG020.proto getPressureValue3 $(PORT)")
-  field (SCAN, "10 second")
-  #field (FLNK, "PANDA:$(subsys):COOLING:$(sector):getExtTemp")
-  field (EGU, "mbar")
-  #field (PREC, "2")
-  #field (ADEL, "1")
-  #field (MDEL, "1")
-  #field (ASLO, "0.01")
-  #field (AOFF, "0")
+  field (INP,  "@BALZERS_PKG020.proto getVoltage5 $(PORT)")
+  field (SCAN, "I/O Intr")
+  field (EGU, "V")
+  #field (PREC, "3")
+  #field (ADEL, "0.001")
+  #field (MDEL, "0.001")
+}
+record (ai, "$(sys):$(sub):VACUUM:$(vsys):IKR:Voltage") {
+  field (DTYP, "stream")
+  field (INP,  "@BALZERS_PKG020.proto getVoltage7 $(PORT)")
+  field (SCAN, "I/O Intr")
+  field (EGU, "V")
+  #field (PREC, "3")
+  #field (ADEL, "0.001")
+  #field (MDEL, "0.001")
 }
-
 
index 983981d401b27c05644f2f2cc19cbf888f053bf3..415bdcb1c80fe9e07b54a3f5d74fe002bebae62f 100644 (file)
@@ -11,6 +11,7 @@ include $(TOP)/configure/CONFIG
 # Create and install (or just install) into <top>/db
 # databases, templates, substitutions like this
 #DB += xxx.db
+DB += BALZERS_PKG020.db
 
 #----------------------------------------------------
 # If <anyname>.db template is not named <anyname>*.template add
index bd6b780b1ca1620a0b61ddf3a126e3a14a4819d6..ce3720a15312b2e16982fcf8413f472ae52eecee 100644 (file)
 
 # Variables and paths to dependent modules:
 #MODULES = /path/to/modules
+MODULES = /home/scs/EPICS/EPICS/modules
 #MYMODULE = $(MODULES)/my-module
 
 # If using the sequencer, point SNCSEQ at its top directory:
-#SNCSEQ = $(MODULES)/seq-ver
+SNCSEQ = $(MODULES)/synApps_5_8/support/seq-2-2-1
+ASYN = $(MODULES)/synApps_5_8/support/asyn-4-26
+STREAM = $(MODULES)/synApps_5_8/support/stream-2-6a
 
 # EPICS_BASE should appear last so earlier modules can override stuff:
 EPICS_BASE = /home/scs/EPICS/EPICS/base
index a315228523338cff9e78ea841349762dec715a74..552d7d67c3e981b939a45bfca37556dfe1363b08 100644 (file)
@@ -12,9 +12,20 @@ cd "${TOP}"
 dbLoadDatabase "dbd/BALZERS_PKG020.dbd"
 BALZERS_PKG020_registerRecordDeviceDriver pdbbase
 
+drvAsynSerialPortConfigure("BALZERS_PORT","/dev/SparkFun_Pro_Micro_platform-3f980000.usb-usb-0:1.3:1.0")
+asynSetOption ("BALZERS_PORT", 0, "baud", "115200")
+asynSetOption ("BALZERS_PORT", 0, "bits", "8")
+asynSetOption ("BALZERS_PORT", 0, "parity", "none")
+asynSetOption ("BALZERS_PORT", 0, "stop", "1")
+asynSetOption ("BALZERS_PORT", 0, "clocal", "N")
+asynSetOption ("BALZERS_PORT", 0, "crtscts", "N")
+
+
 ## Load record instances
 #dbLoadRecords("db/xxx.db","user=scs")
 
+dbLoadRecords("db/BALZERS_PKG020.db", "PORT=BALZERS_PORT,sys=CBM,sub=MVD,vsys=PRESTO_RECIPIENT")
+
 cd "${TOP}/iocBoot/${IOC}"
 iocInit
 
index 785180d3ba411d78600ccf9a2a619a2fde26939d..fbf1b5f40e0c63adef08dbd8cea7e2db7f6583a4 100644 (file)
@@ -12,7 +12,7 @@
 ###################
 # ### Globals ### #
 ###################
-Terminator    = CR;
+Terminator    = LF;
 LockTimeout   = 5000;
 ReplyTimeout  = 500;
 ReadTimeout   = 500;
@@ -24,7 +24,31 @@ ExtraInput    = Ignore;
 #####################
 
 
-getPressureValue3 {
-  out "RPV3";
-  in  "%*d,\t%e";
+getVoltage1 {
+  in  "%f %*f %*f %*f %*f %*f %*f %*f %*f";
 }
+getVoltage2 {
+  in  "%*f %f %*f %*f %*f %*f %*f %*f %*f";
+}
+getVoltage3 {
+  in  "%*f %*f %f %*f %*f %*f %*f %*f %*f";
+}
+getVoltage4 {
+  in  "%*f %*f %*f %f %*f %*f %*f %*f %*f";
+}
+getVoltage5 {
+  in  "%*f %*f %*f %*f %f %*f %*f %*f %*f";
+}
+getVoltage6 {
+  in  "%*f %*f %*f %*f %*f %f %*f %*f %*f";
+}
+getVoltage7 {
+  in  "%*f %*f %*f %*f %*f %*f %f %*f %*f";
+}
+getVoltage8 {
+  in  "%*f %*f %*f %*f %*f %*f %*f %f %*f";
+}
+getVoltage9 {
+  in  "%*f %*f %*f %*f %*f %*f %*f %*f %f";
+}
+