- Posts: 58
- Thank you received: 0
The problem of incomplete remapping code execution?
4 years 11 months ago #225081
by chen1234
The problem of incomplete remapping code execution? was created 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:
Attachment not found
Attachment not found
Please Log in to join the conversation.
4 years 11 months ago #225089
by bevins
Replied by bevins on topic The problem of incomplete remapping code execution?
Why are you yielding with INTERP_EXECUTE_FINISH with no queuebuster?
Please Log in to join the conversation.
4 years 11 months ago #225184
by chen1234
Replied by chen1234 on topic The problem of incomplete remapping code execution?
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:Why are you yielding with INTERP_EXECUTE_FINISH with no queuebuster?
Attachment not found
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.085 seconds
