Post by simotion on Pointer to Softmotion axis
CODESYS Forge
talk
(Post)
In my projet I use Softmotion. There are several Softmotion axis (type SM_Drive_Virtual). In the Global Variable List I have an array of pointers to the adress of the Axis. Axis : ARRAY[1..iMaxCntAxes] OF POINTER TO AXIS_REF_SM3 := ADR(AX01_Axis), // [1 ADR(AX02_Axis), // [2] This works, but when compiling I get the message : . [WARNING] E3D: GVL Device: PLC Logic: Application: C0564: A reference to uninitialized variable AX01_Axis is used for initialization of Axis. Accessing the uninitialized variable may result in unexpected behavior. [WARNING] E3D: GVL Device: PLC Logic: Application: C0564: A reference to uninitialized variable AX02_Axis is used for initialization of Axis. Accessing the uninitialized variable may result in unexpected behavior. Is there a way when initializing to force the hardware (softmotion axis) to first initialize and then the Global Variable List?
Last updated: 2023-10-25
Post by kuuki on Losing focus of variable
CODESYS Forge
talk
(Post)
Hi. Does anyone know how to fix a problem with losing focus of a variable in FBD editor. Sometimes when trying to edit variable name, array index, etc. in network, editor randomly exits "text edit mode" and variable is replaced by text you were typing.
Last updated: 2024-03-26
how to extract the name of an FB to a variable
CODESYS Forge
talk
(Thread)
how to extract the name of an FB to a variable
Last updated: 2024-10-01
Dynamic variable declaration in a Function Block after the call of FB_Init
CODESYS Forge
talk
(Thread)
Dynamic variable declaration in a Function Block after the call of FB_Init
Last updated: 2016-12-30
WAGO PLC GOES IN ERROR WHILE BOOTING BECAUSE OF PERSISTENT VARIABLE
CODESYS Forge
talk
(Thread)
WAGO PLC GOES IN ERROR WHILE BOOTING BECAUSE OF PERSISTENT VARIABLE
Last updated: 2019-11-22
How to release the memory of a variable in Codesys 2.3
CODESYS Forge
talk
(Thread)
How to release the memory of a variable in Codesys 2.3
Last updated: 2021-06-06
How to turn on a large number of outputs with 1 variable
CODESYS Forge
talk
(Thread)
How to turn on a large number of outputs with 1 variable
Last updated: 2015-09-07
Monitor millisecond timestamps of the codesys variable in Zenon Energy Edition
CODESYS Forge
talk
(Thread)
Monitor millisecond timestamps of the codesys variable in Zenon Energy Edition
Last updated: 2023-05-31
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
CODESYS Forge
talk
(Thread)
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
Last updated: 2019-09-10
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
CODESYS Forge
talk
(Thread)
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
Last updated: 2019-09-06
Post by egau on Importing a library overrides parameters of a referenced library
CODESYS Forge
talk
(Post)
Hi, In my CODESYS project (ABC.project), I’m using the MQTT library. I’ve also created a separate library (DEF.library) which itself references the MQTT library. In ABC.project, I’ve customized some MQTT parameters—for example, setting g_udiMaxPublishersAndSubscribers to 100 instead of the default value of 20. However, when I import DEF.library into ABC.project, the MQTT parameters get reset to their default values. I assume this happens because DEF.library still uses the default MQTT configuration, which then overrides my project settings. A straightforward workaround would be to manually align the parameter values in DEF.library, but that doesn’t feel like the right approach. Is there a better or recommended way to handle this situation? I'm using SP18 Patch3. Any insights would be greatly appreciated. Thanks in advance!
Last updated: 2026-05-04
Post by wbj0t on Global variable access by Programms and Modbus Devices (attach device to bus)
CODESYS Forge
talk
(Post)
Hi everyone. I use Raspberry Pi 4, one core codesys SL. I have a question about global variable access via programm when I glued the same variable to MODBUS SERIAL/TCP DEVICE holding register. So, the question: what behavior of this modifying? When I set "Always update variables (in bus cycle)" and set some task as bus for the Device, then in another task I cant change this varible (can, but immediatly the old value setted again). But the same things works with MODBUS SLAVE: again "Always update..." and master attached to some task, then I change variable in another task and all works. I cant set up my variables from retains file at PrepareStart event because of this behavior with MODBUS SERIAL/TCP DEVICE. Thanks, wbj0t.
Last updated: 2024-07-18
zyklischen Setzen toggle-variable
CODESYS Forge
talk
(Thread)
zyklischen Setzen toggle-variable
Last updated: 2008-06-12
LTIME variable on visualisation
CODESYS Forge
talk
(Thread)
LTIME variable on visualisation
Last updated: 2014-02-20
Variable abfragen
CODESYS Forge
talk
(Thread)
Variable abfragen
Last updated: 2010-08-11
Variable Compilerversion
CODESYS Forge
talk
(Thread)
Variable Compilerversion
Last updated: 2017-01-04
Variable assignments
CODESYS Forge
talk
(Thread)
Variable assignments
Last updated: 2024-07-22
%t SystemTime in Variable
CODESYS Forge
talk
(Thread)
%t SystemTime in Variable
Last updated: 2024-08-20
Missing Button State Variable
CODESYS Forge
talk
(Thread)
Missing Button State Variable
Last updated: 2024-10-03
Access Variable Visu Dialog
CODESYS Forge
talk
(Thread)
Access Variable Visu Dialog
Last updated: 2024-11-17
Variable Ein/Aus--schalten
CODESYS Forge
talk
(Thread)
Variable Ein/Aus--schalten
Last updated: 2009-09-17
Counter Variable CV verändern
CODESYS Forge
talk
(Thread)
Counter Variable CV verändern
Last updated: 2011-07-05
CurrentVisu Variable NOT Selectable
CODESYS Forge
talk
(Thread)
CurrentVisu Variable NOT Selectable
Last updated: 2015-10-16
Symbolic IEC variable access
CODESYS Forge
talk
(Thread)
Symbolic IEC variable access
Last updated: 2012-08-01
Variable Variablen
CODESYS Forge
talk
(Thread)
Variable Variablen
Last updated: 2009-02-11
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.