improvement for ftp upload with UR #244
Replies: 2 comments
-
If a program gets uploaded via ftp with the same name, it currently doesn't replace the existing one? That seems like a bug. |
Beta Was this translation helpful? Give feedback.
-
It does replace the file as far as I remember but it does not reload the currently loaded file. @KonradJuenger It uses a simple python script that gets the current time when the Upload button is pressed, this is the code: import rhinoscriptsyntax as rs
from datetime import datetime
def give_time():
time = datetime.now()
time_string = time.strftime("%Y%m%d%H%M")
return time_string
if get_time:
time_string = give_time() you can find the gh file in this zip folder (github doesnt allow direct uploading of .gh files) |
Beta Was this translation helpful? Give feedback.
-
Uploading with ftp is convenient and the only way to transfer long programs over the network to UR. Unfortunately the robot gets confused with programs having the same (default) name. This results in the wrong program loading / running. Adding a timestamp to the program name helps but after a while the hard dive space of the robot is full and uploading doesn't work anymore.
Would it be possible to enable override the program with the same name? this way a simple counter would prevent the robot from executing the wrong file, but hard drive space would never run out.
Beta Was this translation helpful? Give feedback.
All reactions