Random Placement Vision Program

Software topics related to Nikon iNexiv and Retrofit Camera
Post Reply
User avatar
medupriest
Moderator
Moderator
Posts: 374
Joined: Fri Mar 13, 2015 11:59 am

Random Placement Vision Program

Post by medupriest » Mon Apr 22, 2019 2:21 pm

If you would like to measure parts with random placement using vision. The attached program will allow you to set an origin for all parts on the stage using the cross-hair tool, and will then execute the part program at each specified location.

Just replace the prompt with the part program which should start from each origin.

The cross-hair tool can be replaced with pattern recognition as well.
Random Placement.zip
Program is for 3.8SP1 or a later version.

To run with your program, first you will need to set your first origin. Open step #7 in the program, go into the Commands tab, move your cross hair to your initial starting position, and select "Use Current" and select OK. This origin should be the point at which you want to locate each part. Record the values in X,Y, and Z.
2.jpg
Open up the Construct Point Operation (step #12). Enter the recorded values into the X,Y, and Z for the point construction.
3.jpg
Write the rest of the program below the prompt, and delete the prompt step. The program will prompt the operator how many parts they would like to measure. The operator can then set the number of specified origins and the program will execute from each set origin.
1.jpg
You do not have the required permissions to view the files attached to this post.

Post Reply