The problem of incomplete remapping code execution?
03 Nov 2021 09:11 #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:
Attachments:
Please Log in or Create an account to join the conversation.
03 Nov 2021 11:13 #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?
The following user(s) said Thank You: chen1234
Please Log in or Create an account to join the conversation.
04 Nov 2021 01:49 #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?
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.121 seconds