Cognex multi-object detection

Hey,

We’ve got a cognex In-sight cam and would like to detect multiple patterns (an objects front vs back side) and

using Cognex + URCap we are only getting one pattern back via the script we’ve written

Program
Robot Program
MoveJ
home
CGX_result:=CameraPose
Job Pass
MoveL
CGX_result
Set DO[0]=On
MoveL
grab_move
‘Until (tool_contact_detection)’
MoveL
Above_bin
MoveL
Waypoint_1
Set DO[0]=Off
MoveJ
home
Job Fail
Popup: No object detected
No Response
Popup: No response from camera

How can we query the second pattern?

We attempted to look at the cognex cardbox server implemented on the lower level, but we still don’t know how to query for a second object.

Thanks for you help!