Home
Help
Search
Login
Register
AdvancedHMI Software
»
General Category
»
Support Questions
»
Write data between PLCs
« previous
next »
Print
Pages: [
1
]
Author
Topic: Write data between PLCs (Read 1320 times)
MrPike
Sr. Member
Posts: 297
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
Logged
Archie
Administrator
Hero Member
Posts: 5322
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)
Logged
MrPike
Sr. Member
Posts: 297
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.
Logged
Print
Pages: [
1
]
« previous
next »
AdvancedHMI Software
»
General Category
»
Support Questions
»
Write data between PLCs