SCADA Systems Are Becoming Easier to Integrate With Modern Applications
CODESYS Forge
talk
(Thread)
SCADA Systems Are Becoming Easier to Integrate With Modern Applications
Last updated: 2026-05-28
SCADA Systems Are Becoming Easier to Integrate With Modern Applications
CODESYS Forge
talk
(Thread)
SCADA Systems Are Becoming Easier to Integrate With Modern Applications
Last updated: 2026-05-28
Post by totorovic on Ladder editor bug with 3.5.21.20
CODESYS Forge
talk
(Post)
Ladder version is 1.1.0.0
Last updated: 2026-05-28
Home (version 1) discussion
ruslan74
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-05-29
Post by shamcke on Array with generic constant as persistent variable
CODESYS Forge
talk
(Post)
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<10>; END_VAR This compiles just fine. When I let CODESYS fill my persistent list, it adds duplicate entries {attribute 'qualified_only'} VAR_GLOBAL PERSISTENT RETAIN // Generated instance path of persistent variable PLC_PRG.myFb.arr: ARRAY [1..uiArrayLength] OF INT; // Generated instance path of persistent variable PLC_PRG.myFb.arr: ARRAY [1..uiArrayLength] OF INT; END_VAR so I manually delete the duplicate. When i now compile, I get errors ------ Build started: Application: Device.Sim.Device.Application ------- Typify code... [ERROR] Sandbox_FW31: PersistentVars [Device: PLC Logic: Application](Line 4): C0161: Border 'uiArrayLength' of array is no constant value [ERROR] Sandbox_FW31: PersistentVars [Device: PLC Logic: Application](Line 4): Type of mapped variable is not equal to original type Compile complete -- 2 errors, 0 warnings Build complete -- 2 errors, 0 warnings : No download possible Is is simply not possible to use a generic constant for the persistent array? Thanks in advance. Edit: It seems I can manually replace the uiArrayLength in the persisten list by the value 10 I used as the generic constant for this particular instance.
Last updated: 2026-05-29
Home (version 1) discussion
shamcke
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-05-29
wiki Discussion
cm1435
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-05-30
blog Discussion
cm1435
blog
(Discussion)
Forum for blog comments
Last updated: 2026-05-30
(no subject)
cm1435
wiki
(Thread)
Last updated: 2026-05-30
Post by eschwellinger on Ladder editor bug with 3.5.21.20
CODESYS Forge
talk
(Post)
Hi, could you please update to Ladder 1.2.0.0 via CODESYS Installer and check if this is still in?
Last updated: 2026-06-01
wiki Discussion
asarikhani
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-06-01
blog Discussion
asarikhani
blog
(Discussion)
Forum for blog comments
Last updated: 2026-06-01
(no subject)
asarikhani
wiki
(Thread)
Last updated: 2026-06-01
Home
asarikhani
wiki
(WikiPage)
Project Members: asarikhani (admin)
Last updated: 2026-06-01
Post by alex-n on Problem with keeping up the distance between two axes
CODESYS Forge
talk
(Post)
We use Inovance AC802 as PLC, IS810N Drive, library 4.10, connection via Ethercat and no any suprise at work.
Last updated: 2026-06-02
Post by eschwellinger on too much data for the controller
CODESYS Forge
talk
(Post)
Retains used in the project?
Last updated: 2026-06-02
too much data for the controller
CODESYS Forge
talk
(Thread)
too much data for the controller
Last updated: 2026-06-02
Post by eschwellinger on Problem with keeping up the distance between two axes
CODESYS Forge
talk
(Post)
Which controller which version which SoftMotion Drive... realtime problems?
Last updated: 2026-06-02
Post by totorovic on Ladder editor bug with 3.5.21.20
CODESYS Forge
talk
(Post)
The update via CODESYS Installer fails (admin mode). Anyway I am switching all my POUs from Ladder to ST because Ladder cannot be used like this.
Last updated: 2026-06-02
Ladder editor bug with 3.5.21.20
CODESYS Forge
talk
(Thread)
Ladder editor bug with 3.5.21.20
Last updated: 2026-06-02
Home (version 1) discussion
jiang
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-06-02
Home (version 1) discussion
suryasriavinash
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-06-03
Post by alex-n on Problem with keeping up the distance between two axes
CODESYS Forge
talk
(Post)
Hello. I have a task to synchronize the movement of two axes and maintain the distance between them. First axe makes equal steps by trigger using MC_MoveRelative function. The second one is standstill and after another signal should catch up the first one from its position to a specified distance and keep it. I've tried to use MC_Phasing and mostly it works. Second axis catches up the first and starts make step with it. But in one moment this axis can crash into the first and there is no clear connection as to why this is happening. It can work correct for a day or for a week.
Last updated: 2026-06-04
Home (version 1) discussion
stbstb
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-06-04
Home (version 1) discussion
dattq
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-06-04