Skip to content

Commit

Permalink
Merge pull request #60 from ghalym/master
Browse files Browse the repository at this point in the history
ENH: Adding a db file that includes the records for the global type P…
  • Loading branch information
ghalym authored Aug 7, 2020
2 parents cba838b + 9eb0a10 commit f9978a2
Show file tree
Hide file tree
Showing 3 changed files with 330 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ DB += EthercatMCslitAvoidCollSoftlimits.template
DB += EthercatMCslit_hard.template
DB += EthercatMCslit_soft.template
DB += caPutLog.db
DB += TwinCAT_TaskInfo.db

DB_INSTALLS += $(IOCADMIN)/db/iocSoft.db
DB_INSTALLS += $(IOCADMIN)/db/devIocInfo.db
Expand Down
326 changes: 326 additions & 0 deletions app/Db/TwinCAT_TaskInfo.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,326 @@

record(longin,"$(PREFIX):TaskInfo:1:CycleTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].CycleTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:1:Priority"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].Priority?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(waveform,"$(PREFIX):TaskInfo:1:TaskName"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt8ArrayIn")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].TaskName?")
field(NELM,63)
field(SCAN,"I/O Intr")
field(FTVL,"CHAR")
info(archive, "monitor 1: VAL")
}


record(longin,"$(PREFIX):TaskInfo:1:AdsPort"){
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].AdsPort?")
info(archive, "monitor 1: VAL")
field(SCAN,"I/O Intr")
}

record(longin,"$(PREFIX):TaskInfo:1:CycleCount"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].CycleCount?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:1:DcTaskTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].DcTaskTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:1:LastExecTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].LastExecTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:1:FirstCycle"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].FirstCycle?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:1:CycleTimeExceeded"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].CycleTimeExceeded?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:1:InCallAfterOutputUpdate"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].InCallAfterOutputUpdate?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:1:RTViolation"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[1].RTViolation?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}


record(longin,"$(PREFIX):TaskInfo:2:CycleTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].CycleTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:2:Priority"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].Priority?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(waveform,"$(PREFIX):TaskInfo:2:TaskName"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt8ArrayIn")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].TaskName?")
field(NELM,63)
field(SCAN,"I/O Intr")
field(FTVL,"CHAR")
info(archive, "monitor 1: VAL")
}


record(longin,"$(PREFIX):TaskInfo:2:AdsPort"){
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].AdsPort?")
info(archive, "monitor 1: VAL")
field(SCAN,"I/O Intr")
}

record(longin,"$(PREFIX):TaskInfo:2:CycleCount"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].CycleCount?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:2:DcTaskTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].DcTaskTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:2:LastExecTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].LastExecTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:2:FirstCycle"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].FirstCycle?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:2:CycleTimeExceeded"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].CycleTimeExceeded?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:2:InCallAfterOutputUpdate"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].InCallAfterOutputUpdate?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:2:RTViolation"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[2].RTViolation?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:3:CycleTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].CycleTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:3:Priority"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].Priority?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(waveform,"$(PREFIX):TaskInfo:3:TaskName"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt8ArrayIn")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].TaskName?")
field(NELM,63)
field(SCAN,"I/O Intr")
field(FTVL,"CHAR")
info(archive, "monitor 1: VAL")
}


record(longin,"$(PREFIX):TaskInfo:3:AdsPort"){
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].AdsPort?")
info(archive, "monitor 1: VAL")
field(SCAN,"I/O Intr")
}

record(longin,"$(PREFIX):TaskInfo:3:CycleCount"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].CycleCount?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:3:DcTaskTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].DcTaskTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(longin,"$(PREFIX):TaskInfo:3:LastExecTime"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].LastExecTime?")
field(SCAN,"I/O Intr")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:3:FirstCycle"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].FirstCycle?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:3:CycleTimeExceeded"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].CycleTimeExceeded?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:3:InCallAfterOutputUpdate"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].InCallAfterOutputUpdate?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

record(bi,"$(PREFIX):TaskInfo:3:RTViolation"){
field(PINI, "1")
field(TSE, -2)
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),0,1)ADSPORT=851/POLL_RATE=1/TwinCAT_SystemInfoVarList._TaskInfo[3].RTViolation?")
field(SCAN,"I/O Intr")
field(ZNAM,"FALSE")
field(ONAM,"TRUE")
info(archive, "monitor 1: VAL")
}

3 changes: 3 additions & 0 deletions iocBoot/templates/st.cmd.template
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ dbLoadRecords("iocSoft.db", "IOC={{prefix}}")
dbLoadRecords("save_restoreStatus.db", "P={{prefix}}{{delim}}")
dbLoadRecords("caPutLog.db", "IOC=${IOC}")

## TwinCat System Databse files ##
dbLoadRecords("TwinCAT_TaskInfo.db", "PORT={{ asyn_port }}, PREFIX={{prefix}}")

cd "$(IOC_TOP)"

## Database files ##
Expand Down

0 comments on commit f9978a2

Please sign in to comment.