Sorry, I just have no idea what you are trying to do, or what wois not working/has worked in the past...
I also don´t know Logic or the Motu m4, but I worked with Midi a lot, so I try to descripe what you can do...
First you should set the Motu´s Midi in and out in Logic. Then you should Plug Motu´s Midi In to Profiler´s Midi out and vice versa.
Then you can make Logic to send out Midi Clock. Make sure it sends out to the Motu Port.
Since Midi Clock is Omni, the Profiler should receive it and show a little "C" in the right corner...
On System Settings (in the Profiler) Page 15 (of 18) you can set the Midi Global Channel. On this Channel the Profiler receives all Midi messages and if you check the "UI to Midi" box theProfiler sends CC 47 with value of the given Performance - 1 (since counting in Midi in the profiler goes from 0-127) and the CC of the Slot you have selected (50 - 54) and also SYSEX commands to other performance related settings (this is normaly used to have a second profiler with the same Performances etc. as a backup...)
If you check the "Pedals to Midi" box, the Profiler sends the Midi CC Values of connected Pedals (like Midi CC 7 of a connected Volume Pedal etc)
If you check the "Send Midi Clock" box the Profiler sends the Midi Clock out so if you have set Performance/Rig tempo or you are using TapTempo or Beat Scanner of Profiler.
Then you should make sure, Logic is set to receive Midi Clock (if possible) from the Motu Port...
On System Settings Page 14 you can also set the Profiler to send Midi Program changes with Slot changes on the Midi Out/Thru Hardware Ports. You can ReName each port choose to send Midi out or passwMidi through. Also you can set the channel for each port.
If you are in the Performance Main Menu hit Edit (left soft button) Slot Settings (right Soft Button) and Midi Settings Soft Button (left Button) Then you can dial in a Midi ProgramChange for both pORTS HIT mIDI tRANSMIT AND SAVE THE sETTINGS: