Home
chang
wiki
(WikiPage)
Project Members: chang (admin)
Last updated: 2026-06-28
Post by rmarco on Generic Variables and FDB
CODESYS Forge
talk
(Post)
Hello everyone, I am running into a highly frustrating issue in the FBD editor regarding a Function Block with generic constants (VAR_GENERIC CONSTANT). I created a FB using ST, with a generic var, useful for having a variable sized array, as follows: FUNCTION_BLOCK Coil VAR_GENERIC CONSTANT maxEvents: USINT := 5; END_VAR VAR events: ARRAY[0..maxEvents-1] OF IEvent; END_VAR These FBs have also several methods. I declare them as follows in code: VAR coil1: CDL.Coil<(maxEvents:=1)>; END_VAR and when using them in ST, I have no problems. However, when trying to use them in FDB, I do not know how to do that, as some strange misalignment happens. Here's what happens: When I add the block to my FBD canvas and assign coil1 as the instance name, the compiler throws this error: 'coil1' is not an instance of 'CDL.Coil<(maxEvents:=1)>'. Same occurs when I try to instantiate blocks such as 'coil1.turnOn' or similar. Here is what I have already tried, none of which worked: - Deleting the <(maxEvents:=1)> parameter from the text inside the FBD box. - Deleting the block entirely, dropping an "Empty Box", and typing coil1 above it to let the IDE auto-complete and format the block. - Running a full "Clean All" and rebuilding the code. I am aware that I could bypass the graphical editor by calling it in Structured Text. However, I need to keep this logic compatible to FBD. Has anyone encountered this specific FBD parsing bug with generic variables? Thanks in advance for any insights. Best regards, Marco
Last updated: 2026-06-29
(no subject)
rmarco
wiki
(Thread)
Last updated: 2026-06-29
Home
rmarco
wiki
(WikiPage)
Project Members: rmarco (admin)
Last updated: 2026-06-29
wiki Discussion
vanek0196
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-06-30
blog Discussion
vanek0196
blog
(Discussion)
Forum for blog comments
Last updated: 2026-06-30
home Discussion
a1111
home
(Discussion)
Forum for home comments
Last updated: 2026-06-30
Home
vanek0196
wiki
(WikiPage)
Project Members: vanek0196 (admin)
Last updated: 2026-06-30
(no subject)
vanek0196
wiki
(Thread)
Last updated: 2026-06-30
(no subject)
a1111
home
(Thread)
Last updated: 2026-06-30
Post by eschwellinger on Linux ARM64 Deploy Fail - Index out of range
CODESYS Forge
talk
(Post)
Which Deploy Tool version is installed? the ssh login does work? If yes could we get a screenshot of the device information see my example:
Last updated: 2026-07-01
Home (version 1) discussion
rmarco
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-07-01
Post by arj3090 on Linux ARM64 Deploy Fail - Index out of range
CODESYS Forge
talk
(Post)
This is the version shown in the CodeSys Installer.
Last updated: 2026-07-01
Linux ARM64 Deploy Fail - Index out of range
CODESYS Forge
talk
(Thread)
Linux ARM64 Deploy Fail - Index out of range
Last updated: 2026-07-01
Post by eschwellinger on Linux ARM64 Deploy Fail - Index out of range
CODESYS Forge
talk
(Post)
I would check the version of the deloy tool using the CODESYS installer. Sure manually installing works too, but woukd nice to know if there is a problem. Currebt version is 4.21.0.0 of the deploytool.
Last updated: 2026-07-01
Post by arj3090 on Linux ARM64 Deploy Fail - Index out of range
CODESYS Forge
talk
(Post)
I used Tools->Deploy Control SL in the IDE that I downloaded yesterday. So I assume it is the latest version. I did a manual install using SSH and it works.
Last updated: 2026-07-01
blog Discussion
lhouben
blog
(Discussion)
Forum for blog comments
Last updated: 2026-07-03
Home (version 1) discussion
cad128663
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-07-03
Home (version 1) discussion
vanek0196
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-07-04
Home (version 1) discussion
rzia163
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-07-03
Home (version 1) discussion
a1111
home
(Thread)
Home (version 1) discussion
Last updated: 2026-07-04
Home (version 1) discussion
blade
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-07-06
wiki Discussion
john-morgan-fs
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-07-06
blog Discussion
john-morgan-fs
blog
(Discussion)
Forum for blog comments
Last updated: 2026-07-06
Home
john-morgan-fs
wiki
(WikiPage)
Project Members: john-morgan-fs (admin)
Last updated: 2026-07-06