I would suggest that you go to Yamaha.com and find a guide called midi basics!

Basically it all boils down setting the appropriate Tx(transmit) and Rx(receive) channels on both devices.