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:
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:
Time to create page: 0.200 seconds