Comments for Zacobria Universal-Robots community - a help forum with hints tips and how to use universal robot CB2

Zacobria Robot community forum Universal-Robots

08/17/2017 05:25 PM
Comment on UR Script: Thread-in-script-file-example by Sascha
Hi Lars! Thank you a lot for your help! My programm is working now. Beste Regards Sascha

08/16/2017 11:05 PM
Comment on UR Script: Thread-in-script-file-example by zacopressadmin
Hi Sascha Thanks for the question. It is possible to make a list. At this link there is an example of variables as lists. (In this example the list contains poses - so the "p" might not be neccesary if the list is not made of poses). The number of elements might also need to be predefined e.g. making a variable var_1 := [0,0,0,0,0,0] http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/knowledge-base/planes-and-position-variables-2/ And then insert values into a element as var_1[0] := analog_in(0) var_1[1] := analog_in(1) " " Author: <a href="https://plus.google.com/u/0/116832821661215606670?rel=author" rel="nofollow">By Zacobria Lars Skovsgaard</a> Accredited Universal Robots support Centre and Forum. <br /> <br /> <a href="http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/" rel="nofollow">Also check out the CB3 forum</a> <div class="fb-like" data-href="http://www.zacobria.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="arial" data-action="recommend"></div> <div class="fb-share-button" data-href="https://zacobria.com" data-layout="button_count"></div> <br /> <script type="IN/Share" data-counter="right" data-onsuccess="LinkedInShare"></script> <div class="g-follow" data-annotation="bubble" data-height="20" data-href="https://plus.google.com/116832821661215606670" data-rel="author"></div> <div class="g-plusone" data-size="medium" data-annotation="bubble" data-width="300"></div> <div class="g-plus" data-action="share" data-annotation="bubble"></div> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.zacobria.com" data-via="zacobria" rel="nofollow">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> <a href="https://twitter.com/zacobria" class="twitter-follow-button" data-show-count="true" rel="nofollow">Follow @zacobria</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

08/16/2017 09:43 PM
Comment on UR Script: Thread-in-script-file-example by Sascha
Hi there! I try to create a thread, with which i can save analog_in values (from a sensor) every 0.5 seconds. The analog_in values shall all be saved in a vector or something similar. My Progress so far is as following: thread myThread(): i=1 z=[] #here i need a kind of "empty vector" while True: z[i] = analog_in(0) i = i+1 sleep(0.5) end end Do you know how to solve this Problem, or create a vector/table ... something else for saving all the values? Thanks a lot! Best Regards Sascha

08/09/2017 03:43 PM
Comment on UR Script: Commands via Socket connection by zacopressadmin
Hi Gavin Sure there is a reply. Are the mouse connected directly to the teach pendant USB port ? Here the robot runs smoothly when using a mouse. The acceleration and deceleration are important to control in order to acheive a smooth trajectory depending on the nature of move and strong turns are made or even stop and move in the other direction - then the acceleration and deceleration will need to be adjusted to fit the path and speed which might be need to tested case by case. Author: <a href="https://plus.google.com/u/0/116832821661215606670?rel=author" rel="nofollow">By Zacobria Lars Skovsgaard</a> Accredited Universal Robots support Centre and Forum. <br /> <br /> <a href="http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/" rel="nofollow">Also check out the CB3 forum</a> <div class="fb-like" data-href="http://www.zacobria.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="arial" data-action="recommend"></div> <div class="fb-share-button" data-href="https://zacobria.com" data-layout="button_count"></div> <br /> <script type="IN/Share" data-counter="right" data-onsuccess="LinkedInShare"></script> <div class="g-follow" data-annotation="bubble" data-height="20" data-href="https://plus.google.com/116832821661215606670" data-rel="author"></div> <div class="g-plusone" data-size="medium" data-annotation="bubble" data-width="300"></div> <div class="g-plus" data-action="share" data-annotation="bubble"></div> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.zacobria.com" data-via="zacobria" rel="nofollow">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> <a href="https://twitter.com/zacobria" class="twitter-follow-button" data-show-count="true" rel="nofollow">Follow @zacobria</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

08/08/2017 10:59 AM
Comment on UR Script: Commands via Socket connection by Gavin
Hi Lars, I control the UR10 with PC, But I have a trouble of that how can I control robot smoothly move when I pressed mouse down (not release ) with GUI view a long time. It means how can I send a robot command with frequent time (It may be robot is moving when a command send .) expect your reply! thanks .

