Hi, and welcome to the community. See the example below
I have examples for both Mackie and Layer modes. In both cases I’m using the upper left knob. In layer A mode I have the knob set for CC10 relative 1.
I use the global variable “ga” and a timer. I set the value of ga to either -1 or 1 depending on the turn of the knob. Then I have translators that look at the value of ga and only fire if ga is in the desired direction.
I have added translators to allow switching between layer and Mackie modes. I have my X-touch Compact global channel set to MIDI CH2 for this illustration.