<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Activity for Stefan Hamcke</title><link>https://forge.codesys.com/u/shamcke/activity/</link><description>Recent activity for Stefan Hamcke</description><language>en</language><lastBuildDate>Fri, 29 May 2026 15:51:16 -0000</lastBuildDate><item><title>Stefan Hamcke modified a comment on discussion Engineering 🇬🇧</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</link><description>Hello, I have written a function block that uses a generic constant for the upper bound of an array. I wanted to have this array in the persistent memory area, thus I constructed my FB as follows: FUNCTION_BLOCK FbWithGenericArrayLength VAR_GENERIC CONSTANT uiArrayLength : UINT := 10; END_VAR VAR PERSISTENT arr : ARRAY[1..uiArrayLength] OF INT; END_VAR In my PLC_PRG I declare an instance of said FB PROGRAM PLC_PRG VAR myFb : FbWithGenericArrayLength&lt;10&gt;; END_VAR This compiles just fine. When I let...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Hamcke</dc:creator><pubDate>Fri, 29 May 2026 15:51:16 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</guid></item><item><title>Stefan Hamcke modified a comment on discussion Engineering 🇬🇧</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</link><description>Hello, I have written a function block that uses a generic constant for the upper bound of an array. I wanted to have this array in the persistent memory area, thus I constructed my FB as follows: FUNCTION_BLOCK FbWithGenericArrayLength VAR_GENERIC CONSTANT uiArrayLength : UINT := 10; END_VAR VAR PERSISTENT arr : ARRAY[1..uiArrayLength] OF INT; END_VAR In my PLC_PRG I declare an instance of said FB PROGRAM PLC_PRG VAR myFb : FbWithGenericArrayLength&lt;10&gt;; END_VAR This compiles just fine. When I let...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Hamcke</dc:creator><pubDate>Fri, 29 May 2026 15:50:01 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</guid></item><item><title>Stefan Hamcke modified a comment on discussion Engineering 🇬🇧</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</link><description>Hello, I have written a function block that uses a generic constant for the upper bound of an array. I wanted to have this array in the persistent memory area, thus I constructed my FB as follows: FUNCTION_BLOCK FbWithGenericArrayLength VAR_GENERIC CONSTANT uiArrayLength : UINT := 10; END_VAR VAR PERSISTENT arr : ARRAY[1..uiArrayLength] OF INT; END_VAR In my PLC_PRG I declare an instance of said FB PROGRAM PLC_PRG VAR myFb : FbWithGenericArrayLength&lt;10&gt;; END_VAR This compiles just fine. When I let...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Hamcke</dc:creator><pubDate>Fri, 29 May 2026 15:48:52 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</guid></item><item><title>Stefan Hamcke posted a comment on discussion Engineering 🇬🇧</title><link>https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</link><description>Hello, I have written a function block that uses a generic constant for the upper bound of an array. I wanted to have this array in the persistent memory area, thus I constructed my FB as follows: FUNCTION_BLOCK FbWithGenericArrayLength VAR_GENERIC CONSTANT uiArrayLength : UINT := 10; END_VAR VAR PERSISTENT arr : ARRAY[1..uiArrayLength] OF INT; END_VAR In my PLC_PRG I declare an instance of said FB PROGRAM PLC_PRG VAR myFb : FbWithGenericArrayLength&lt;10&gt;; END_VAR This compiles just fine. When I let...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Hamcke</dc:creator><pubDate>Fri, 29 May 2026 15:41:15 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com/forge/talk/Engineering/thread/f89a2f8133/?limit=25#0ff5</guid></item></channel></rss>