Hi,
I think you are using the same frequency, but more than that you have to use exactly the same timer.

'DEFINE HPWM1_TIMER 1
'DEFINE HPWM2_TIMER 2

I think that you should use:
'DEFINE HPWM1_TIMER 2
'DEFINE HPWM2_TIMER 2

but I am not sure, having never used PICBASIC to control PWM's

Thanks, Keith