Hello, comrades. I have a serious question for you!
I'm working with:
Vision tech 4.0,
EthernetKRL 3.0,
WorkVisual 6.0.13,
Kuka krc4: kss 8.5
The issue: I don't understand how to get value from Attributes and Outputs (from Toolblock) while programming kuka on KRL. Camera's task finds successfully the object each time. Manuals inside of vision tech archive don't have enough information about it's programming at all. Cognex's help also doesn't provide that info. Moreover, KUKA's department in my country also is not able to give an advice due to absence of such experience. So the last instance for me is this forum!
Standart template has that fold:
;FOLD Read the result attributes here
;These are examples for attribues
; -> If you need attributes you have to define them at the toolblock and uncommend the line
;INTEGER
;IF VT_ContainsAttribute("UnknownInt", Results[ObjectCounter]) == TRUE THEN
; i_Attribute = VT_GetIntFromAttrName("UnknownInt", Results[ObjectCounter])
;ELSE
; $FLAG[VTNoSuccessFlagNo] = TRUE
;ENDIF
;REAL6
IF VT_ContainsAttribute("ATTRIBUTE1", Results[ObjectCounter]) == TRUE THEN
r_Attribute = VT_GetRealFromAttrName("ATTRIBUTE1", Results[ObjectCounter])
p = VT_GetRealFromAttrName("ATTRIBUTE1", Results[ObjectCounter])
ELSE
$FLAG[VTNoSuccessFlagNo] = TRUE
ENDIF
But it doesn't work.
I'll attach archive with my project.