Skip to content

Commit

Permalink
pncconf: generate connections to display tooloffset in gmoccapy
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Jan 8, 2024
1 parent 1cd6dad commit 7c35b02
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/emc/usr_intf/pncconf/build_HAL.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,11 @@ def writebackup(origname):
print(file=file)

if self.d.frontend == _PD._GMOCCAPY:
print(_("# ---signals to show tool offset in the GUI---"), file=file)
print(file=file)
print("net tooloffset-x <= motion.tooloffset.x", file=file)
print("net tooloffset-z <= motion.tooloffset.z", file=file)
print(file=file)
gm = os.path.join(base, "gmoccapy_postgui.hal")
if not os.path.exists(gm):
f1 = open(gm, "w")
Expand All @@ -804,6 +809,11 @@ def writebackup(origname):
print("net tool-change-request => gmoccapy.toolchange-change", file=f1)
print("net tool-change-confirmed <= gmoccapy.toolchange-changed", file=f1)
print("net tool-number => gmoccapy.toolchange-number", file=f1)
print(file=f1)
print(_("# ---signals to show tool offset in the GUI---"), file=f1)
print(file=f1)
print("net tooloffset-x => gmoccapy.tooloffset-x", file=f1)
print("net tooloffset-z => gmoccapy.tooloffset-z", file=f1)
f1.close()
elif self.d.frontend == _PD._QTDRAGON:
qt = os.path.join(base, "qtvcp_postgui.hal")
Expand Down

0 comments on commit 7c35b02

Please sign in to comment.