i wrote an article about this exact subject:
It used to be easy removing and installing the Engine Control Module (ECM) or Transmission Control Module (TCM) on the Volvo 850 and 1998 S/V/C70 vehicles. You pull on a bar integrated into the control module that released the module from the base connector. This was easy, required no tools and was faster than it took you to open up the hood. Starting in 1999, the bar was now obsolete and a special tool (999 5722) took its place. While this is nice to have around if you work on a lot of Volvos, for the shop that seldom works on them it is not mandatory once you get to know the connector and how it works. Here I will show you how to remove the ECM and TCM without the special tool on 1999-2006 S80, 1999-2004 S70/V70/C70, 1999-2007 V70/XC70, 2001-2009 S60 and 2003-2007 XC90 (excluding V8 and 3.2 engines).
In service information, this box is called the Engine Compartment Central Electrical Unit. This is a black plastic box in the right front of the engine compartment that houses the ECM and TCM. There are 3 parts to this box, cap, center section and a bottom that holds the connectors. First, remove the top cap (held on by 2 clips). Remove the fresh air vent hose on the back of the box. Unclip the center section (3 clips) and pull straight up. You will now be able to see the connector base that the ECM and TCM sit on. This connector is just clipped into the base of the box, unclip and pull the connector base up. If you look at the back of the control units, you will see 4 Violet sliding tabs, one on each side of each control module. These tabs are actually what the special tool moves back and forth to remove/install the modules. You need to take 2 pocket screwdrivers and push on the 2 tabs at the same time from the rear of the connector, pushing towards the front. Once you push far enough, the control module will release and can be removed from the vehicle. When you have the control module out, it may be a good idea to ensure the slides are free and the tabs move freely. A small amount of lubricant aids in reinstallation. To reinstall, push the tabs from the front side of the box towards the rear of the vehicle until the control module is fully seated.
The connectors are both split up in two parts, A and B. The A connector is towards the front of the vehicle and the wiring goes to the engine. The B connector is towards the rear of the vehicle and its wiring goes back towards the cowl, then to the driver’s side through the cowl. Once you take a closer look at the connector, you will find the terminal numbering to be quite odd and on top of that, Volvo never made a pinout diagram for these connectors. I hope this information helps you when the service information calls for the dreaded special tool or breakout box!