<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Activity for stade</title><link href="https://forge.codesys.com/u/stade/activity/" rel="alternate"/><id>https://forge.codesys.com/u/stade/activity/</id><updated>2020-06-23T05:08:40.359000Z</updated><subtitle>Recent activity for stade</subtitle><entry><title>stade posted a comment on discussion Codesys V2.3</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#fcab/79dc" rel="alternate"/><published>2020-06-23T05:08:40.359000Z</published><updated>2020-06-23T05:08:40.359000Z</updated><author><name>stade</name><uri>https://forge.codesys.com/u/stade/profile/</uri></author><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#fcab/79dc</id><summary type="html">It looks like every DataExchangeN in your code means different DataExchange. I have only 1 DataExchange and hundreds of variables with different datatype in this DataExchange. So what I want is likely Collection[0] point to DataRead.Data1, Collection[1] point to DataRead.Data2, .. Collection[N] point to DataRead.DataN+1. I will try if pointer can do this, thanks.</summary></entry><entry><title>stade modified a comment on discussion Codesys V2.3</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#2aa7/c05d" rel="alternate"/><published>2020-06-22T08:48:11.736000Z</published><updated>2020-06-22T08:48:11.736000Z</updated><author><name>stade</name><uri>https://forge.codesys.com/u/stade/profile/</uri></author><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#2aa7/c05d</id><summary type="html">Hi aliazzz. Actually I have hundreds of elements with different datatype in the struct, which means there are Data1 .. Data1000(or more). The names of element are illustrative, actually they are irregular. I have only 1 DataExchange named DataRead, and I want to use index as parameter to call the element I need. For example, when I want to call Data50, I may use index 50 to call this element, instead of using DataRead.Data50. But I have no idea how to implement it. Sorry for my bad statement and...</summary></entry><entry><title>stade posted a comment on discussion Codesys V2.3</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#2aa7/c05d" rel="alternate"/><published>2020-06-22T08:34:12.476000Z</published><updated>2020-06-22T08:34:12.476000Z</updated><author><name>stade</name><uri>https://forge.codesys.com/u/stade/profile/</uri></author><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#2aa7/c05d</id><summary type="html">Hi aliazzz. Actually I have hundreds of elements with different datatype in the struct DataExchange, which means there are Data1 .. Data1000(or more). The names of element are illustrative, actually they are irregular. I have only 1 DataExchange named DataRead, and I want to use index as parameter to call the element I need. For example, when I want to call Data50, I may use index 50 to call this element, instead of using DataRead.Data50. But I have no idea how to implement it. Sorry for my bad statement...</summary></entry><entry><title>stade modified a comment on discussion Codesys V2.3</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#a92a" rel="alternate"/><published>2020-06-22T03:36:55.993000Z</published><updated>2020-06-22T03:36:55.993000Z</updated><author><name>stade</name><uri>https://forge.codesys.com/u/stade/profile/</uri></author><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#a92a</id><summary type="html">Hi, I have a struct with elements in different datatype, for example: TYPE DataExchange : STRUCT Data1 : INT; Data2 : WORD; Data3 : DWORD; END_STRUCT END_TYPE VAR DataRead : DataExchange; END_VAR Is there any way to use the elements in the struct via index? It means using DataRead[1] := 0 instead of DataRead.Data1 := 0, DataRead[2] := 0 instead of DateRead.Data2 := 0, etc. Thanks.</summary></entry><entry><title>stade posted a comment on discussion Codesys V2.3</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#a92a" rel="alternate"/><published>2020-06-22T03:19:08.857000Z</published><updated>2020-06-22T03:19:08.857000Z</updated><author><name>stade</name><uri>https://forge.codesys.com/u/stade/profile/</uri></author><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/bc7af6b23d/?limit=25#a92a</id><summary type="html">Hi, I have a struct with elements in different datatype, for example: TYPE DataExchange : STRUCT Data1 : INT; Data2 : WORD; Data3 : DWORD; END_STRUCT END_TYPE VAR DataRead : DataExchange; END_VAR Is there any way to use the elements in the struct via index? It means using DataRead[0] := 0 instead of DataRead.Data1 := 0, DataRead[1] := 0 instead of DateRead.Data2 := 0, etc. Thanks.</summary></entry></feed>