bartm - 2020-11-03

I have a small code running:
OneShot(CLK:= Signal);

IF OneShot.Q = TRUE THEN
Out := NOT Out;
END_IF

The "Out" variable is also changed on another location (modbus coil).

If I create a FB from this code, it is not possible to control the variable connected to the output from the other location.
What could be the cause and solution?