Hello, I'm working on a KUKA robot for the first time and wanted help with writing a program. I wanted to write a simple program to do a pick and place with vision. I've been trying for a while now but get stuck. I was able to make the tool block and vision task but can't seem to figure out the part of writing the program.
I tried the sample program and also tried making my own reading their manual. But always results in VT_DIRECT:Unable to calculate to result
Code
INI
SPTP HOME Vel=100 % DEFAULT
SPTP P1 Vel=100 % DEFAULT Tool[1]:gripperapp Base[6]:updatebase
VT.TRIGGER vision
VT.WAITFORRESULT vision
VT.SETTARGETBASE CalibrationBase=Base[7]:vision TargetBase[1]:Base1
VT.DIRECT Source: p1 Tool[1]:gripperapp Base[6]:updatebase Target: p2 Tool[1]:gripperapp Base[6]:updatebase
SPTP p2 Vel=100 % PDAT1 Tool[1]:gripperapp Base[6]:updatebase
Display More
KRC 5 Micro-controller
KUKA KR 4 Agilus
Cognex Camera