Is it possible to control the volume is some presets and effect parameters in other presets? In other words, can the pedal act as a volume pedal or as an expression pedal depending on the preset?
It is not possible to use the same pedal for volume and expression. You must decide what will be the function you need the most.
Either you control the volume, and it is a global command for all presets, or you use it to control effect parameters and this can be different for each preset.