How to use MIDI for UR22C

Hello, I am not sure on the connections that are required for my Wah pedal. I have read the manual and looked all over online for an answer but to no avail. It is a simple Nektar NX-P. For MIDI to work, do I use a usb to 5 pin din to the MIDI out and a 5 pin din to 1/4 adapter in the MIDI in for it to work? Thank you.