GLM equations, tau function and scattering data