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

Add custom line to a program

#1
I am creating a robot program with RoboDK's Python API and using the Fanuc R30i as a post processor. My question is, while the Robot Program is being created, I want to add a custom line to the program. Is there a way to do this? For example, add a variable to the 5th line.
#2
Using the RunInstruction() you can add a program call, code, message, or comment to the program.
https://robodk.com/doc/en/PythonAPI/robo...nstruction
#3
Thank you, so is there a special command for Touch Sensing?
#4
You can use the SearchL command to move to a target (linear move), while waiting for a digital input to be triggered (touch probe signal for example).

You can find more information here:
https://robodk.com/doc/en/PythonAPI/robo...em.SearchL
  




Users browsing this thread:
1 Guest(s)