There is a decoder SD21A, installed in ACME BR 186.
Buffer lights on FL / FR, spotlights on AUX1 / 2, red lights on AUX3 / 4.
Spotlight - Aux1 / 2 lights on the F4, in order to work direction change, the CV 147 and CV 148 are configured, and also the rule is that F4 works only with active F0.
The problem arose with shunting mode. On F6 in CV40, FL / FR and Aux1 / 2 are attached, but the problem is that for Aux1 / 2, the direction rule from CV147 / 148 is valid and the spotlight is lit only on one side.
How to solve a problem?