Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python code to PRG

#3
(04-25-2019, 06:08 AM)Jeremy Wrote:Can you provide what you did so that we can take a look at it and help you?

Jeremy

Hi,

Sorry for the late response, this is the code used.

The robot is a ABB 6400 sc4 teachpendant.

Code:
# ----------------------------------------------------------------------
# simple test 1
# PB 01 01 2019
# ----------------------------------------------------------------------

from robolink import * # API to communicate with RoboDK
from robodk import * # basic matrix operations
import random
import time

# interaction through Robolink()
RDK = Robolink()

# get the robot item:
robot = RDK.Item('', ITEM_TYPE_ROBOT)
# robot = RDK.Item('ABB IRB 6400R 2.8 200 Base')

# ================================================================

# get the home target and the welding targets:
home = RDK.Item('Home')

# move the robot to home, then to the center:
#robot.MoveJ(home)

# Set the speed to 50 mm/s
robot.setSpeed(4)

for i in range(4):
robot.setJoints([ 0, 90, -90, 0, 0, 0 ])
#robot.moveL([ 0, 90, -90, 0, 0, 0 ])
pause(1)
robot.setJoints([ 22, 50, -90, 0, 0, 0 ])
pause(1)

#robot.moveJoints([ 44, -24, -90, 52, 54, 180 ])

#pause(3)

# robot.MoveJ(home)

When generating program is gives us a mod & proc but otherwise completely empty file.


Messages In This Thread
Python code to PRG - byquinten- 04-23-2019, 08:43 PM
RE: Python code to PRG - byJeremy- 04-25-2019, 06:08 AM
RE: Python code to PRG - byquinten- 04-26-2019, 02:11 PM
RE: Python code to PRG - byJeremy- 04-26-2019, 02:38 PM



Users browsing this thread:
1 Guest(s)