-
Notifications
You must be signed in to change notification settings - Fork 27
tool change doesn't work in tplang #351
Copy link
Copy link
Open
Description
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:
function changeTool(num,rpm,rate,depth) {
rapid(0,127,38.1);
message('change to tool ' + num + ' and attach probe');
pause();
feed(100);
probe({z: depth});
translate(0,0,19.05);
message('remove probe');
pause()
rapid({z: 25});
tool(num);
speed(rpm);
feed(rate);
message('continue when up to speed');
pause();
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels