3>R1 is to set the PWM duty cycle to 220v. Connect voltmeter to the output of your inverter and vary VR1 till the voltage reads 220V.
4>R2 is to set the frequency to 50 or 60 Hz (R2 range is between 40Hz to 75Hz), so guys that do not have a frequency meter are advised to blindly put this variable resistor mid-way which should drop you in the range of 50~60 Hz.
If you want you can substitue the variable resistor with a fixed resistor using the following formula: F = 1.3 / (RxC)
in our case to get a 50Hz output we remove both the 100K and the variable 100K both from pin 6 and we put instead a 260K fixed resistor and we leave the 0.1uF (the 104 cap) as it is, this change should give out a fixed 50Hz as per the formula :
1.3 / (260,000 ohm x 0.0000001 farad) = 50Hz
But in reality it will not exactly give 50Hz because the 260K resistor has a specific error value margin so does the capacitor, that's why i recommend a variable resistor so that accurate calibration can be achieved.