Each robot manufacturer has its own definition of how tools should be mounted on the flange. This definition MUST always be adhered to, otherwise, the tool orientations will be incorrect. Examples:
Tools in the simulation must be mounted with the correct “foundation” and imported. The position and orientation of the tool must be clearly defined.
If no clear mounting position/orientation on the flange can be found, a position including orientation should be defined. Ideally, it will be defined at 0 degrees, if that is not possible, rotate in 90-degree steps. Odd rotations usually lead to mistakes in thinking.
Put the robot in the cannon position (calibration position). This way, you can compare the position and rotation of the tool on the simulation model in RoboDK and on the real robot.
A CAD model of your tool is needed for the optimal result.
The tool must be correctly prepared geometrically with an adapter plate, docking system, etc., but without screws, hoses, or other mounting elements. Only the correct geometry and size of the tool are needed.
In the CAD file, the coordinate system of the tool must be placed in the middle of the flange. Pay attention to the rotation of the coordinate system:
Z-axis: on the flange and on the tool (mounting surface) should point in the same direction. The origin of both coordinate systems should also coincide.
X and Y axes should also be adapted to the directions on the flange.
Start with a straight tool first! It is (at the beginning) much easier to set up than a tool with an angle!
Then export the CAD drawing of the tool as a STEP file (.step or .stp).
The file size should be under 50MB. If the file is larger, experience has shown that it can cause crashes in RoboDK or lead to incorrect memory processes. Therefore, once again: fastening and connecting elements of the tool should only be exported if they are absolutely necessary for “assembly” in the simulation. In any other case please hide them and do not export for this purpose.
There are RoboDK plugins for several CAD systems. If you import files using the CAD plugins, the previously described (empirical) 50 MB restrictions do not apply.