This error stopped occurring after a power cycle. I cannot explain it past that. The system had been powered on for months and this was probably the first power cycle in some time. The original code in the solution above works now and the "write" to 'connect' or 'disconnect' does not require an actual value or variable in the "Value" input of the function block.
... View more