This example will help you understand the basics of robot machining in RoboDK and how to convert a 3-axis robot machining job to a robot machining simulation and robot program.
Once you have defined your machining strategy with your CAM software, you can export your machining program as a Gcode or as an APT file so that you can load it in RoboDK to create a robot machining project. In this example, we will be using an APT file to create a robot machining project.
You can find this sample RoboDK project int the following location C:/RoboDK/Other/Plugin-MecSoft/Mold-Core.rdk.
In this example, you will learn how to convert a machining program to a robot machining simulation and a robot program. More specifically, you will learn how to generate robot programs valid for your robot controller from NC files such as an APT file.
This section shows how you can export a machining job from Mecsoft RhinoCAM software to RoboDK. An APT file is used to load the toolpath in RoboDK and automatically sent using a custom BAT file.
Follow these steps in RhinoCAM to export the machining job to RoboDK:
1.Right click your machining job project from RhinoCAM.
2.SelectPost Allto generate the machining programs and automatically load everything in RoboDK.
You can see that RoboDK automatically splits the robot machining program in the same 4 machining operations we created in the CAM software.
The robot machining project is created using a default robot cell that we can customize. In this example we use a KUKA robot and a default spindle where the tool (or TCP) represents the tool holder.
By default, when loading APT programs, RoboDK will add the tools you define in your machining project. The tools will be added to your active TCP when you load the APT file. The correct tools will also be preselected in your robot machining project.
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.
You can create the robot machining simulation in RoboDK once you loaded the APT file by selectingUpdate.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 (holdingShiftallows you to generate multiple items in the tree).
2.Right click the selected item(s).
3.SelectUpdate programs.
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 bydouble clickingit on the tree.
RoboDK also automatically creates a main program that you can run to simulate all robot machining operations in order.
You can double click theMain Programto simulate the whole robot machining operation. You can also double click any sub program to simulate it.
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 selectingTeach, you are telling RoboDK you want to follow the current tool orientation so the settings will adjust to match that orientation.
By selectingShow preferred tool path我们可以预览工具取向机器人trying to follow.
You can selectUpdateandSimulateto 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 selectShow estimated tool pathyou 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.
You can right click one or more programs and selectGenerate the robot programsto generate or update the robot programs (files) for your robot controller.
In this example, if we are using a KUKA KRC robot controller we’ll obtain SRC program files.
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 theProgram Events menu. You can trigger a special procedure on your robot controller when a certain machining command must be executed, such as changing thetool,spindle speedor runningM codes.
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.SelectSelect Post Processorto change the post processor.
This setting will apply to all programs using the same robot.
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.