Typical Acquisition Sequence

Note: If the In-Sight vision system is configured to accept an acquisition trigger from a PLC/Motion Controller through a Native Mode command, Cognex recommends that the SetEvent and Wait function be utilized, with the Event code set to 8 (SW8). This ensures that the vision system waits for both the acquisition and inspection to be completed before sending a "complete" response back to the PLC/Motion Controller, and that previous inspection results are not being sent to the PLC/Motion Controller. The "complete" response from the vision system can also then be used to create conditional PLC logic that sends a read request for the inspection results. For more information, see Set Event and Wait.

An In-Sight vision system can be triggered by directly manipulating the Trigger Enable and Trigger bits in the Control block while monitoring the Trigger Ready, Trigger Ack, and Missed Acq bits in the Status block.

On initial start-up, the Trigger Enable bit is False, and you must set to True to enable triggering. When the vision system is ready to accept triggers, the Trigger Ready bit is set to True.

While the Trigger Enable and Trigger Ready bits are True, each time the vision system sees the Trigger bit change from 0 to 1, an image acquisition is initiated. The Trigger bit must be held in the new state until that same state value has been seen in the Trigger Ack bit (which is a necessary handshake to guarantee that the change has been seen by the vision system).

During an acquisition, the Trigger Ready bit in the Status block gets cleared. The Exposure Complete bit is set at the end of the acquisition, and can only be cleared by the Clear Exposure Complete bit.

To force a reset of the trigger mechanism, set the Trigger Enable bit to False until the Status block is 0. Then the Trigger Enable bit can be set to True and acquisitions re-enabled.