# Acquisition Attributes

Note: If the In-Sight vision system is configured to accept an acquisition Acquisition is the process or result of the vision system acquiring a new image. trigger from a PLC A Programmable Logic Controller is a ruggedized computer that you can use for automating processes or even an entire production line./Motion Controller through a Native Mode command, use the SetEvent and Wait function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. 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:

1. Set AcqTriggerEnable to False to disable triggering and reset Acquisition Attributes.

2. Ensure AcqStatusRegister is 0.

3. Set AcqTriggerEnable to True to enable triggering again.

4. Wait for the Trigger Ready bit in AcqStatusRegister to be set, indicating the Acquisition Trigger is ready to accept triggers.

5. Set the AcqTriggerEnable attribute to True. Each time the Vision Object sees the AcqTrigger attribute change from 0 to 1, the Vision Object initiates an image acquisition.

6. Make sure that the attribute is held in the changed state until the value is seen by the Trigger Ack bit of the AcqStatusRegister. This guarantees that the change is seen by the Vision Object, when setting the AcqTrigger attribute using implicit messaging.

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

7. Use Exposure Complete and Clear Exposure Complete bits to confirm acquisition completion.

   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 you use other methods of acquisition triggering, the Exposure Complete and Missed Acquisition bits of the AcqStatusRegister are still active.