Why doesn't it work in MPlab ???
Because @ DEVICE is for PM
The inc file tells you that.