The cannon is a 2x2 module used by ships to destroy particulate. They will automatically fire at particulate in range, though projectile travel time means they may miss. The cannon's main projectile does not decay, and may therefore hit particulate outside of the cannon's range.
The cannon can fire an alternate, slower projectile at enemy mire and struc. Given that mire and struc cannot move, this projectile will always hit.