Robot machining project (3x)

This section shows how to customize the robot setup and the machining toolpath to successfully accomplish robot machining. RoboDK’s machining project allows you to convert any generic 3 axis or 5 axis manufacturing operation to a robot simulation and a robot program.

Since we loaded the machining file directly, everything has been created and selected automatically. We can also customize the approach and retract movements in RoboDK.

Example 3 Axis Robot Machining - Image 3

Create Robot Machining Path

You can create the robot machining simulation in RoboDK once you loaded the APT file by selecting Update. This allows you to see if the robot can perform the manufacturing operation.

This example is a simple 3 axis machining operation, and the default settings give us a valid result. The robot machining project allows you to control how the robot behaves along the machining toolpath.

You can follow these steps to update the remaining robot machining operations:

1.Select one or more robot machining operations (holding Shift allows you to generate multiple items in the tree).

2.Right click the selected item(s).

3.Select Update programs.

Example 3 Axis Robot Machining - Image 4

As RoboDK calculates the robot machining path, it will create one new robot program for each machining operation. The white icons represent robot programs. These programs are automatically created by RoboDK. You can simulate each program individually by double clicking it on the tree.

RoboDK also automatically creates a main program that you can run to simulate all robot machining operations in order.

Simulate the robot machining operation

You can double click the Main Program to simulate the whole robot machining operation. You can also double click any sub program to simulate it.

Example 3 Axis Robot Machining - Image 5

Customize the tool orientation

Most machining or manufacturing operation involve a 5 axis constrain. While the position of the tool (TCP) and the cutting axis is defined, you have an additional degree of freedom to define when you use a 6-axis robot arm. This degree of freedom allows us you to turn around the cutting axis and automatically avoid singularities and axis limits.

The easiest way to customize the tool orientation is by selecting the Teach button in the robot machining project. By selecting Teach, you are telling RoboDK you want to follow the current tool orientation so the settings will adjust to match that orientation.

By selecting Show preferred tool path we can preview the tool orientation the robot is trying to follow.

Example 3 Axis Robot Machining - Image 6

You can select Update and Simulate to see the result.

The optimization parameters allow the robot to automatically change the tool orientation if the robot can't achieve the preferred orientation. This parameter is important if you have a large part, if you are working near a singularity or near the limits of the robot workspace. If you see a red mark it means the robot cannot perform the operation.

If you select Show estimated tool path you should see in green the positions that are reachable. It will give you a hint about what the orientation will look like to make the path feasible. This means we are using the additional degree of freedom to automatically avoid robot singularities and axis limits.

Generate the robot programs

You can right click one or more programs and select Generate the robot programs to generate or update the robot programs (files) for your robot controller.

Example 3 Axis Robot Machining - Image 7

In this example you will obtain SRC program files because we are using a KUKA robot controller.

Example 3 Axis Robot Machining - Image 8

You should see the reference and the tool defined in the program the same way you defined them in RoboDK.

You can also use numbered reference and tool names to use the values stored in the controller given their ID.

You can see custom program calls to select the correct tool according to your tool ID and activate the spindle. These settings can be customized in the Program Events menu. You can trigger a special procedure on your robot controller when a certain machining command must be executed, such as changing the tool, the spindle speed or running M codes.

Example 3 Axis Robot Machining - Image 9

Change the Post Processor

Each robot has a default post processor associated with it that should generate valid code for your robot controller. You can easily change the program output depending on the robot controller you use.

Follow these steps to change the post processor:

1.Right click on a program or a robot.

2.Select Select Post Processor to change the post processor.

This setting will apply to all programs using the same robot.

Example 3 Axis Robot Machining - Image 10

If you have a KUKA robot, you should see the KUKA KRC2 post processor selected by default. This should be compatible with KUKA KRC4 controllers as well. If you prefer, you can still select the KUKA KRC4 post processor if you have a KRC4 controller.