Articles Download Safety & Security Forum myUR Go to Main Site

Universal Robots A/S
Energivej 51
DK-5260 Odense S

T: +45 8993 8989
sales@universal-robots.com

 
  • Articles
  • Download
  • Safety & Security
  • Forum
  • myUR
  • Go to Main Site
  • Support
  • Articles
  • Actinav - Using the Currently Selected Pick Rule as a Conditional Expression

Actinav - Using the Currently Selected Pick Rule as a Conditional Expression

Last modified on Feb 24, 2022

Create Date: 23 March 2021

Goal:

By supporting detection of the Pick Rule used to pick a part  (i.e. by Find Next Part) during program play, an Actinav program can use UR If or ElseIf node(s) to proceed conditionally depending on the selected Pick Rule.

e.g.:

If Current_Pick==”Pick_Rule_1”  (notional representation)

         <Do stuff and place the part a certain way>

      ElseIf Current_Pick==”Pick_Rule_2”

         <Do other stuff and place the part a different way>

 

Functionality:

The feature enables the user, after Do Pick, to check for the Pick Rule that was used to pick the current part, against the names of the Pick Rules, using UR If and ElseIf nodes.  A predefined variable (‘Current_Pick’) is automatically created by Actinav when a new program is created. During runtime, it's value is assigned the name of the Pick Rule used for picking the current part. In this way it can be compared against any Pick Rule name in the conditional expression of a UR If or ElseIf.

For example:

 

Pick And Place Loop:

    Pick And Place Rules

       Top Pick

       Barcode Side Pick

       Clear Side Pick

    Home Position

    Find Next Part

       Do Pick

       If Current_Pick=="Top Pick"

           Do Place

           .....

       ElseIf Current_Pick=="Barcode Side Pick"

           Do Place

           .....

       Else

           (Assume this is the clear side, by default)

           Do Place

           .....

 

Comments/Notes:

  1. You will only be able to use this feature in programs that were newly created in Actinav 1.1.3 and beyond. If you take a program that was created in a previous release and load it into Actinav 1.1.3 you will not be able to use this feature.
  2. The variable 'Current_Pick' is automatically created for ActiNav programs and can be selected from the “Variable” menu in the UR If/ElseIf expression editor.
  3. The user will need to type in the name of the chosen Pick Rule on the right-hand side of an If or ElseIf node's expression exactly as it is named in ActiNav.
  4. Using the UR If/ElseIf node enables the user to make full use of the nodes' expression's ability to contain compound expressions - e.g.: If [Current_Pick == "Top Pick" and D[0] == true]
  5. If the user finds Current_Pick or the Pick Rules' names to be too inconvenient to type, they can always assign them to variables in the program:
  6. current_pick’s value is updated upon entering pre-pick so it can be used in a conditional at that time but no earlier.

 

Related articles

ActiNav - Adding a safety laser scanner to a work station
Actinav: Pneumatic Hose Management
Actinav - Creating your own part models with the Einscan SE
ActiNav - Creating a Simplified Part Model using Solidworks
Actinav - Cable Management tech note
ActiNav - Re-grip logic and Sample Progam
End User Software License Agreement (EULA) - ActiNav
Updating ActiNav to the latest version
ActiNav - Integrating a signal light
ActiNav Clearance Shapes Creation and Use
ActiNav v1.3.0 Release
ActiNav Autonomous Bin Picking
Palletizing with ActiNav
Sample ActiNav Program
ActiNav Adding safety laser scanner to ActiNav work cell
ActiNav Remote access - Ixon
ActiNav Rescan - Sample Program
Actinav - How to Use Meshlab to Resize Your Part Models
Actinav - How to Select Different Tool Actions Based on Pick Type
logo

Product

  • UR3e Robot
  • UR5e Robot
  • UR10e Robot
  • UR16e Robot
  • UR20 Robot
  • UR+ Products

Company

  • About us
  • Contact us
  • Careers We're hiring
  • UR merchandise

Training / Resources

  • Academy
  • Technical Resources
  • Articles
  • FAQ

Insights

  • Blog
  • Case stories
  • Content library
  • News centre
  • Podcast
  • Webinars & Events

Get in touch

  • Ask an Expert
  • Schedule a no-cost assessment
  • Find a distributor
  • Customer support

Connect with us

  • LinkedIn
  • Facebook
  • Twitter
  • YouTube
  • Instagram
  • Universal Robots A/S
  • Energivej 51
  • DK-5260 Odense S
  • T: +45 89 93 89 89
  • sales@universal-robots.com
  • US Corporate Office
  • 27-43 Wormwood St.
  • 02210 Boston, MA.
  • +1-844-GO-COBOT
  • ur.na@universal-robots.com
  • Copyright @ Universal Robots 2025
  • Cookie policy
  • Privacy policy
  • Universal Robots A/S
  • Energivej 51
  • DK-5260 Odense S
  • T: +45 89 93 89 89
  • sales@universal-robots.com
  • US Corporate Office
  • 27-43 Wormwood St.
  • 02210 Boston, MA.
  • +1-844-GO-COBOT
  • ur.na@universal-robots.com

Copyright © Universal Robots 2025

Cookie policy
Privacy policy