# HG changeset patch # User Heinz Junkes # Date 1635855586 -3600 # Node ID 85c191e174dfd82db6b93559705c199c4cf05a92 # Parent f4ddf0ee30a98db77e5dfff6e3e7aa102c6c428b Add Mpdbus pressure Reading diff -r f4ddf0ee30a9 -r 85c191e174df IOCDOSEApp/Db/.fht.db.swo Binary file IOCDOSEApp/Db/.fht.db.swo has changed diff -r f4ddf0ee30a9 -r 85c191e174df IOCDOSEApp/Db/Makefile --- a/IOCDOSEApp/Db/Makefile Tue Oct 28 04:47:56 2014 +0100 +++ b/IOCDOSEApp/Db/Makefile Tue Nov 02 13:19:46 2021 +0100 @@ -11,6 +11,13 @@ # Create and install (or just install) into /db # databases, templates, substitutions like this #DB += xxx.db +DB_INSTALLS += fht.db +DB_INSTALLS += vega.db +DB_INSTALLS += dpt-mod.db +#DB += fht.proto +#DB += vega.proto +DB_INSTALLS += $(TOP)/IOCDOSEApp/Db/fht.proto +DB_INSTALLS += $(TOP)/IOCDOSEApp/Db/vega.proto #---------------------------------------------------- # If .db template is not named *.template add diff -r f4ddf0ee30a9 -r 85c191e174df IOCDOSEApp/Db/dpt-mod.db --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IOCDOSEApp/Db/dpt-mod.db Tue Nov 02 13:19:46 2021 +0100 @@ -0,0 +1,7 @@ +# ai record template for register inputs +record(ai, "$(P)$(R):Pressure") { +field(DTYP,"asynInt32") +field(INP,"@asyn($(PORT) $(OFFSET))$(DATA_TYPE)") +field(SCAN,"I/O Intr") +field(EGU, "Pa") +} diff -r f4ddf0ee30a9 -r 85c191e174df IOCDOSEApp/Db/fht.db --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IOCDOSEApp/Db/fht.db Tue Nov 02 13:19:46 2021 +0100 @@ -0,0 +1,92 @@ +record(ai, "$(P)$(R)GetRadiation_1") +{ + field(DESC, "Get Radiation") + field(DTYP, "stream") + field(INP, "@fht.proto getRadiation(138) $(BUS)") + field(SCAN, "1 second") + field(EGU, "uSv/h") + field(FLNK, "$(P)$(R)GetRadiation_1:Hour") +} + +record(calc, "$(P)$(R)GetRadiation_1:Add") { + field(INPA, "$(P)$(R)GetRadiation_1 CP NMS") + field(INPB, "1") + field(CALC, "B>0?VAL+A:0;B:=1") + field(FLNK, "$(P)$(R)GetRadiation_1:Counter") +} + +record(calc, "$(P)$(R)GetRadiation_1:Counter") { + field(INPA, "$(P)$(R)GetRadiation_1:Add NPP ") + field(CALC, "A>0?VAL+1:0") + field(FLNK, "$(P)$(R)GetRadiation_1:SumOneHour") +} + +record(calc, "$(P)$(R)GetRadiation_1:SumOneHour") { + field(INPA, "$(P)$(R)GetRadiation_1:Add NPP ") + field(INPB, "$(P)$(R)GetRadiation_1:Counter NPP ") + field(CALC, "B>0?A/B:0") + field(EGU, "uSv/h") +} + +record(stringin, "$(P)$(R)GetRadiation_1:Hour") { + field(DTYP, "Soft Timestamp") + field(INP, "@%M") + field(TSEL, "$(P)$(R)GetRadiation_1.TIME") + field(FLNK, "$(P)$(R)GetRadiation_1:HourClear") +} + +record(calcout, "$(P)$(R)GetRadiation_1:HourClear") { + field(INPA, "$(P)$(R)GetRadiation_1:Hour NPP NMS") + field(INPB, "0") + field(CALC, "A0?VAL+A:0;B:=1") + field(FLNK, "$(P)$(R)GetRadiation_2:Counter") +} + +record(calc, "$(P)$(R)GetRadiation_2:Counter") { + field(INPA, "$(P)$(R)GetRadiation_2:Add NPP ") + field(CALC, "A>0?VAL+1:0") + field(FLNK, "$(P)$(R)GetRadiation_2:SumOneHour") +} + +record(calc, "$(P)$(R)GetRadiation_2:SumOneHour") { + field(INPA, "$(P)$(R)GetRadiation_2:Add NPP ") + field(INPB, "$(P)$(R)GetRadiation_2:Counter NPP ") + field(CALC, "B>0?A/B:0") + field(EGU, "uSv/h") +} + +record(stringin, "$(P)$(R)GetRadiation_2:Hour") { + field(DTYP, "Soft Timestamp") + field(INP, "@%M") + field(TSEL, "$(P)$(R)GetRadiation_2.TIME") + field(FLNK, "$(P)$(R)GetRadiation_2:HourClear") +} + +record(calcout, "$(P)$(R)GetRadiation_2:HourClear") { + field(INPA, "$(P)$(R)GetRadiation_2:Hour NPP NMS") + field(INPB, "0") + field(CALC, "A