I'm testing AdvancedHMI to see if I can pass data both ways between a Beckhoff PC running TwinCAT3 and an OPC server running on a remote PC.
I'd like to use the ComBridge, as it's very easy to set up, and seems to recover from network interruptions. It's quite easy to configure, with the caveat that you end up with a lot of ComBridge's! I've sucessfully read an ADS item from the Beckhoff PC and put it into an item on the OPC server. However this was a scalar item. I have quite a lot of arrays to read and write between the two machines.
I have configured the ComBridge in the same way as the scalar item, with the exception that I have added the NumberOfElements parameter. I have changed this to the number of elements in the array. The two arrays (source and destination) are of an equal size.
Although the application runs, I can see a "Exception thrown: 'MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException' in AdvancedHMIDrivers.dll" in the Output window. I don't get this if remove the ComBridge that is handling the array from the project, so I guess this is the one that's causing the issue.
So, a few questions.
1) Have I configured this correctly? The configuration is shown in the image attached.
2) Are the array sizes zero or one based?
3) If you get the array size wrong, what happens? Does it require the actual array size, or can you copy less than the number of array items from the source array to the target array? For example, if your source is 20, and your destination is 10, can you set the array size to copy just the first 10 items of the source array?
4) Is there a way to get more debug information out? I can see that there has been an excepttion, but it would be nice to be able to pin point where it's coming from.
I'm using v399xR1, by the way.