Always consult the official Owners Manuals first
The following pages link to File:MIDI IN-OUT Ports Pinout.png: