Search talk: setting value of variable

 
<< < 1 .. 43 44 45 46 47 .. 149 > >> (Page 45 of 149)

Post by salvadegianluca on How to use TON inside an FB that is instanced within a Visu page CODESYS Forge talk (Post)
Hi everyone; I'm building a project in which the drag of the mouse over some controls (or the click event) changes the background color of the control items; this change of color is made with an FB that assignes a color code to the background with MUX command based on the value of an enumerator, this part is perfectly working but, when I'm using a touchpanel instead of a web visu (controlled by a mouse) I get into some issues as it seems that the touch operations are not triggering the MouseEnter and MouseLeave properties as it's done with the mouse.... For this reason I'm trying to add a TON to my FB and, if the enum that changes color remains at the same state for more then 3s I'm automatically resetting it to it's "0" so the item gets back the not selected color. Anyhow it looks like the TON function from library is not working in these FB that are instanced in the various visualizations, as instead they do if I create some instances within the POUS. Anyone has ideas of how to make them work?
Last updated: 2024-04-15

Post by salvadegianluca on How to use TON inside an FB that is instanced within a Visu page CODESYS Forge talk (Post)
Hi everyone; I'm building a project in which the drag of the mouse over some controls (or the click event) changes the background color of the control items; this change of color is made with an FB that assignes a color code to the background with MUX command based on the value of an enumerator, this part is perfectly working but, when I'm using a touchpanel instead of a web visu (controlled by a mouse) I get into some issues as it seems that the touch operations are not triggering the MouseEnter and MouseLeave properties as it's done with the mouse.... For this reason I'm trying to add a TON to my FB and, if the enum that changes color remains at the same state for more then 3s I'm automatically resetting it to it's "0" so the item gets back the not selected color. Anyhow it looks like the TON function from library is not working in these FB that are instanced in the various visualizations, as instead they do if I create some instances within the POUS. Anyone has ideas of how to make them work?
Last updated: 2024-04-15

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: 2026-09-01

Ranges, Lambdas, on Fixed arrays of structs CODESYS Forge talk (Thread)
Ranges, Lambdas, on Fixed arrays of structs
Last updated: 2023-08-31

Save jitter measure of main task in file CODESYS Forge talk (Thread)
Save jitter measure of main task in file
Last updated: 2020-08-07

Ged rid of lines on Chart XY CODESYS Forge talk (Thread)
Ged rid of lines on Chart XY
Last updated: 2022-04-05

Resolution of visualization (for RPi's LCD 800x480) CODESYS Forge talk (Thread)
Resolution of visualization (for RPi's LCD 800x480)
Last updated: 2015-11-22

The configuration file of the PLC CODESYS Forge talk (Thread)
The configuration file of the PLC
Last updated: 2016-04-11

Where is data of ENIP getAttributeSingle stored? CODESYS Forge talk (Thread)
Where is data of ENIP getAttributeSingle stored?
Last updated: 2023-04-20

Encryption of application and communication not working CODESYS Forge talk (Thread)
Encryption of application and communication not working
Last updated: 2021-11-04

Adding a scaling factor to text sizes of different languages CODESYS Forge talk (Thread)
Adding a scaling factor to text sizes of different languages
Last updated: 2017-03-31

The intent of two Library Managers in a Project CODESYS Forge talk (Thread)
The intent of two Library Managers in a Project
Last updated: 2016-08-22

Initialization of visualization variables and cyclic code execution CODESYS Forge talk (Thread)
Initialization of visualization variables and cyclic code execution
Last updated: 2023-10-01

Access project information of references library by script CODESYS Forge talk (Thread)
Access project information of references library by script
Last updated: 2023-10-23

License status of Linux 64Bit runtime via CLI CODESYS Forge talk (Thread)
License status of Linux 64Bit runtime via CLI
Last updated: 2023-12-04

Management of a PLC network from a remote station CODESYS Forge talk (Thread)
Management of a PLC network from a remote station
Last updated: 2023-12-04

Extracting information out of a *.library or *.compiled-library file CODESYS Forge talk (Thread)
Extracting information out of a .library or .compiled-library file
Last updated: 2023-12-04

Alarm Management - Import and Export of AlarmGroup CODESYS Forge talk (Thread)
Alarm Management - Import and Export of AlarmGroup
Last updated: 2023-12-06

OPC UA RPI 4.8.0.0 Status Code / "out of range" CODESYS Forge talk (Thread)
OPC UA RPI 4.8.0.0 Status Code / "out of range"
Last updated: 2024-07-10

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

Number of Connections to Modbus TCP Slave CODESYS Forge talk (Thread)
Number of Connections to Modbus TCP Slave
Last updated: 2024-08-01

Signing Packages without exposing the password of the certificate CODESYS Forge talk (Thread)
Signing Packages without exposing the password of the certificate
Last updated: 2024-08-20

Open specific Version of Codesys Control Win V3 x64 CODESYS Forge talk (Thread)
Open specific Version of Codesys Control Win V3 x64
Last updated: 2024-08-22

<< < 1 .. 43 44 45 46 47 .. 149 > >> (Page 45 of 149)

Showing results of 3701

Sort by relevance or date