Set Firing Angle TRIAC using optocoupler with PWM

Boardburner2:
What range of power control do you need.

PWM as a term is normally used with DC power sources here and is probably the wrong term to use but i suspect a language understanding problem.

power That I need depend on PF.
TRIAC connected to capacitor to generate capacitive (VAR) to compensation inductive (VAR).
lets say 0 - 220 V and 4uF (Xc about say it 200).

based

Q = V^2 / Xc

Q = 220.220/(200)
Q = 242 VAR (max), voltage depend on PF quality

just for example

Sorry, for bad english.