Skip to content

tool change doesn't work in tplang #351

@DougCoffland

Description

@DougCoffland

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();
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions