In this type of control you need 6 PWM signals not just 3.
3 on the high side and 3 on the low side on the IGBT switch because it works with 3 H bridge halves. Therefore, the pure wave code is not good because it should be written with a half-wave break and with a gap of 180 between the command on the high side and command on the low side of the IGBT