Home Programming

Discussion

Left ArrowBack to discussions page
David_GariepyDavid_Gariepy Beta Tester Beetle, Wrist Camera URCap 1.3.0, Vacuum Beta tester Posts: 190 Handy
edited June 2017 in Programming
Hi Pros,

In some applications where cycle time is critical, saving a few seconds here and there can be important. Here's a new program template that allows you to save a few tenths of seconds when releasing a part using the Robotiq Gripper. Depending on the size of the part, you could save up to 0.8 seconds per opening.

Get the program template here.
David Gariépy
Integration Coach

Comments

  • matthewd92matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
    David,

    Can you expound on what you are doing in the template for those of us who have existing programs but would like to save some cycle time?

    Thanks,
    Matt
  • David_GariepyDavid_Gariepy Beta Tester Beetle, Wrist Camera URCap 1.3.0, Vacuum Beta tester Posts: 190 Handy
    edited June 2017
    @matthewd92  Of course, 
    The code looks something like this : 
    </code>release_pos≔rq_current_pos()-25 
         If release_pos<3 
           release_pos≔3
         Gripper Open (1)
         Loop rq_current_pos()>release_pos
           sync()
    </pre><ul><li>The <b>release_pos</b> variable is assigned reading the current &nbsp;position of the gripper and subtract 25 counts</li><li>If the <b>release pos</b> count if below 3 the <b>release_pos&nbsp;</b><b></b>is set to 3 as it is the maximum opening position.</li><li>An open command is sent to the gripper, not an open and wait.</li><li>The program enter in a loop as long as the current position is bigger then the <b>release_pos</b></li><li>The next action can then be executed while the gripper is still opening.</li></ul><b><br></b><br>To use the function in an existing program, just insert the rq_release.script file in your BeforeStart program then use the following function to release a part instead of an open and wait command.<br><pre class="CodeBlock"><code>rq_release_open()



     Please note that at this moment, the function should not be used when the gripper is mounted on the wrist camera as some unpredictable delay can occur in the communication. 
    David Gariépy
    Integration Coach
  • matthewd92matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,267 Handy
    Thanks, we implemented something similar in function but nowhere as good a code!  It did gain us a few hundred milliseconds but this would be more reliable I think.  Ours was dependent on the robot speed at the point of release.
Sign In or Register to comment.
Left ArrowBack to discussions page