@@ -802,19 +802,27 @@ def writebackup(origname):
802802 print ("net tooloffset-z <= motion.tooloffset.z" , file = file )
803803 print (file = file )
804804 gm = os .path .join (base , "gmoccapy_postgui.hal" )
805- if not os .path .exists (gm ):
806- f1 = open (gm , "w" )
807- print (_ ("# ---manual tool change signals to gmoccapy's dialog---" ), file = f1 )
808- print (file = f1 )
809- print ("net tool-change-request => gmoccapy.toolchange-change" , file = f1 )
810- print ("net tool-change-confirmed <= gmoccapy.toolchange-changed" , file = f1 )
811- print ("net tool-number => gmoccapy.toolchange-number" , file = f1 )
812- print (file = f1 )
813- print (_ ("# ---signals to show tool offset in the GUI---" ), file = f1 )
814- print (file = f1 )
815- print ("net tooloffset-x => gmoccapy.tooloffset-x" , file = f1 )
816- print ("net tooloffset-z => gmoccapy.tooloffset-z" , file = f1 )
817- f1 .close ()
805+ f1 = open (gm , "w" )
806+ print (_ ("# Generated by PNCconf at %s" ) % time .asctime (), file = f1 )
807+ print (_ ("# Using LinuxCNC version: %s" ) % self .d .linuxcnc_version , file = f1 )
808+ print (_ ("# If you make changes to this file, they will be" ), file = f1 )
809+ print (_ ("# overwritten when you run PNCconf again" ), file = f1 )
810+ print (file = f1 )
811+ print (_ ("# ---manual tool change signals to gmoccapy's dialog---" ), file = f1 )
812+ print (file = f1 )
813+ print ("net tool-change-request => gmoccapy.toolchange-change" , file = f1 )
814+ print ("net tool-change-confirmed <= gmoccapy.toolchange-changed" , file = f1 )
815+ print ("net tool-number => gmoccapy.toolchange-number" , file = f1 )
816+ print (file = f1 )
817+ print (_ ("# ---signals to show tool offset in the GUI---" ), file = f1 )
818+ print (file = f1 )
819+ print ("net tooloffset-x => gmoccapy.tooloffset-x" , file = f1 )
820+ print ("net tooloffset-z => gmoccapy.tooloffset-z" , file = f1 )
821+ print (file = f1 )
822+ print (_ ("# ---spindle-at-speed indicator---" ), file = f1 )
823+ print (file = f1 )
824+ print (_ ("net spindle-at-speed => gmoccapy.spindle_at_speed_led" ), file = f1 )
825+ f1 .close ()
818826 elif self .d .frontend == _PD ._QTDRAGON :
819827 qt = os .path .join (base , "qtvcp_postgui.hal" )
820828 if not os .path .exists (qt ):
0 commit comments