From d2a2df4d3a721333f43b2da98052bd0f41765910 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/emc/usr_intf/pncconf/build_HAL.py b/src/emc/usr_intf/pncconf/build_HAL.py index ac8ce668c83..1d75b0bc649 100644 --- a/src/emc/usr_intf/pncconf/build_HAL.py +++ b/src/emc/usr_intf/pncconf/build_HAL.py @@ -796,6 +796,10 @@ 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) gm = os.path.join(base, "gmoccapy_postgui.hal") if not os.path.exists(gm): f1 = open(gm, "w") @@ -804,6 +808,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")