In our state/district the 504 people and the IEP people are different...although the school psychologists are in both groups and the guidance dept play a role in both things.
Here, 504 is under guidance and the psychology department and IEP under ESE department. If someone has an IEP then whatever needs to go on a 504 can be combined on it....for example...if they have a learning disability and some sort of medical condition like cystic fibrosis that needs accommodations then you don't do both you just include those in the IEP even though the main focus is the learning disabilities.
Someone can have a disability and need a 504 but not need special education programming (IEP). Some can need both but you just combine it all onto IEP. Some start with 504 and the move on to needing IEP.