Yeah that properly why then.
one of the things a URCap does is basically to define a bunch of functions in the top of any script file created through the teach pendant to give you new functionality.
while I have never used Robotiq I bet you will find the findmodel function you are looking here.
But this also means that you cant just use external programs like what you are doing now, and as the guy in the post did.
As these functions simply is not defined in the script file you create on you own pc.
What I would do is
- get the urcap installed
- create a random program on the teach pendant that does basically nothing
- save it
- transfer the created script file to a usb and then to your pc.
- open the file and copy paste all the functions that the urcap auto generates
- add something in the top of your python script that appends this to the start of your script file.
and do keep the URcap installed as the functions most likely calls a bunch of background processes (know as daemons). which you will remove by uninstalling the urcap.
Kind Regards