The problem of incomplete remapping code execution?

More
03 Nov 2021 09:11 #225081 by chen1234
I remapped a G code. When I used it, I found that it could not wait for the remapping code to complete before executing the next line of code. The function of my remapping code is to pass parameters to the C++ program. I use .cpp to control the movement of the galvanometer, but when I execute the G code, the galvanometer has not stopped moving, the G code will execute the next line. How should this problem be solved? By receiving the return value of .cpp to remap.py, is it okay to let .py return a value to cnc? Thanks in advance, here is my code:
 
Attachments:

Please Log in or Create an account to join the conversation.

More
03 Nov 2021 11:13 #225089 by bevins
Why are you yielding with INTERP_EXECUTE_FINISH with no queuebuster? 
The following user(s) said Thank You: chen1234

Please Log in or Create an account to join the conversation.

More
04 Nov 2021 01:49 #225184 by chen1234

Why are you yielding with INTERP_EXECUTE_FINISH with no queuebuster? 

I used this return value, but it will report an error and cannot start cnc. I think there may be a problem with my way of using it. Can you tell me how to use it or where can I see an example? Thanks in advance, here is my code and errors:
 
 
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.250 seconds
Powered by Kunena Forum