Thanks Baz, I checked for error codes the day after I got it back but there were none. So it's not producing any but will regularly check this.
When you hit the 4000 rpm limit, there are no warnings or flashes.
...However, if (whilst driving) you slip it into N you can rev past 4000. If you then put it into D the limit seems to be there and it slows down until it reaches the speed it would be at that RPM, then just sits there. Will give this another go though.
When I checked the Transmission fluid yesterday (all warmed up after a drive, cycled through the gears and left it in P with the engine running, etc.) the level was right up to the top of the HOT mark, in fact, over that part of the dipstick and slightly onto the cable. So it's not low on fluid.
Will try the rev-up and floor the throttle routine tonight, to see if it still drops to 4000 RPM.
Hi Mudguts
Waited to hear how your diagnosis went after my last post on this subject,I suggested then there may be a problem with the information transmitted between the engine and gearbox within the ECU ,Having read your post this morning I now feel your problem still lies in the Gearbox and could be related to back pressure readings from the transmission fluid sensors .It sounds like the ECU is receiving info from the gearbox that is instructing the engine to go to safe mode,This is the mode that prevents damage occuring in the gearbox after a working part as failed, it normally puts the car in second gear and does not allow it to change up so a limited progress can still be made,although this is not the exact scenario the fact you can rev beyond 4000 revs when in neutral leads the cause to the gearbox and the information it is transmitting.
I had a similar problem when I first bought my car and the second gear solenoid failed and it would not rev up beyond 4000 revs and would not change up. It might be a faulty solenoid as they work with the back pressure within the gearbox to gain the optimum moment to facilitate a smooth gearchange.
Have you tried the diagnostic codes for the Gearbox as you will get these showing any faults on the electrical curcuit within the gearbox.
These are read through the ect light on the dash.