# Send Manual Trigger

Triggers a specified event in the spreadsheet through a Native Mode command.

Note:

If the In-Sightvision system is configured to accept an acquisition trigger from a PLC/Motion Controller via a Native Mode command, make sure to use the SetEvent and Wait function, with the Event code set to 8 (SW8).

Ensuring 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.

If the SetEvent function will be used by a PLC/Motion Controller to trigger an acquisition, it should only be used in circumstances where the inspection results are not also being read. Otherwise, the acquisition and inspection will not be synchronized, with the vision system returning a response as soon as the image is acquired and before the inspection has been completed.

## Send Manual Trigger Inputs

None.

## Send Manual Trigger Outputs

Status Codes | Description
--- | ---
1 | The command was executed successfully.
0 | Unrecognized command.
-2 | The command could not be executed.
-6 | User does not have Full Access to execute the command.

## Send Manual Trigger Example

The Send Manual Trigger function is used to trigger events in the spreadsheet through Native Mode commands: MT

Send Manual Trigger is functionally identical to using an argument 8 of Set Event