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

Run external programs .py 3D printing

#1
Please help
t postprosesoer基因和发送程序he UR3 robot
I generate and send the program to the UR3 robot
I can't run extruder.py and speed.py external programs while executing the main program
How do extruder handlers derive
It works//www.sinclairbody.com/doc/en/Robot-Machining.html#Print3D
Can't run extruder.py on the robot UR3 ?

Code:
def RunCode(self, code, is_function_call = False):

if is_function_call:

if code.startswith("Extruder("):

# Intercept the extruder command.

# if the program call is Extruder(123.56)

# we extract the number as a string

# and convert it to a number

self.PRINT_E_NEW = float(code[9:-1])

/RUN extruder.py ????????????????/

# Skip the program call generation

return

else:

self.addline(code + "()")

else:

# Output program code

self.addline(code)
The script I want to call from the attachment


Attached Files
.py Extruder.py(Size: 2.54 KB / Downloads: 111)
#2
Code:
if code.startswith("Extruder("):

# Intercept the extruder command.
# if the program call is Extruder(123.56)
# we extract the number as a string
# and convert it to a number

self.PRINT_E_NEW = float(code[9:-1])
#self.SPEED_MS = float(code[9:-1])

#if self.PRINT_E_NEW is not None :



RUN_ON_ROBOT = True
if RDK.RunMode() == RUNMODE_SIMULATE:
RUN_ON_ROBOT = False

if RUN_ON_ROBOT:
prog1 = RDK.Item('Extruder_F', ITEM_TYPE_PROGRAM)

#prog1.setRunType(PROGRAM_RUN_ON_SIMULATOR)

prog1.setRunType(PROGRAM_RUN_ON_ROBOT)
prog1.RunProgram()
else:
RDK.setRunMode(RUNMODE_SIMULATE)
return
While calling Extruder,
I run the program
You did I am generating a program in RoboDK and it takes a long time Is it supposed to be
Is something wrong?




Users browsing this thread:
1 Guest(s)