Hi, Bill
Gnd and 5 volts, Set up Config, Ports & Pins, Encoder/MPG's, Enable "MPG 1", Assign Ports and Pick Pin #'s for A & B inputs.
Your encoder count may be high, But you can use counts/unit to adjust it, Anyway it's a start, The 5th wire is probably "I" index not used.
Tab Key, Jog Mode select MPG, Alt A select Axis.
Hope this Helps, Chip