# Inspection Results Attributes

When an image is acquired as a result of an acquisition trigger, it is placed in a queue for inspection. As the inspection is running on the image, the System Busy bit of the InspectionStatusRegister is set. Once the inspection is completed, the System Busy bit is cleared and the Inspection Completed bit is toggled.

The BufferResultsEnable attribute determines how inspection results are handled in the Vision Object. If the BufferResultsEnable attribute is set to False, then the inspection results are immediately placed into the InspectionResults attribute.

If the BufferResultsEnable attribute is set to True, then the previous inspection results remain in the InspectionResults attribute until they are acknowledged by setting the InspectionResultsAck attribute to True. Once the Results Valid bit is cleared, the InspectionResultsAck attribute needs to be set to False to allow new results to be placed in the InspectionResults attribute. You can use this to establish a handshake for obtaining results between the Vision Object and the client.

## Behavior of InspectionStatusRegister

Inspection Status Register Bit | Bit Name | Results if Buffering is Disabled | Results if Buffering is Enabled
--- | --- | --- | ---
0 | System Busy | Set when the vision system is running a job, loading a job, or responding to user input.
1 | Inspection Completed | This bit is toggled when an inspection is completed. It is guaranteed to be toggled after the Inspection Count, Inspection Result Code, Inspection Results, or Job Pass bits are sent to the PLC.
2 | Results Buffer Overrun | Always cleared. | Set when inspection results could not be queued because the client has failed to acknowledge a previous result. Cleared when the inspection result is successfully queued.
3 | Results Valid | Set when the Inspection Count, Inspection Result Code, Inspection Results, or Job Pass bits are set. The bit is cleared when the Inspection Result Ack bit is set. Note: If job processing is enabled to occur in overlapped mode, either the Buffer Results Enable bit must be enabled, or the Inspection Completed bit must be used to latch the inspection results.
7 | Job Pass | Set when an inspection is completed and the Job Pass/Fail cell indicates a pass. Otherwise, it remains cleared. Note: The Job Pass bit is valid prior to toggling the Inspection Completed bit. | Set when new results are placed in the InspectionResults attribute, and the Job Pass/Fail cell indicates a pass for that result set. Otherwise, it remains cleared. The state does not change until the results are acknowledged by setting the InspectionResultsAck attribute to True, at which time the Job Pass bit is cleared. Note: The Job Pass bit is valid prior to the Results Valid bit being set.