How can the cursor disappear after running G-code ends?

More
4 years 7 months ago #236249 by chen1234
When I run NGC files in different configuration interfaces, I found that in some configuration interfaces, the G code program runs to the previous line of M2 and the cursor stops and remains, while in other configuration interfaces, the G code program runs to the previous line of M2 and the cursor stops and then disappears .
I want to realize the function that the M2 cursor disappears or the cursor stays in the line of M2, where should I look? Hope someone can give me a hint.
 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
4 years 7 months ago #236256 by tommylight
In a terminal before and after cursor disappears:
Code:
lsusb
?

Please Log in to join the conversation.

More
4 years 7 months ago #236281 by HansU
@chen I assume with cursor you are meaning the highlighted line in the G-Code?

Please Log in to join the conversation.

More
4 years 7 months ago #236304 by chen1234

@chen I assume with cursor you are meaning the highlighted line in the G-Code?
 
thanks ,hansu
Yes, what I want to express is G-code highlighting, I use Google Translate, maybe some words are not accurate, sorry.
I would like to know how to go about setting the G-code display line?
There is one more small problem. My custom code (M100-M199) and remapping code cannot be highlighted at runtime, how do I set this up?
Below is part of my code:
remap.py:
Code:
def m702(self, **words):     yield INTERP_EXECUTE_FINISH      if self.task:             a = str(words['f'])             b = str(words['p'])             c = str(words['q'])             par = str(a+' '+b+' '+c)             print ('parameters=',str(a+' '+b+' '+c))             main = "/home/xhiqi/linuxcnc-dev/nc_files/e1803/M108C"     #Executable path              os.system(main +' '+ par)
M-code
Code:
#!/bin/bash p=$1   q=$2   ~/.../../BBB  $p $q   #Executable path  exit 0

Please Log in to join the conversation.

More
4 years 7 months ago #236319 by HansU
I think this belongs to a general problem that G- and M-Codes which don't do any motion are not highlighted at all.
It is also an issue that bothers me.

Hans

Please Log in to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum