Wiring the voltage regulator boxes RB310 and RB340 ? any difference

Hi Guys I have a new RB 340 voltage regulator which I would like to use instead of looking for a used RB 310 unit ( the old 310 unit was burned in an under bonnet fire with P.O ). Can anyone please advise if the wiring to them is the same.
Now rebuilding the Mk2

Found this , you need to look at a wiring diagram , looks like the 310 was fitted to MK1 2.4 , 3.4 had the 340