I need to know how the compass module read the cording? how the X Y axis work and what they mean?
Look for HMC5883L
There is plenty of information on the internet about that sensor. Reading datasheet might help as well.
This is the link to a slightly different sensor, but it might apply to the one you have:
You are welcome! ;D