Search the Community
Showing results for tags 'vector'.
Hello, I have a vector of MIs starting at MI 250, containing at most 20 elements. It is supposed to act like a FIFO buffer. There is an array of objects moving on a conveyor. Whenever an object triggers a sensor, some integer information is stored at the first available MI in the vector (there is another variable that indicates the number of elements in the vector, not especially relevant to this question). Some time later, when the same object triggers a second sensor, the data at MI250 is to be read, processed, and the vector data is shifted to the left, effectively consuming the first
Hello, In my program I receive a length of vectors on MI120 - MI143. When I use ASCII string to display all the vector in one line on the HMI, I only get the first character which is inside MI120, even when the length is very long. When I put RTC to vector, it is possible to display it with the samen function. So for example: MI120 a MI121 b MI122 c I want to see: abc, but I only get a. How can I solve this? Thanks!