Skip to content

Commit

Permalink
Merge pull request #86 from klauer/ref_pytmc_template
Browse files Browse the repository at this point in the history
REF: use pytmc template to generate everything; fix lots of things
  • Loading branch information
klauer authored Sep 6, 2022
2 parents b2cb4a0 + 5c8d65a commit fc8a48a
Show file tree
Hide file tree
Showing 11 changed files with 366 additions and 404 deletions.
2 changes: 2 additions & 0 deletions app/Db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ DB += EthercatMCslit_soft.template
DB += caPutLog.db
DB += TwinCAT_TaskInfo.db
DB += TwinCAT_AppInfo.db
DB += TwinCAT_Dependency.db
DB += TwinCAT_Project.db

DB_INSTALLS += $(IOCADMIN)/db/iocSoft.db
DB_INSTALLS += $(IOCADMIN)/db/devIocInfo.db
Expand Down
17 changes: 17 additions & 0 deletions app/Db/TwinCAT_Dependency.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
record(lsi, "$(PREFIX):ProjectInfo:$(DEPENDENCY)") {
field(DISP, 1)
field(DTYP, "Soft Channel")
field(INP, ["$(VERSION) -> $(VENDOR)"])
field(PINI, "YES")
field(SIZV, 100)
info(archive, "monitor 1: VAL")
}

record(lsi, "$(PREFIX):ProjectInfo:$(DEPENDENCY):Vendor") {
field(DISP, 1)
field(DTYP, "Soft Channel")
field(INP, ["$(VENDOR)"])
field(PINI, "YES")
field(SIZV, 100)
info(archive, "monitor 1: VAL")
}
40 changes: 40 additions & 0 deletions app/Db/TwinCAT_Project.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
record(lsi, "$(PREFIX):ProjectInfo:PLCHost") {
field(DISP, "1")
field(DTYP, "Soft Channel")
field(INP, ["$(PLC_HOST)"])
field(PINI, "YES")
info(archive, "monitor 1: VAL")
}

record(lsi, "$(PREFIX):ProjectInfo:Project") {
field(DISP, "1")
field(DTYP, "Soft Channel")
field(INP, ["$(PROJECT)"])
field(PINI, "YES")
info(archive, "monitor 1: VAL")
}

record(lsi, "$(PREFIX):ProjectInfo:Hash") {
field(DISP, "1")
field(DTYP, "Soft Channel")
field(INP, ["$(HASH)"])
field(PINI, "YES")
field(SIZV, 100)
info(archive, "monitor 1: VAL")
}

record(lsi, "$(PREFIX):ProjectInfo:Version") {
field(DISP, "1")
field(DTYP, "Soft Channel")
field(INP, ["$(VERSION)"])
field(PINI, "YES")
info(archive, "monitor 1: VAL")
}

record(lsi, "$(PREFIX):ProjectInfo:Pytmc") {
field(DISP, "1")
field(DTYP, "Soft Channel")
field(INP, ["$(PYTMC)"])
field(PINI, "YES")
info(archive, "monitor 1: VAL")
}
Loading

0 comments on commit fc8a48a

Please sign in to comment.