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

Auto Scroll to running instruction

#1
Hi there. So I'm running my ABB robot directly from my computer which is super great but when debugging programs it's hard to keep track of which move the robot is at. Is there any way to either automatically scroll the instruction tree so that the current Move remains visible or get a serial read out of the line the program is on? Getting RSI on my mouse finger!
#2
It is currently not possible to scroll to the running program instruction. However, we'll make this possible with the next release of RoboDK in a week or so. 

To automatically scroll to the running instruction of your last program you'll be able to run a script like this:
Code:
# This script scrolls the tree to the last running instruction

from robodk import *      # RoboDK API
from robolink import *    # Robot toolbox
import time

# Start the RoboDK API
RDK = Robolink()

# Retrieve all programs
progs = RDK.ItemList(ITEM_TYPE_PROGRAM)

# Start looking for running programs from the bottom
progs.reverse()

# Infinite loop to look for running programs
while True:
    for p in progs:
        if p.Busy():
            # Get the running instruction id
            ins = p.setParam("CurrentInstruction")

            # Scroll the tree to the running program
            p.setParam("Scroll", ins)
            break
       
    time.sleep(0.05)


Attached Files
.py   ScrollToRunning_instruction.py (Size: 668 bytes / Downloads: 100)
#3
(07-30-2024, 05:55 AM)PoppaJim Wrote: Hi there. So I'm running my ABB robot directly from my computer which is super great but when debugging programs it's hard to keep track of which move the robot is at. Is there any way to either automatically scroll the instruction tree so that the current Move remains visible or get a serial read out of the line the program is on? Getting RSI on my mouse finger!

Awesome once again Albert. Look forward to the update.
  




Users browsing this thread:
1 Guest(s)