There are a few tutorials about using turrets, study them.
https://www.scirra.com/tutorials/all
You can add objects to turret's target list at start of the layout, then they will pick targets automatically, once they are in range.
If you want control over which targets they should shoot at (for example to prefer stronger enemies), you can use "Acquire target", but you need to make sure that turret doesn't already have a target.