The OptimizeWrite is false by default. If you set it to 1, modbus will optimize the write function. It will avoid some unnecessary write from Lookout to plc. It just improves the performance.
Below is my test.
If "immediately write outputs" is checked, the write command will immediately be sent out after you change the value in Lookout. I can't see the problem in this condition.
Then I uncheck it, and set a long time to "Poll". I see this behaviour,
Lookout 0, plc 0
Lookout 1, plc 0
Poll
Lookout 1, plc 1
Lookout 0, plc 1, Lookout pot snap back
Poll
Lookout 1, plc 1
I think this is the correct behaviour. PLC doesn't overwrites Lookout, but Lookout pot snaps back. In the next poll, Lookout pot get confirmation from plc and set its value to 1.
Ryan Shi
National Instruments