Author Topic: is it possible for the PLC to trigger an event in Visual Basic?  (Read 3439 times)

Stevenlee

  • Newbie
  • *
  • Posts: 6
    • View Profile
is it possible for the PLC to trigger an event in Visual Basic?
« on: February 09, 2014, 08:02:50 AM »
I figgured out how to get scale data from com2, have the computer convert it to an interger and send it to the PLC via DF1Comm1. Now is it possible to have the PLC trigger that event? Im trying to get it to work but I keep getting an error.

Thanks for any help you can give.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: is it possible for the PLC to trigger an event in Visual Basic?
« Reply #1 on: February 09, 2014, 11:22:06 AM »
The easiest way is to add a Datasubscriber to the form and put in  PLCAddressValue the bit you want to trigger the action. The double click the DataSubscriber to get back to the code. In the code, write the data to the PLC.