Typically blue and yellow go to brushes and green to field. The other 2 are AC input. Gray center rail. The sixth is a jumper.
Not all 6 pin motor drive units are AC though. In your case as long as no bridge rectifier on the board it is an AC board. Plus it is an AC MC. G