Hi all,
We are trying to run a 3d printing script created with the robots plug-in for grasshopper.
Due to the quality of the print it comes to 40k lines of code, we run to an issue were the robot takes to long to load the script and when it is finally loaded it does not run.
Just additional info, we are trying to avoid using robodk or any other software with additional cost.
Is there a better what to run it?
Thank you for your help
You can not directly uplad the file to the robot at this length.
You need to use sftp upload.
You can do this directly from Grasshopper or by using an ftp program like Filezilla.
To do this in Grasshopper:
Set the ip of the robot upload to sftp://IPADDRESS
Make sure to change the program name on each upload otherwise the new program will not be loaded.
If you upload to Ursim its a bit more complicated because the login data is different. You need to add the correct filepath and login credentials for ursim.
Here is an example grasshopper script:
RobotsFTPupload01.gh.zip (27.3 KB)
See this discussion for more info:
Hello Robin,
thank you so much for sharing your Grasshopper and Remote Controlling Robot Knowledge. We are running into the same problem with our Robot. He doesnt like long code. Even if we send it through sftp using your script. Remote connection said Sending: robot program but the Robot doesn’t start. When i lower target points and the lines of code it works.
What could be the problem? Is it a Network / Communication Problem or does the Robot has some kind of Limitation?
Many Thanks for your help!
How many lines of code are you sending? There may be a limitation somewhere yes.
What Robot and Software version are you using?
With around 2600 it was okey. I had another Code which with worked with around 4k lines aswell. So maybe if the waypoints are too close together it has difficulties? Unfortunately there is no error message or anything at all. Just no popup and nothing happens.
We are using (contrary to what the title of the forum entry suggests. sorry for that) an UR5e from 2018. PolyScope Version 5.12
I tried with Grasshopper and the code attached. I changed the program titeling timestamps to Seconds to test faster.
UR5e_SFTP_HAWK_Hildesheim.zip (44.3 KB)
What do you mean with “nothing happens” ?
I assume the file gets uploaded correctly, and then nothing happens when you press play?
Or does the upload fail as well?
We are uploading and playing up to 40000 targets, so I believe your amount of targets should be far from any internal limit.
I think the upload should work because i only change the amount of waypoints and Connection Log in Grasshopper says “Sending: Robot program”. But the Log on the Teachpendant doesn’t show anything. And there is no popup that shows up. We had the same issue when we wanted to start a long script file within the polyscope program.
Still trying to figure out where exactly the problem is. What do you think?
Many thanks.
Sorry for the redundant questions but I still haven’t understood your situation:
You are using the FTP upload functionality?
The upload works with short programs.
The short programs appear with the correct name at the top and then you can press play?
Or do the programs start playing immediately after you uploaded them from grasshopper (in which case you are not using the FTP uplad method correctly)
FTP upload loads a .urp file onto the robot that appears in the programs folder. There is no message in the log on FTP uploads.
Can you find the program there after uploading even if it doesnt open by itself?
Programs with more than ~2000 lines can only be upladed with the FTP method.
Are you using the latest Robots plugin version ? There were multiple updates with changes to FTP functionality recently.
thank you for the clearification. It is like you said, the programs start immediately after uploading them. And there where no uploaded files in the program folder. I will check on the FTP upload settings. It looks like i thought it does FTP Upload but it was still sending via TCP/IP.
Yes, according to the script you posted you are not using the sftp ip address.
You need to connect the generated robot IP with the remote connection component like this:
Hi Robin, thank you so much for your help. After connecting it, i had this Error Message:
Error: FTP - System.IO.FileNotFoundException: Die Datei oder Assembly "Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Dateiname: "Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"
bei Robots.Ftp.Upload(Byte[] bytes, String fileName, User user)
bei Robots.RemoteURFtp.Upload(IProgram program)
Tried to install a NuGet Package manually and run into new problem challenges.
Switching from Rhino 7 to Rhino 8 did the trick! Rhino - Scripting
Now Upload is working properly!
1 Like