08-28-2019, 08:44 AM
I'm currently working on a Python script that I want to use to automate a machining project on our robot. The creation of the machining project from the GCode is already working. Now I would like to insert a position before the first point of the machining program, so that the robot first moves over the first path point and then starts the program. My problem is now, I find in the documentation no way to read the position of the first point.
I tried to have the InstuctionList output, but here I can not find any way to identify the first move command and then read out the position data.
The code I used looks like this:
I tried to have the InstuctionList output, but here I can not find any way to identify the first move command and then read out the position data.
The code I used looks like this:
Code:
robot.setPoseFrame(RDK.Item('FrameTest'))
path_settings = RDK.AddMachiningProject("milling")
prog, status = path_settings.setMachiningParameters(ncfile="Milling Bowl 3x.nc", part=RDK.Item('FrameTest'), params = "RotZ_Range=45 RotZ_Step=5 NormalApproach=50")
ItemList = prog.InstructionList()
print(ItemList)