08/04/2017 09:01 PM
Comment on UR Script: Commands via Socket connection by zacopressadmin
Hello Luis Thanks for the question. What do you mean by the connection keeps failing ? - what is the symptoms ? It looks like lines from the example are missing in your code. There are different ways to use a socket connection depending what is the intention. You can send commands without having a Polyscope program on the robot - more informations at this link http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/knowledge-base/script-from-host-to-robot-via-socket-connection/ Or you can also send commands with a Polyscope program on the robot - more informations at this link http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/knowledge-base/script-client-server/ Author: <a href="https://plus.google.com/u/0/116832821661215606670?rel=author" rel="nofollow">By Zacobria Lars Skovsgaard</a> Accredited Universal Robots support Centre and Forum. <br /> <br /> <a href="http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/" rel="nofollow">Also check out the CB3 forum</a> <div class="fb-like" data-href="http://www.zacobria.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="arial" data-action="recommend"></div> <div class="fb-share-button" data-href="https://zacobria.com" data-layout="button_count"></div> <br /> <script type="IN/Share" data-counter="right" data-onsuccess="LinkedInShare"></script> <div class="g-follow" data-annotation="bubble" data-height="20" data-href="https://plus.google.com/116832821661215606670" data-rel="author"></div> <div class="g-plusone" data-size="medium" data-annotation="bubble" data-width="300"></div> <div class="g-plus" data-action="share" data-annotation="bubble"></div> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.zacobria.com" data-via="zacobria" rel="nofollow">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> <a href="https://twitter.com/zacobria" class="twitter-follow-button" data-show-count="true" rel="nofollow">Follow @zacobria</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

08/04/2017 06:32 PM
Comment on UR Script: Commands via Socket connection by Luis
Hello! I am trying to connect my PC to my UR10 by using the simple code in Python: import socket HOST = "192.168.1.100" # The remote host PORT = 30002 # The same port as used by the server s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) However the connection keps on failing. What do I need to do ? I suppose I have to do something in the polyscope or in the PC but dont know what. Thanks in advance. Luis Castro

08/03/2017 07:04 PM
Comment on Preface Universal-Robots CB2 Forum: by zacopressadmin
A popup can be also closed via the dashboard server at port 29999. More informations at this link for the dash board server. https://www.universal-robots.com/how-tos-and-faqs/how-to/ur-how-tos/dashboard-server-port-29999-15690/ Author: <a href="https://plus.google.com/u/0/116832821661215606670?rel=author" rel="nofollow">By Zacobria Lars Skovsgaard</a> Accredited Universal Robots support Centre and Forum. <br /> <br /> <a href="http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/" rel="nofollow">Also check out the CB3 forum</a> <div class="fb-like" data-href="http://www.zacobria.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="arial" data-action="recommend"></div> <div class="fb-share-button" data-href="https://zacobria.com" data-layout="button_count"></div> <br /> <script type="IN/Share" data-counter="right" data-onsuccess="LinkedInShare"></script> <div class="g-follow" data-annotation="bubble" data-height="20" data-href="https://plus.google.com/116832821661215606670" data-rel="author"></div> <div class="g-plusone" data-size="medium" data-annotation="bubble" data-width="300"></div> <div class="g-plus" data-action="share" data-annotation="bubble"></div> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.zacobria.com" data-via="zacobria" rel="nofollow">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> <a href="https://twitter.com/zacobria" class="twitter-follow-button" data-show-count="true" rel="nofollow">Follow @zacobria</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

08/03/2017 06:56 PM
Comment on Preface Universal-Robots CB2 Forum: by Richard Budd
Thanks for the quick reply. I don't think I explained myself very well sorry. I understand how to use variables and assignments, and I have an assignment set to operator input, and a yes/no input from the operator. At present, this brings up a popup on the teach pendant asking for a yes/no. I would like to be able to use I/O to answer this popup, i.e push a button for yes rather than having to touch the screen. Is this possible?

08/03/2017 06:36 PM
Comment on Preface Universal-Robots CB2 Forum: by zacopressadmin
Hi Richard Thanks for the question. It is possible to assign variables from the panel. If Yes(No is choosen then the variable becomes boolean. More information for assigning variables from opperator control panel at this link http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/knowledge-base/operator-input-variables/ Author: <a href="https://plus.google.com/u/0/116832821661215606670?rel=author" rel="nofollow">By Zacobria Lars Skovsgaard</a> Accredited Universal Robots support Centre and Forum. <br /> <br /> <a href="http://www.zacobria.com/universal-robots-knowledge-base-tech-support-forum-hints-tips/" rel="nofollow">Also check out the CB3 forum</a> <div class="fb-like" data-href="http://www.zacobria.com" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="arial" data-action="recommend"></div> <div class="fb-share-button" data-href="https://zacobria.com" data-layout="button_count"></div> <br /> <script type="IN/Share" data-counter="right" data-onsuccess="LinkedInShare"></script> <div class="g-follow" data-annotation="bubble" data-height="20" data-href="https://plus.google.com/116832821661215606670" data-rel="author"></div> <div class="g-plusone" data-size="medium" data-annotation="bubble" data-width="300"></div> <div class="g-plus" data-action="share" data-annotation="bubble"></div> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.zacobria.com" data-via="zacobria" rel="nofollow">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> <a href="https://twitter.com/zacobria" class="twitter-follow-button" data-show-count="true" rel="nofollow">Follow @zacobria</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>