There are two types of flip-flops in Siemens S7-300 and S7-400 PLCs. SR and RS.
In the RS flip-flop, if the "S" input is turned on, even momentarily,
Output "Q" is permanently on.
If the "R" input turns on, the "Q" output turns off.
If the "S" and "R" inputs are turned on together,
Output "Q" turns on.