# Inspection Complete Logic

The InspectionComplete function is a toggled bit, and waits for ResultsValid0 to be set by the Cognex Communication Card. This is controlled by a Notify PLC block that is configured with the Notification Method Type set to InspectionComplete. The data from the InspectionResults is copied to the UDT Camera1ResultsData (all of the floats and strings having been previously setup). Then InspectionResultsAck0 is latched.

InspectionResultsAck0 is unlatched when ResultsValid is OFF.