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
Generic Variables and FDB
CODESYS Forge
talk
(Thread)
Generic Variables and FDB
Last updated: 2026-06-29
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: 6 days ago
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: 6 days ago
Linux ARM64 Deploy Fail - Index out of range
CODESYS Forge
talk
(Thread)
Linux ARM64 Deploy Fail - Index out of range
Last updated: 6 days ago
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: 6 days ago
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: 6 days ago
Runtime 🇬🇧
CODESYS Forge
talk
(Discussion)
Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms
Last updated: 6 days ago
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.