RoboDK Forum
Run external programs .py 3D printing- Printable Version

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Run external programs .py 3D printing (/Thread-Run-external-programs-py-3D-printing)



Run external programs .py 3D printing-robo1973-06-29-2022

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//m.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


RE: Run external programs .py 3D printing-robo1973-07-01-2022

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?