When I press the button, its output is in a continuous 0-1 loop

Hello, When I connect the program to a real PLC, for example, when I put a button or sensor on the i0.0 input and connect a lamp to the q0.0 (real output) output, I see that; the lamp is working in the 0-1 state in a continuous loop. How can I solve this problem?

You need connect Com for that output group to negartive. I think that is not relay output.