What are you trying to accomplish?
The UX2 can act as a MIDI thru device via USB to send commands to PF.
From the manual:
MIDI Controller Hardware
The POD Farm 2 Plug-In and standalone application both support the use of external MIDI controller devices to remotely access most parameters. You can use any MIDI controller device that is capable of transmitting MIDI CC, Note-On, Pitch Bend and/or Bank & Program Change messages to access POD Farm 2 functions. If you have a Line 6 UX2, UX8 or KB37, then you can utilize the MIDI controller features of these devices with POD Farm 2, as described in the device sections that follow.
Link to manual:
PF2 Manual