Toggle (on/off) a plugin with midi

Hi,

I don’t know well about MIDI, but I can toggle a pedal on/off with M-Vave chocolate MIDI controller with Visual behavior option of Custom control.

“Visual behavior” on:
On/Off - Press to change the CC value to 127, press again to change the CC value to 0, press again to change the value to 127…

Regarding CV, you can see “Bipolar” on Operational mode when you click Advanced.

I hope my post is not off the point.
HTH