AdvancedHMI Software

General Category => Open Discussion => Topic started by: Stevenlee on February 09, 2014, 08:02:50 AM

Title: is it possible for the PLC to trigger an event in Visual Basic?
Post by: Stevenlee 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.
Title: Re: is it possible for the PLC to trigger an event in Visual Basic?
Post by: Archie 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.