there is a limit switch polarity in the ini file that is the problem. you may wish to ask on the EMC users mailing list. If you are going to be using EMC, that should be considered essential reading.
https://lists.sourceforge.net/lists/listinfo/emc-users