<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Activity for apurv</title><link href="https://forge.codesys.com/u/apurv/activity/" rel="alternate"/><id>https://forge.codesys.com/u/apurv/activity/</id><updated>2024-01-09T05:00:39.978000Z</updated><subtitle>Recent activity for apurv</subtitle><entry><title>apurv posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#645d/1035" rel="alternate"/><published>2024-01-09T05:00:39.978000Z</published><updated>2024-01-09T05:00:39.978000Z</updated><author><name>apurv</name><uri>https://forge.codesys.com/u/apurv/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#645d/1035</id><summary type="html">okay but will this pass the array by copying it or it will be a reference to original array only.</summary></entry><entry><title>apurv posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#0d04" rel="alternate"/><published>2024-01-08T05:13:47.662000Z</published><updated>2024-01-08T05:13:47.662000Z</updated><author><name>apurv</name><uri>https://forge.codesys.com/u/apurv/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#0d04</id><summary type="html">Could not find the solution to this issue but I have side stepped this by creating a global variable MAX_SIZE.</summary></entry><entry><title>apurv modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#41dd" rel="alternate"/><published>2024-01-07T09:57:12.354000Z</published><updated>2024-01-07T09:57:12.354000Z</updated><author><name>apurv</name><uri>https://forge.codesys.com/u/apurv/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#41dd</id><summary type="html">I have a Array of constant size defined like this Var Constant MAX_SIZE :UINT := 10; End_var VAR array : ARRAY[0..MAX_SIZE] OF INT; END_VAR Now I want to pass this array to a function by reference, Function fun : INT VAR_IN_OUT CONSTANT MAX_SIZE : UINT; END_VAR VAR_INPUT array : REFERENCE TO ARRAY[0..MAX_SIZE] OF INT; END_VAR but when I run this it gives strange Errors Error : Cannot Convert type 'ARRAY [0..MAX_SIZE] OF INT' to type 'ARRAY[0..MAX_SIZE] OF INT'</summary></entry><entry><title>apurv modified a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#41dd" rel="alternate"/><published>2024-01-07T09:55:53.067000Z</published><updated>2024-01-07T09:55:53.067000Z</updated><author><name>apurv</name><uri>https://forge.codesys.com/u/apurv/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#41dd</id><summary type="html">I have a Array of constant size defined like this Var Constant MAX_SIZE :UINT := 10; End_var VAR array : ARRAY[0..MAX_SIZE] OF INT; END_VAR Now I want to pass this array to a function by reference, Function fun : INT VAR_IN_OUT CONSTANT MAX_SIZE : UINT; END_VAR VAR_INPUT array : REFERENCE TO ARRAY[0..MAX_SIZE] OF INT; END_VAR but when I run this it gives strange Errors Error : Cannot Convert type 'ARRAY [0..MAX_SIZE] OF INT to type 'ARRAY[0..MAX_SIZE] OF INT</summary></entry><entry><title>apurv posted a comment on discussion Engineering 🇬🇧</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#41dd" rel="alternate"/><published>2024-01-07T09:54:25.579000Z</published><updated>2024-01-07T09:54:25.579000Z</updated><author><name>apurv</name><uri>https://forge.codesys.com/u/apurv/profile/</uri></author><id>https://forge.codesys.com/forge/talk/Engineering/thread/e8a02ace95/?limit=25#41dd</id><summary type="html">I have a Array of constant size defined like this ` Var Constant MAX_SIZE :UINT := 10; End_var VAR array : ARRAY[0..MAX_SIZE] OF INT; END_VAR ` Now I want to pass this array to a function by reference, Function fun : INT VAR IN_OUT CONSTANT MAX_SIZE : UINT; END_VAR VAR_INPUT array : REFERENCE TO ARRAY[0..MAX_SIZE] OF INT; END_VAR but when I run this it gives strange Errors Error : Cannot Convert type 'ARRAY [0..MAX_SIZE] OF INT to type 'ARRAY[0..MAX_SIZE] OF INT</summary></entry></feed>