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.
Thread Rating:
Add custom line to a program |
06-07-2024, 08:33 AM
Using the RunInstruction() you can add a program call, code, message, or comment to the program.
https://robodk.com/doc/en/PythonAPI/robo...nstruction
06-07-2024, 02:36 PM
Thank you, so is there a special command for Touch Sensing?
06-07-2024, 03:10 PM
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) |
Copyright © 2025 RoboDK Global
Powered by MyBB