I have some timing problems with the post inspection.
The result of the inspection arrive to late.
You can see on the picture in attach that I have 180 mm distance between the trigger of the camera and the trigger for the PLC (Sensor). When the product has past the Sensor the result should be ready for the PLC but it seems that the result arrive ~1 sec later. I am using the Queue idle to activate a trap routine (so as suggest in an other post inspection discusion).
The max speed of the cnv is 500mm/s, I have done the test with a speed of 250mm/s, the cycle time of the PLC is 30ms this will mean that I have ~330ms time (with max cnv speed) to give the signal to the PLC.
I can not find the problem, I think trap routine is the fast way to work.
I have also try to play with the enter and exit of the cnv without succes.
The baseframe distance from the camera is ~800mm in the X ditrection.
It seems to be that the enter and exit need to be lower values, I change the exit value from 500 to -100 and it works.
But I have still on problem at the first start. The robot goes in error due to array error at the GetItmTgt for inspection. I have the feeling that he get an interupt at the first start. when I start again the robot the problem goes away.
“But I have still a problem at the first start. The robot goes in error due to array error at the GetItmTgt for inspection. I have the feeling that he get an interupt at the first start. when I start again the robot the problem goes away.”
Yes, the queue idle will go high at the start as the queue is empty at that time. Make sure to enable the trap after the setup indexes procedure is executed (otherwise will the Index-variable not be defined).