20000 is the range in meters. I have not looked at patch 1.2 yet. They made changes to that file. You should not put '-4' in place of that 200000 value. It is wrong adress.
Patch 1.1 had -6, -6, -9 at 15 km , 5km, and 20km ranges. They were all to -300 meters deep.
If mini tweak is giving you wrong answer, it is because the file has been changed due to patch 1.2 and you need to use an updated adress hex offset file for that program. What I listed worked fine for patch 1.1. Periscope stock setting is 49 feet deep. The passive sonar was set about 43 feet deep using -5, and -8.
I do it by hand. I do not know exactly what those three 'sonar' items are exactly, but they may have been set up that way so the active sonar does not interfere with the crew's AI passive sonar, or maybe even the visual AI reactions of your crew.
I once used the active sonar via crew report for distance and it gave me a rediculus result sometimes. You must be careful with those numbers. There was a reason why they were disabled at periscope depth. Plus, make sure to use an update Tweak File!
-----------------
S-Class. Yeh, they have a shallow draft. They can stand to use an even higher setting at -4. Someone needs to find out what those three entries are affecting what boat classes. Small, Middle, Big submarines :/
Good Luck!