LrBreakerStatus.value is an OPC tag I created for a simulated device…I can’t write to it. The exact error I get when trying to change a Boolean output value is
Error writing to LrBreakerStatus.value: Bad("Bad_NotWritable: The access level does not allow writing to the Node.")
I get the same message when trying to write a value from the gateways OPC QuickClent:
You are going to be prevented from writing to this simulated object because functions used within the definition don’t allow writes. This means that the square(0.0, 1.0, 200, true) will block overrides of the value.
If you want to be able to override this value, you can do the following which would simulate the square wave but still allow you to write to the value:
At time 200, BinaryOutput:0:g10v2i0 changes to true
At time 400, BinaryOutput:0:g10v2i0 changes to false and will hold that value until the program restarts. If these are the only entries, the program will immediately restart back a the 0 time. If you add more to the program, you would need to keep the <= to 400 or else false will persist until the program restarts.
Note that the simulator does have global settings for Repeat Program and Base Rate (ms) that will determine if the program restarts automatically and what the Time Interval column translates to.