Multiwavelength campaign on Mrk 509 I. Variability and spectral energy distribution RID B-4804-2010