Author Topic: RSLinx OPC and Emulate5000  (Read 2631 times)

thirdeye73

  • Newbie
  • *
  • Posts: 22
    • View Profile
RSLinx OPC and Emulate5000
« on: January 12, 2015, 06:12:47 PM »
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


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5283
    • View Profile
    • AdvancedHMI
Re: RSLinx OPC and Emulate5000
« Reply #1 on: January 12, 2015, 07:28:03 PM »
Have you tried the EtherentIPforCLXCom driver? OPC is really not a very graceful driver and should be avoided if possible.

thirdeye73

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: RSLinx OPC and Emulate5000
« Reply #2 on: January 12, 2015, 08:28:30 PM »
When I have a real CompactLogix PLC to test with I will use the EthernetIP driver.  Emulator5000 does not simulate Ethernet modules so that wasn't an option. 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5283
    • View Profile
    • AdvancedHMI
Re: RSLinx OPC and Emulate5000
« Reply #3 on: January 12, 2015, 08:43:42 PM »
I'm stuck in the opposite situation. I don't have Emulate5000 to test with.

thirdeye73

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: RSLinx OPC and Emulate5000
« Reply #4 on: January 19, 2015, 11:56:20 AM »
I got the OPC driver to work with RS Emulate5000.  I found the following thread, and applied the change:

http://advancedhmi.com/forum/index.php?topic=598.msg2678#msg2678

Thanks,
Scott