-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tool change doesn't work in tplang #351
Comments
It turns out that gcode files can be called from tpl files using the gcode command, like this:
In addition, an new command called gexec is being release with version 2.0.3 when allow you to execute individual gcode line like this: This resolves the issue. |
I have not been able to get through a tool change in tplang. I am running V2.0.3rc2 and here's what I get: When I try to run the program below above I immediately get an error that says "Switch not enabled: s23".
If I comment out the probe() command, the error goes away, of course it doesn't probe. If try to run following code, it ends up setting the offset to 19.05 rather than setting the position to 19.05 and adjusting the offset accordingly.
Sometimes the actual position that gets set is a large number. Then, when I tell Z to move to some reasonable position so I can remove the bit, the bit drives into the table. When I try this code with the same gcodes in another file, I get more non-sensible numbers in position and offset.
I am guessing that the machine state does not get passed correctly between gcode and tplang when running gcode() or gexec(); At the moment, my priority is to get probe() fixed, but it would also be nice to have gexec() and gcode() working. |
The tool() command in tplang does not cause the 'tool-change' code on the SETTINGS->General page to execute.
I tried to work around this by creating a function that would prompt the user to change tools and then run through a probing sequence.
Unfortunately, I found that while the probe() command causes the axis to move down toward the probe, it does not see the probe when contact is made.
It also seems that it is not possible to set the position of an axis after probe contact is made.
Here is the code that I created for probing:
The text was updated successfully, but these errors were encountered: