type in the terminal list /l tool1 and list /l tool2 and you should have tool1 and tool2 points.
TCP multiple tools
-
Alexandru -
January 21, 2022 at 11:22 AM -
Thread is Unresolved
-
-
That is your problem... TOOL1 and TOOL2 are used only using block programming.
You need to create the tool1 and tool2 points and put the QTOOL to OFF.
-
It would serve you well to read up on the following:
SYSTEM SWITCH QTOOL
BLOCK Programming tool Coordinate setup
AS Programming tool Coordinate setup
TOOL1 etc in the AS file relate to tool data set in Aux 0304.
(This is the data you are seeing in your AS file).
Your code is using AS Language tool commands, which cannot directly address Aux 0304 values as this tool data is used for BLOCK programming.
When using TOOL xxxx AS Language command, this actually uses a location transformation variable you have previously defined or by direct transformation value entry.
If tool1 and tool2 transformation values are not defined, then an undefined variable error will result.
Exactly as your code is.....so what you are seeing is correct.
So to resolve your issue if you are only using AS Language, you need to:
1. QTOOL OFF
2. Define tool1 and tool2 as transformation variables by:
POINT tool1 = TRANS(-307,0,15.5)
POINT tool2 = TRANS(-167.1,0,-67)
Your robot will then move to a and b relative to the tool used after executing the AS tool command.