Try this. I've highlighted the 7-pin connector in yellow. Unfortunately, and as always with Lionel, wire colors are either not labelled on the schematic, or might not match. Spin the photo I posted earlier 180 degrees to match this orientation to make it easier to follow:
Good luck and let us know how it turns out.
Mike