05-03-2018, 10:56 PM
You can do the following:
robot.RunInstruction("Your popup message (pause execution)", INSTRUCTION_SHOW_MESSAGE)
More information here:
//m.sinclairbody.com/doc/en/PythonAPI/robo...nstruction
the robot variable can also be a program generated using AddProgram.
So you can do things like:
program.RunInstruction('Setting the spindle speed', INSTRUCTION_COMMENT)
program.RunInstruction('SetRPM(25000)', INSTRUCTION_INSERT_CODE)
program.RunInstruction('Done setting the spindle speed. Ready to start!', INSTRUCTION_SHOW_MESSAGE)
program.RunInstruction('Program1', INSTRUCTION_CALL_PROGRAM)
确保更新RoboDK has been improved recently:
//m.sinclairbody.com/download
robot.RunInstruction("Your popup message (pause execution)", INSTRUCTION_SHOW_MESSAGE)
More information here:
//m.sinclairbody.com/doc/en/PythonAPI/robo...nstruction
the robot variable can also be a program generated using AddProgram.
So you can do things like:
program.RunInstruction('Setting the spindle speed', INSTRUCTION_COMMENT)
program.RunInstruction('SetRPM(25000)', INSTRUCTION_INSERT_CODE)
program.RunInstruction('Done setting the spindle speed. Ready to start!', INSTRUCTION_SHOW_MESSAGE)
program.RunInstruction('Program1', INSTRUCTION_CALL_PROGRAM)
确保更新RoboDK has been improved recently:
//m.sinclairbody.com/download