How to flip the TCP (Z vector pointing into the tool)
By default, in Robotmaster’s tool frame Z+ points out of the spindle or welding torch.
If needed, we can change the Z+ to have the tool pointing back into the spindle; we can rotate 180 degrees around X+ or Y+ of the tool frame.
Robotmaster V6
To change the Z+ of the tool frame, modifications need to be done in the .ROBX of the Robot and the .XML of the Tooling; below are the steps to follow:
When initially creating the tooling, use the Robotmaster convention for the TCP (Z axis pointing outwards from the tooling).
Modification in the .ROBX of the Robot:
Specify the axis around which we are rotating the Z+ of the tool frame.
Line to be modified: <toolAVector rotateAround="" />.
Possible values: xAxis, yAxis, none.
Result: the Z+ of the tool is rotated 180 around the specified axis, either X or Y, or remain unchanged if none is used.
Modification in the .XML of the Tooling:
Depending on the selected axis around which we did the rotation, the spindle rotation matrix needs to be updated.
Line to be modified: <SpindleRotation value="Nx, Ny, Nz, Ox, Oy, Oz, Ax, Ay, Az" />
Modification: We flip the sign for two remaining vectors in the Spindle Rotation Matrix and keep our axis of rotation sign unmodified.
Robotmaster V7 & Above
Similar to Robotmaster V6, we have to rotate 180 degrees around the tool frame’s X+ or Y+ axes. The difference, however, is that V7 no longer depends on .ROBX files or tooling .XMLs but on .rmcell and.rmtooling files.
Open the desired .rmcell that you wish to modify.
Click on the Robot model.
Show the advanced settings.
Tool frame flip, can be set as:
none
xAxis
yAxis
Figure 1: Shows the steps to follow to flip TCP.
Notes:
The steps shown above for Robotmaster V7 & above, are the equivalent to the .ROBX modifications for Robotmaster V6.
Unlike Robotmaster V6, for Robotmaster V7 & above, this is all that needs to be done. No modifications need to be done to the .rmtooling files.
The outcome will look like this:
Figure2: Shows a TCP flipped around the Y axis