On/Off modulation of mains voltage source (simulation)

Analyzing circuit transient behaviour when switching power on and off is really complex. I was not able to find resources on how to do this anywhere, so I created those voltage sources myself.
Sim settings are transient, 10u, 400m.
Libraries are “pspice” (R) and “Simulation_SPICE” (VSIN)
I attach the .sch files.
230V_sim_0_1_0.kicad_sch (77.5 KB)
230V_sim_1_0.kicad_sch (77.5 KB)
230V_sim_1_0_1.kicad_sch (79.3 KB)
The files contain a graphic of the simulation.
I hope this is not too trivial, but helpful.