How to attach a component when performing pick and place operation


I want to attach the component on another component as shown in the picture below

As u can see i want to attach the black plate on to the white block in the program so that they become one but in the program i cannot find any attach statement
i want to do this because in the next station when i want to pick and place these two component together it misses the top one and grasps only the block for some reason i tried with grasping volume and multi grasp but still the problem remains so i thought i would attach them in the program if that is possible

please let me know if there is way to this

Just came up with an interesting solution, try it to see if this helps.

Hi, @chungmin
Thankyou for the solution
I see that you have used an attach statement which seems to be there in the program editor of yours but it is not there in my case see picture below
there is no attach statement here
i dont understand how you got it in the program editor, did u write a separate code for it?
also what are those documents you attached, are those codes if so what are those codes for ?
Just so know i have zero knowledge in coding :sweat_smile:
so please suggest something other than coding
Thank you

The file given by chungmin is a plug-in developed based on Visual Components. Usually you only need to unzip it to “My Computer-Document-Visual Components-4.X-My Commands” to use it.

At the same time, I noticed that the picture you provided shows that the tool you are using is a robot, which means that you do not need additional functions, you only need to release the component. If it cannot be attached to the correct location, please check the Actions Configuration Under Signal Actions, select the Output[1] you are using, and adjust the Gravity direction attribute under Release. The function of this attribute is that when the falling edge of the signal is triggered, the robot will check the components at this distance by default and attach the release component to Check the component.
Hope this helps and have a nice day!


I did as you instructed after unzipping it in VC my command what next ?
how do i use it ?

Just restart VC. When VC starts, it will automatically read the added in the file for initialization. Generally speaking, the file will contain information such as the called script, the name and identifier of the script, and the location where the script is placed. :melting_face:

1 Like

@BAD and @chungmin Thank you so much, now it is working how i wanted
Thanks a lot, have a lovely day :smiling_face:

1 Like