Arduino mega code for 3ph inverter

Hi, i still have problemas with my 3ph 60 hertz arduino inverter project. Can you help with the final code for this? 3ph inverter with arduino mega 2560

(deleted)

Ooops sorry, this is the code, does not works

n 5 to corresponding duty cycle
}
if(OK4==1){
OCR3A=0;//make pin 5 0
OCR3B=z;//enable pin 2 to corresponding duty cycle
}
}
}
void loop() {
}

(deleted)

Hi, you know the “code” was given to me from a guy the way it is, im not that good in C++ programming so iam looking for help.
What i need is a code that provides a 3ph pwm 60 hz 220 vac, so if there is the case that this code is not well displayed it is because i got that way, any help will be higly appreciated or may be i can pay some for it.

This the circuit