Skip to content

Commit

Permalink
Added status PVs and a generic modbus record
Browse files Browse the repository at this point in the history
  • Loading branch information
JJL772 committed Feb 7, 2020
1 parent 9af3c15 commit 0053eae
Show file tree
Hide file tree
Showing 7 changed files with 361 additions and 9 deletions.
158 changes: 158 additions & 0 deletions ek9000App/Db/EK9000_Status.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
#
# Various status PVs for the EK9k
#

record(longin,"$(EK9K):AnalogOutputSize")
{
field(EGU, "bytes")
field(INP, "@$(EK9K),0x1010")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):AnalogInputSize")
{
field(EGU, "bytes")
field(INP, "@$(EK9K),0x1011")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):DigitalInputSize")
{
field(EGU, "bits")
field(INP, "@$(EK9K),0x1012")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):DigitalOutputSize")
{
field(EGU, "bits")
field(INP, "@$(EK9K),0x1013")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):WatchdogExpTime")
{
field(SCAN, "10 second")
field(EGU, "ms")
field(INP, "@$(EK9K),0x1020")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):FallbacksTriggered")
{
field(SCAN, "10 second")
field(INP, "@$(EK9K),0x1021")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):TCPConnections")
{
field(SCAN, "10 second")
field(INP, "@$(EK9K),0x1022")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):HardwareVersion")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1030")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):SoftwareVersionMain")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1031")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):SoftwareVersionSub")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1032")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):SoftwareVersionBeta")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1033")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):SerialNumber")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1034")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):DayOfMfg")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1035")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):MonthOfMfg")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1036")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):YearOfMfg")
{
field(PINI,"YES")
field(INP,"@$(EK9K),0x1037")
field(DTYP, "EK9000ParamRO")
}

record(longin,"$(EK9K):EbusStatus")
{
field(INP,"@$(EK9K),0x1040")
field(SCAN,"1 second")
field(LOLO, 0)
field(LOW, 0)
field(LSV, "MAJOR")
field(LLSV, "MAJOR")
field(DTYP, "EK9000ParamRO")
}

record(longout,"$(EK9K):WatchdogTime")
{
field(OUT,"@$(EK9K),0x1120")
field(DTYP, "EK9000ParamRW")
field(VAL, 1000)
field(PINI, "YES")
}

record(longout,"$(EK9K):WatchdogType")
{
field(OUT,"@$(EK9K),0x1122")
field(DTYP, "EK9000ParamRW")
field(VAL, 1)
field(PINI, "YES")
}

record(longout,"$(EK9K):FallbackMode")
{
field(OUT,"@$(EK9K),0x1123")
field(DTYP, "EK9000ParamRW")
field(VAL, 0)
field(PINI, "YES")
}

record(longout,"$(EK9K):WriteLock")
{
field(OUT,"@$(EK9K),0x1124")
field(DTYP, "EK9000ParamRW")
field(VAL, 1)
field(PINI, "YES")
}

record(longout,"$(EK9K):EBusControl")
{
field(OUT,"@$(EK9K),0x1140")
field(DTYP, "EK9000ParamRW")
}
1 change: 1 addition & 0 deletions ek9000App/Db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DB += EL1001.template EL1034.template EL1134.template EL1804.template EL2008
DB += EL1001.substitutions EL1088.substitutions EL1382.substitutions EL2002.substitutions EL3002.substitutions EL3044.substitutions EL3101.substitutions EL3142.substitutions EL4002.substitutions EL4028.substitutions EL1002.substitutions EL1094.substitutions EL1702.substitutions EL2004.substitutions EL3004.substitutions EL3048.substitutions EL3102.substitutions EL3144.substitutions EL4004.substitutions EL4031.substitutions EL1004.substitutions EL1098.substitutions EL1712.substitutions EL2008.substitutions EL3008.substitutions EL3051.substitutions EL3104.substitutions EL3151.substitutions EL4008.substitutions EL4032.substitutions EL1008.substitutions EL1104.substitutions EL1722.substitutions EL2022.substitutions EL3012.substitutions EL3052.substitutions EL3111.substitutions EL3152.substitutions EL4011.substitutions EL4034.substitutions EL1012.substitutions EL1114.substitutions EL1804.substitutions EL2024.substitutions EL3014.substitutions EL3054.substitutions EL3112.substitutions EL3154.substitutions EL4012.substitutions EL4038.substitutions EL1014.substitutions EL1124.substitutions EL1808.substitutions EL2042.substitutions EL3021.substitutions EL3058.substitutions EL3114.substitutions EL3161.substitutions EL4014.substitutions EL1018.substitutions EL1134.substitutions EL1809.substitutions EL2084.substitutions EL3022.substitutions EL3061.substitutions EL3121.substitutions EL3162.substitutions EL4018.substitutions EL1024.substitutions EL1144.substitutions EL1814.substitutions EL2088.substitutions EL3024.substitutions EL3062.substitutions EL3122.substitutions EL3164.substitutions EL4021.substitutions EL1034.substitutions EL1184.substitutions EL1819.substitutions EL2124.substitutions EL3041.substitutions EL3064.substitutions EL3124.substitutions EL3174.substitutions EL4022.substitutions EL1084.substitutions EL1202.substitutions EL2001.substitutions EL3001.substitutions EL3042.substitutions EL3068.substitutions EL3141.substitutions EL4001.substitutions EL4024.substitutions

DB+=coe_param_test.db
DB+=EK9000_Status.db

include $(TOP)/configure/RULES
#----------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions ek9000App/Db/coe_param_test.db
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ record(int64out,"TestTerm4:UserCalibrationGain")
field(OUT, "@EK9K1,4,0x8000,0x18,int16")
field(DTYP, "CoEParamInt16RW")
#field(SCAN, "1 second")
}

record(longin,"EK9K1:AnalogInputSize")
{
field(INP, "@EK9K1,0x1011")
field(DTYP,"EK9000ParamRO")
field(SCAN,"1 second")
}
Loading

0 comments on commit 0053eae

Please sign in to comment.