As I mentioned, confirm which wire belongs to which primary winding by a DMM!
If convert 100V to 220V or 230/240V, you need to 100% sure the resistance between gray wire and blue wire is 0 ohm, use a ohm meter to measure before connect the gray wire to pin6.