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

Run external programs .py 3D printing

#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?


Messages In This Thread
Run external programs .py 3D printing - byrobo1973- 06-29-2022,福音11:24有空
RE: Run external programs .py 3D printing - byrobo1973- 07-01-2022, 07:02 AM



Users browsing this thread:
1 Guest(s)