AdvancedHMI Software

General Category => Support Questions => Topic started by: MrPike on October 22, 2020, 08:43:42 AM

Title: Write data between PLCs
Post by: MrPike on October 22, 2020, 08:43:42 AM
I am attempting to use AHMI to read ModbusTCP data using a datasubscriber then write whatever data is returned to another controller.  I'm having trouble with the code, please see attached.  How would I do this?  Thanks
Title: Re: Write data between PLCs
Post by: Archie on October 22, 2020, 08:59:13 AM
You can use the ComBridge to do the same thing without writing code.

To use the code with BeginWrite, leave out the "(0)" because it is looking for an array (not just a single element of the array)
Title: Re: Write data between PLCs
Post by: MrPike on October 22, 2020, 10:28:26 PM
The ComBridge component is brilliant Archie!  It worked great.  I did try to remove the "0" but VS still threw an error because the data types were not compatible.  Thank you.