07-01-2022, 07:02 AM
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
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?