I’m running into a peculiar situation where arrays that are defined in the PLC program ( ie myArray[1…5]of word) and added to the symbol configuration file for OPC UA and then brought in to the Visu Panel via Datasource manager using OPC UA data source, are made available with the incorrect array indicies. On the Visu Panel side the object above is shown as myArray[0…4]of word via the OPC UA. This happens for all arrays in the configuration. Some reason they are forced to begin at 0. Its not the configuration file either because I can connect to it via UA Expert and the array indexes are seen as they should be. So its in the receiving end via the Data Source Manager. FW of the PFC200 and Visu Panel are both FW26.
Hello Mike,
basically I can’t tell you why CODESYS reads the array in this way. However, you can also set the array to [1…5] in “Type Mappings”. Below is a screenshot of my test.
2 Likes
Thanks Florian. I was able to work around it, I just found it very odd that codesys would take something from OPC UA mapping and arbitrarily change something that is part of the OPC UA object. I had not noticed the Mapping possibility so that is good to know.