# How to get alignment result in AlignPlus program

The final alignment/assembly result is available in SendResultToPLCCallBack function.

Every time when a vision task finishes running, it will call TaskScheduler's call back function AcknowledgeTaskResults, in which UpdateResult will be called. UpdateResult then will call SendResultToPLCCallBack where you can get the alignment result if the vision task is triggered by a GP/GPA/LFGP command.

The signature of SendResultToPLCCallBack is:

public void SendResultToPLCCallBack(string commandResult, Int stepID, Int GPStepID)

Input Name | Type | Description
--- | --- | ---
commandResult | string | The result string at given command
stepID | int | The StepID of the current task being called by the command
GPStepID | int | The StepID of the pose computer task when LFGP command is used

Below is an example of getting x, y, theta values from GP, GPA, or LFGP command result string: