Get it woring from within IPE first.
Good advice, but having got it working with IPE why bother with MPLabx? From memory theres a CLI (or similar) within IPE to allow programming from PicBasic IDE (ala PK2 et al)