Author Topic: Write data between PLCs  (Read 1320 times)

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Write data between PLCs
« 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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Write data between PLCs
« Reply #1 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)

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Re: Write data between PLCs
« Reply #2 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.