A rigorous solution is derived for the problem of the diffraction of a plane electromagnetic wave on a periodic grating consisting of ideally conducting cylinders of circular cross section and imbedded in a plane-parallel dielectric layer of finite thickness. The variation of the modulus of the transmission coefficient of the system as a function of the relative period of the grating is studied.