String to c++ program

I want to send a string to a C++ program, but cannot figure out the correct data type. I’ve tried creating a variable of type uint8 dataString [512] in eclipse, and made a new datatype in pcworx, an array of 512 bytes. However i cannot connect a variable of this type to the out port of the program. (the string is simply copied into this array) Thanks in advance

Hello, actually this should work exactly how you described it.

Array of byte → array uint8
please send some code snippets maybe there is a typo somewhere?

IEC Datatypesheet and variable declaration
C++ *.hpp var decalaration , Addportinfo in Cpp and what does the Progmeta for your type look like?

Thank you for a quick response. All the other ports connect correctly, however when i try to connect to the array port, PCWorx gives me no options.


Some more screenshots.


The problem is that your IEC has 0 - 512 = 513 and the C++ has 512 Byte…