the M50 does not have the same pinout , unfortunately 540 DBW come with 2 types of VDO module both have different pinout , the best practice is to open the throttle black cover and you can easily trace the pinout wiring , as you will have 2 pins for the motor and you can easily see the traces for the 2 TPS with shared 5V and 0V , and dont worry if you swap the 5V over the 0V as you will eventually calibrate the throttle in the software , as for the motor to determine the 12V and 0V orentiation you will have to bench test them to see which way open the throttle as the wrong way will close it