lots of previous replies and some good info given
Now as far as the line goes
Something is not right as it is working in the opposite way it should as you are now aware. Ignoring the competence or otherwise of anyone who has worked on your motorhome, it kind of sounds as if a relay has been replaced and the connection made to the wrong terminal?
On your 1998 Motorhome, you almost certainly have an early Sargent wiring system, and the relay for the Fridge power from the Starter
Battery will be under the bonnet - see the diagram below where I have put a Red box over the relevant bits
Wiring Diagram Swift Suntor_Sundance 2002 by
David, on Flickr
This is described as a Swift Sundance wiring diagram but the same diagram is applicable to many British Motorhomes of this era, including I am sure the Autosleepers.
What MIGHT have happened is when the problem was being investigated, the normal relay - a standard 12V 4-pin relay - may have been replaced with a 5-pin relay? A perfectly acceptable thing to do, but it gives the chance to misconnect the output to the fridge and results in the fridge only getting 12V when the engine is off, and stopping getting the 12V when then engine is running. Precisely what you are describing and I can picture someone making that mistake quite easily - but I can't so easily picture them not realising there was a problem and then correcting it quite quickly.
For the technical bit how it works:
- A 4 Pin Relay has an single pin out - Pin 87 - which is "NO" (Normally Open) and this is as it says 'Normally Open' until the relay is activated, for example by the engine running. If the engine is off, Pin 87 is open and no power. If the relay goes faulty, it can be stuck open or it can be stuck closed. Neither of those sound like they apply to your problem.
- A 5 Pin Relay is like a 4 pin one but as well as having a Pin 87 "NO", it also has a Pin 87a "NC" (Normally Closed) connection.
You will have power into the relay on Pin 30, which is the supply. Pin 87 is the normal output and same as the 4 Pin relay, it is connected to the supply on Pin 30 when the engine is running and is open when the engine is off. However the Pin 87a is the reverse - it is connected to the Pin 30 supply when the engine is OFF, and then is disconnected from the supply when the engine is ON.
The reason for the problem may or may not be as I describe it above, but it is the only logical reason that comes to mind without someone doing some very strange rewiring. Checking the relay is a good first step and you can pull out the relay from its holder and see if it has 4 or 5 pins to start with. (note you have 2 relays side by side and it will not be obvious which is which, so look at them both).
If 4 pins, something else. If 5 pins, check further.
If you click on this link -
https://www.easycarelectrics.com/normally-open-and-normally-closed-relay-diagram-symbol/ - and scroll down you can see the pin layout of both the 4-pin and 5-pin relays