Problems with autopilot airbus 320

You must understand the FCU can override the MCDU flight plan.

That happens on real flights in response to ATC requests.

I suggest researching how the FCU works. It’s a simple device when you understand managed and unmanaged controls for SPD, HDG, ALT and V/S