Tom, just in the interest of time of the more experienced Members who can then focus on helping you with your particular issue, let me try to describe how the simple Euro (no emissions control) arrangement works - it helps understand what drives what. This is not to offend anybody, just maybe to sort things.
The position of the three way solenoid determines the position of pressure modulator and is setting the pressure in gear box for downshifting in particular moments or upshifting in particualr moments.
This position of the three-way solenoid is governed by throttle switch and kick-down switch. (Joe asked you if you perhaps have another arrangement - firewall switch that replaces throttle switch on some cars. Note: the presence of throttle switch does not mean it is used by car - factory were sometimes fitting it regardless if it was needed or not, same with CSS).
The "zero" position: ignition off. The three-way solenoid is in the middle position (spring is there). Throttle switch is closed.
1. Ignition on: throttle switch closed, so the three-way solenoid gets power through it, the rod moves backward.
2. Gear selected: nothing happens to three-position solenoid. CSS pushes the linkage a bit so that the engine does not stall under load. Throttle switch still closed.
3. You press the gas pedal as you want to drive. Throttle switch opens, three position solenoid goes to middle position to change the pressure. Transmission is ready to shift up.
4. You accelerate, transmission is shifting up. Throttle switch open all the time.
5. You want to really speed up and floor it - the kick-down switch gives power to the three-way solenoid, it moves forward and enables downshift. Throttle switch open all the time.
6. You want to slow down - you let your foot off the gas pedal. Throttle switch closes. Three way solenoid moves aft where it causes the pressure to allow downshift as you slow down.
Here, if you have the throttle switch misadjusted and it will still be open, tranny thinks the car is doing something different than it is doing. Tranny is set to upshift, car is slowing down and has to downshift - you get rough downshift and clunks.
7. You stop and select P - throttle switch closed (as you let your foot off the gas pedal earlier), CSS disengages, linkage goes back to idle. Three way solenoid is aft as before, no change.
Selecting gear is not affecting directly the three-way solenoid position - only if it causes throttle switch open or close through the linkage movement caused by CSS - but throttle switch should be adjusted so that it does not happen. Throttle switch should open right when you move gas pedal from the "CSS extended" position and after slack.
The three wires coming to the three-way solenoid are: +from throttle switch, + from kick-down switch and ground. The other green/red wires are from pressure switches (left and right) that meet on the contact plate with a wire that goes to CSS and provides the ground to CSS.
Throttle switch and kick-down switch get power from fuse 3. CSS gets power from fuse 5.
Throttle switch is adjustable, so is the kick down switch, so is the CSS.
Certainly the upshifting or downshifting of the tranny while driving depends, as tranny is steered by vacuum, also on things like: load (driving up the hill, down the hill, etc.), driving style (e.g. faster or moderate acceleration) and probably many other factors, of which car being in tune to deliver good vacuum is probably the most critical.
I hope I did not mess anything - if so, please correct me.
If emissions installation is there - it looks probably different in terms what steers what, principles remain the same, I think.