From 7c35b024334f8a028c834ba54d46542878be85b8 Mon Sep 17 00:00:00 2001 From: Hans Unzner Date: Sat, 6 Jan 2024 15:17:13 +0100 Subject: [PATCH] pncconf: generate connections to display tooloffset in gmoccapy --- src/emc/usr_intf/pncconf/build_HAL.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/emc/usr_intf/pncconf/build_HAL.py b/src/emc/usr_intf/pncconf/build_HAL.py index ac8ce668c83..e3d741b66ab 100644 --- a/src/emc/usr_intf/pncconf/build_HAL.py +++ b/src/emc/usr_intf/pncconf/build_HAL.py @@ -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") @@ -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")