Which facility are you using to set the laser PWM: E values on the G1 commands, or M3 commands between the G1 commands?
Either way, you first need to make the E1 heater output (heater 2) available as a GPIO pin by sending M307 H2 A-1 C-1 D-1. After that:
If you are using E values on the G1 commands, send M571 P2 If you are using M3 commands, send your M452 P2 command after that.