Search talk: constant library

 
<< < 1 .. 18 19 20 21 22 .. 43 > >> (Page 20 of 43)

Missing menu item's for install device and library CODESYS Forge talk (Thread)
Missing menu item's for install device and library
Last updated: 2014-05-29

JSON HTTP Client Library by Extend smart Coding CODESYS Forge talk (Thread)
JSON HTTP Client Library by Extend smart Coding
Last updated: 2019-01-07

Open Source MQTT SparkplugB Library v1.0.0.0 released CODESYS Forge talk (Thread)
Open Source MQTT SparkplugB Library v1.0.0.0 released
Last updated: 2020-11-09

Aus Library auf GPIO des PI zugreifen CODESYS Forge talk (Thread)
Aus Library auf GPIO des PI zugreifen
Last updated: 2015-12-09

Can't see any documentation in the Library manager CODESYS Forge talk (Thread)
Can't see any documentation in the Library manager
Last updated: 2017-08-27

Need help on Alarm Trend Library CODESYS Forge talk (Thread)
Need help on Alarm Trend Library
Last updated: 2010-02-03

Using existing C code as External Library CODESYS Forge talk (Thread)
Using existing C code as External Library
Last updated: 2017-02-24

How to get CAA library from CoDeSys store??? CODESYS Forge talk (Thread)
How to get CAA library from CoDeSys store???
Last updated: 2014-01-15

how to create my own library know-how-protect CODESYS Forge talk (Thread)
how to create my own library know-how-protect
Last updated: 2016-11-08

Trouble accessing Math functions in OSCAT library CODESYS Forge talk (Thread)
Trouble accessing Math functions in OSCAT library
Last updated: 2024-01-16

IFM CR711S Can Low Level Library Use CODESYS Forge talk (Thread)
IFM CR711S Can Low Level Library Use
Last updated: 2024-04-03

Library error after creating project from python CODESYS Forge talk (Thread)
Library error after creating project from python
Last updated: 2024-05-29

Problems using MySql Library and SysProcessExecuteCommand2 together CODESYS Forge talk (Thread)
Problems using MySql Library and SysProcessExecuteCommand2 together
Last updated: 2024-06-18

Problems using MySql Library and SysProcessExecuteCommand2 together CODESYS Forge talk (Thread)
Problems using MySql Library and SysProcessExecuteCommand2 together
Last updated: 2024-06-18

Synaxis of library declarations in the ST CODESYS Forge talk (Thread)
Synaxis of library declarations in the ST
Last updated: 2025-11-26

Codesys 3.5.21.3 add Library search not work CODESYS Forge talk (Thread)
Codesys 3.5.21.3 add Library search not work
Last updated: 2026-05-26

file library ifm CR2033 .lib in the CODESYS v2.3 CODESYS Forge talk (Thread)
file library ifm CR2033 .lib in the CODESYS v2.3
Last updated: 2026-04-22

Post by nz-dave on Variable Length Array - Cannot mix variable and fixed length dimensions? CODESYS Forge talk (Post)
VAR CONSTANT size : INT := 10; END_VAR My_Array : ARRAY[1..SIZE , 1..5] OF REAL;
Last updated: 2025-05-26

Post by patch914 on Constant error in logs "SysEthernetGetPortConfigAndStatus: Adapter Not Found" CODESYS Forge talk (Post)
Did you find a solution for this? I am seeing the same errors.
Last updated: 2024-02-05

Post by tvm on Cannot pass array of constant size to a function as a reference CODESYS Forge talk (Post)
maybe this would be a better approach, then you don't have to pass the constant at all. FUNCTION fun : INT VAR_IN_OUT arr: ARRAY[*] OF INT; END_VAR VAR lower: DINT; upper: DINT; END_VAR lower:= LOWER_BOUND(arr, 1); upper:= UPPER_BOUND(arr, 1); see here as well https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_datatype_array/
Last updated: 2024-01-08

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

Post by jorenbeyl on library inside library CODESYS Forge talk (Post)
I am currently developing a library that contains real‑time data. To handle this real‑time data, I am using additional libraries called SysTime and SysTypes Interfaces. When I compile my library on its own, no errors occur. However, when I use this library in a project and compile the project, I get an error indicating that the SysTime data type is not recognized. This happens even though the SysTime library is visible as a dependency under my library. Does anyone know how to correctly include a library within another library so that the project recognizes the sub‑library without causing compilation errors?
Last updated: 2026-04-23

Post by timvh on library inside library CODESYS Forge talk (Post)
1) it should be possible to access the type SysTime in the project as A_Lib.SysTime. 2) you could add the SysTimeCore library to the library manager of your library (POU Pool). This might seem as a double library, but because of the placeholder resolution only one will be used. Then, in your library manager of your library, select the SysTimeCore library, right-click, select "Properties" and enable the option "Publish all IEC symbols ...." For more information about library development, you could follow our advanced training course in Ridderkerk. The next is scheduled for 24 and 25 June 2026 https://www.extendsmartcoding.nl/codesys-training/
Last updated: 2026-04-25

Post by seesle on Extracting information out of a *.library or *.compiled-library file CODESYS Forge talk (Post)
Hey there, is there a way to extract any data out of a .library or a .compiled-library file? Do you have any tools or a description of the binary or something like this to get for example the referenced libraries of a *.library file or any other stuff? Thx in advance M.
Last updated: 2023-12-04

Post by dclements on Feature Request: Read-Only References / Pointer-to-Const Support CODESYS Forge talk (Post)
I would like to suggest adding support for persistent read-only references or pointers in CODESYS, similar to a C++ pointer-to-const (const T*). For example, something conceptually similar to: POINTER TO CONSTANT ST_MyData or REFERENCE TO CONSTANT ST_MyData The important distinction is that the reference itself may still be passed around or reassigned, but the referenced object cannot be modified through that reference. CODESYS currently supports VAR_IN_OUT CONSTANT, which provides read-only reference semantics for parameters, but there does not appear to be an equivalent type that can be stored in a variable or returned from a method. A practical use case is a registry that owns long-lived definitions. The registry needs to retain ownership of the data while downstream systems maintain persistent references to it. Currently, the main options are: Return the struct by value, which loses reference semantics and requires a copy. Return POINTER TO ST_Definition, which allows consumers to modify registry-owned data. Convert the structure into a Function Block and expose a getter-only interface, which provides the desired encapsulation but introduces more complexity and memory overhead. A read-only reference/pointer type would allow libraries to expose persistent, zero-copy access to internally owned data while preserving encapsulation. This would be particularly useful for library APIs and object-oriented CODESYS architectures where ownership of data should remain with one component while other components are allowed to observe it. Similar requests for constant references/pointers have been discussed on CODESYS Forge previously, so this appears to be a recurring use case rather than something specific to one application.
Last updated: 6 days ago

<< < 1 .. 18 19 20 21 22 .. 43 > >> (Page 20 of 43)

Showing results of 1053

Sort by relevance or date