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

Retrieving Parameters from ProgramInstructions through the API

#1
Hello,
we are using the API in order to create programs inside of RoboDK and fill them with Instructions. Later in the process we need to retrieve them again. With GetInstruction() it is already possible to retrieve them and get access to their type and name.
1. How can we differentiate between a LIN or a PTP instruction? As far as I can tell it is only possible to know for example if it is a "InstructionType.Move".
2. How can we retrieve additional Parameters such as the waiting time of a pause instruction and the program which is called by a program call?



Kind Regards
Luis
#2
Hi Luis,

Take a look at this example, it shows how to retrieve the parameters dictionary:
//www.sinclairbody.com/doc/en/PythonAPI/exam...structions
Please read the论坛Guidelinesbefore posting!
Find useful information about RoboDK by visiting ourOnline Documentation.
#3
Hey Sam,
thanks again for the fast answer :)
Kind Regards
Luis




Users browsing this thread:
1 Guest(s)