You did not give us enough information to help you. We know:
- AC power frequency is 50Hz
- Output is a flame
- Output for 20ms works (this is one cycle at 50Hz)
- Output is PWM modulated
- You want a 1s flame
Things we don't know and need to know:
- What does your code look like (please post it or the relevant pieces, actual code is much better than images, but if you use an image, use PNG format)?
- What is your PWM frequency (you imply it is 50Hz, but without code, we don't know)?
- How is the flame duration translated from GUI entry to hardware?
- How is the software connected to the hardware? What is the interface?
In short, please post code and interface info and we can help.