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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?