# Acquisition Attributes

Note: If the In-Sight vision system is configured to accept an acquisition trigger from a PLC/Motion Controller through a Native Mode command, use the SetEvent and Wait function 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 it does not send previous inspection results. You can then use the complete response from the vision system to create conditional PLC logic that sends a read request for the inspection results. For more information, see Set Event and Wait.

The Vision Object can be triggered to acquire images by using the Acquisition Attributes. In order to reset the Acquisition Attributes in the Vision Object, the AcqTriggerEnable attribute must be set to False until the AcqStatusRegister is 0. Then, the AcqTriggerEnable attribute can be set to True to enable acquisition through the Vision Object. When the Acquisition Trigger is ready to accept triggers, the Trigger Ready bit in the AcqStatusRegister is set.

While the AcqTriggerEnable attribute is set to True, each time the Vision Object sees the AcqTrigger attribute change from 0 to 1, the Vision Object initiates an image acquisition. To guarantee that the change is seen by the Vision Object, when setting the AcqTrigger attribute using implicit messaging, make sure that the attribute is held in the changed state until the value is seen by the Trigger Ack bit of the AcqStatusRegister.

Note: When using explicit messaging, the Vision Object always sees the changes to the AcqTrigger attribute.

To determine when an In-Sight vision system has completed an image acquisition, you can use the Exposure Complete and Clear Exposure Complete bits. Acquisitions must be explicitly acknowledged on the Exposure Complete signal. If an Exposure Complete signal is received while the Clear Exposure Complete bit is True, the Exposure Complete bit is asserted when the Clear Exposure Complete bit is cleared by the PLC.

If multiple Exposure Complete signals occur, the effect is the same as if only one signal is received, and no errors are reported. This allows a PLC to detect when an acquisition is triggered from a discrete input by detecting the Exposure Complete signal.

If other methods of acquisition triggering are employed, the Exposure Complete and Missed Acquisition bits of the AcqStatusRegister are still active.