I'm not sure whether I'm doing something wrong, or if this is related to my trying to use Emulator5000 with OPC to test. Here's what I've done:
PLC environment:
ControlLogix emulator running under Emulate5000
RSLinx OPC Topic has been created and verified via the RSLinx OPC Test Client
VB Environment:
I added an OpcDaCom driver, and set Server Name=RSLinx OPC Server, and Topic=TOTO_Emulation (same as the one created in RSLinx).
I added a button, set it to "Set True" and set the PLCAddressClick to my tag name Pilot (controller scoped).
I added a pilot light, and set PLCAddressValue to Pilot.
When I click the button, I flip over to RSLogix5000 and see it is set to 1.
But the Pilot light does not change state.
I set the tag value to 0 in RSLogix and try again, same results.
Next, I got rid of the button and wrote PLC logic to toggle the Pilot tag on for 1 second and off for one second.
Still the Pilot light does not change state.
I added a DataSubscriber and set PLCAddressValue to Pilot. I then set a breakpoint at the DataChanged event handler, but it never fires.
Thanks,
Scott