Post by timvh on Help with DynamicTextGetTextW
CODESYS Forge
talk
(Post)
First of all you need to enable "Use unicodestrings" in the Visualization Manager. This function returns a pointer to a WSTRING (not STRING). To get this wstring value, do something like this: VAR myWstringVariable : WSTRING(255); END_VAR myWstringVariable := myResult^; // this is dereferencing the pointer to the WSTRING.
Last updated: 2024-09-03
Void Pointer or Template Equivalent in CoDeSys
CODESYS Forge
talk
(Thread)
Void Pointer or Template Equivalent in CoDeSys
Last updated: 2017-03-31
Pointer adress from another PRG not possible?
CODESYS Forge
talk
(Thread)
Pointer adress from another PRG not possible?
Last updated: 2020-08-11
SoftMotion, accessing PDO input data via object ref/pointer
CODESYS Forge
talk
(Thread)
SoftMotion, accessing PDO input data via object ref/pointer
Last updated: 2015-07-14
dereferencing a pointer in a function block
CODESYS Forge
talk
(Thread)
dereferencing a pointer in a function block
Last updated: 2018-03-08
Webvisualisation of a table using pointer
CODESYS Forge
talk
(Thread)
Webvisualisation of a table using pointer
Last updated: 2015-08-06
Declare and dereference pointer of unknown type
CODESYS Forge
talk
(Thread)
Declare and dereference pointer of unknown type
Last updated: 2016-10-12
wie kann ich ein Pointer von Visu in Codesys setzen
CODESYS Forge
talk
(Thread)
wie kann ich ein Pointer von Visu in Codesys setzen
Last updated: 2007-11-26
Pointer and reference behavour during online change
CODESYS Forge
talk
(Thread)
Pointer and reference behavour during online change
Last updated: 2017-08-16
Pointer auf FBs bei Wago 750-841 -> Fehler
CODESYS Forge
talk
(Thread)
Pointer auf FBs bei Wago 750-841 -> Fehler
Last updated: 2007-11-19
Lookup Symbol Name from pointer address?
CODESYS Forge
talk
(Thread)
Lookup Symbol Name from pointer address?
Last updated: 2012-10-04
fun-pointer mit SysIECGetFctPointer(INDEXOF(fun)) wie aufruf
CODESYS Forge
talk
(Thread)
fun-pointer mit SysIECGetFctPointer(INDEXOF(fun)) wie aufruf
Last updated: 2007-11-22
Post by totorovic on Pointer to Softmotion axis
CODESYS Forge
talk
(Post)
I get the same warning message with initialized variable. Codesys 3.5.19.20
Last updated: 2023-11-09
Post by ph0010421 on Help with __SYSTEM.VAR_INFO
CODESYS Forge
talk
(Post)
thanks...I changed to I POINTER which is perfect.
Last updated: 2025-01-26
[Bug report] Issue with Importing XML Files Containing "POINTER TO" Variables in Codesys Platform Plugins Versions 2.7 and 2.8
CODESYS Forge
talk
(Thread)
[Bug report] Issue with Importing XML Files Containing "POINTER TO" Variables in Codesys Platform Plugins Versions 2.7 and 2.8
Last updated: 2025-03-26
Post by pistola on Pause Tab Order
CODESYS Forge
talk
(Post)
I'm programming an HMI, and on a settings page I have external buttons allow the operator to tab between various elements to select which one they want to adjust. I then use "Input Configuration" > "OnMouseClick" to select which variable to adjust. The problem is, when adjusting the variable the pointer will move to the other elements within the tab order. Is there a way to pause or prevent the pointer to move to the other elements when a variable is TRUE?
Last updated: 2025-03-17
Post by dtamm on How to read string from CharBufferPtr?
CODESYS Forge
talk
(Post)
Solved it! The simple answer was to declare a variable as POINTER TO STRING and assign the GetMessage result to that variable. Then, the ^ operator can be used to extract the message as string.
Last updated: 2024-02-21
Post by remcoborghuis on C0032 Error to type Pointer to IoConfigParameter
CODESYS Forge
talk
(Post)
Hi All, I'm using codesys on a raspberry PI. I use V3.5 SP18 Patch 2 development system and codesys for raspberry pi 4.8.0.0. Sometimes when I build the project I get error messages C0007: Expression expected instead of ',' and C0032: Cannot convert type 'Unknow type: '!!!'ERROR'!!!" to type 'POINTER TO IoConfigParameter'. I can't click on the message to bring me to the fault. After I do a "Clean all" the build finishes successful. Anyone who can help me with this problem? Thanks! Remco Borghuis
Last updated: 2024-03-25
Post by tk096 on Pointer to Softmotion axis
CODESYS Forge
talk
(Post)
Hi, you can take a look at https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_global_init_slot.html Maybe it helps.
Last updated: 2023-11-23
Post by davidbo on VisuElems.cmpDynamictext.DynamicTextGetTextW returns pointer to empty string
CODESYS Forge
talk
(Post)
I know it is old and I am using 3.5 18, but I cannot extract a txt string as seen:
Last updated: 2025-02-07
Post by tvm on Cannot pass array of constant size to a function as a reference
CODESYS Forge
talk
(Post)
It will be a reference, because it's a VAR_IN_OUT. it's a little weird debugging the array online. It just shows as a POINTER TO INT, and you can't actually see the array from the function side. But you can still work with it as a normal array, not a pointer.
Last updated: 2024-01-09
Post by abrarsk on SysCom Library Usage
CODESYS Forge
talk
(Post)
Update: I was able to successfully use the SysCom.lib. I had to install SysTypes2Interface library as well and wrote following code. Declaration hCom : RTS_IEC_HANDLE; pResult : POINTER TO RTS_IEC_RESULT; Implementation hCom := SysComOpen(ComSettings.sPort, ADR(pResult));
Last updated: 2024-08-10
Post by kleeswi on SysFileOpen does not work after update to V3.5 SP19 Patch 5
CODESYS Forge
talk
(Post)
I use the function SysFile.SysFileOpen(sFileNamePara, SysFile.ACCESS_MODE.AM_WRITE, pErrorFileOpen); to open and write a file. Since the update from Codesys V3.5 SP17 to V3.5 SP19 Patch 5 it does not work anymore. I first had SysFile.SysFileOpen(sFileNamePara, SysFile.ACCESS_MODE.AM_APPEND_PLUS, pErrorFileOpen); in both versions. hFile_Test is a pointer to byte. It gives an exceptional error when dereferencing the hFile_Test pointer. Edit: I use Codesys on a Raspberry pi
Last updated: 2024-02-19
Post by trusty-squire on Help with __SYSTEM.VAR_INFO
CODESYS Forge
talk
(Post)
Not knowing exactly what you want to accomplish, you can try to use VAR_INPUT MyVar: POINTER TO BOOL; END_VAR MyVar contains the address of your referenced variable, and MyVar^ dereferences it allowing you to access the value. If this doesn't meet your needs, could you add more detail on what you are trying to accomplish?
Last updated: 2025-01-26
Post by csu-chris on No file found
CODESYS Forge
talk
(Post)
I'm having trouble getting started with the SysFile library. I tried copying and running the code found here: https://forge.codesys.com/forge/talk/Engineering/thread/f17c3d0e64/ Every time I try to run the file handle pointer returns: 16#FFFFFFFFFFFFFFFF <dereference of="" invalid="" pointer=""></dereference> I can see the file when I look in the Device -> Files window Any idea what I'm doing wrong?
Last updated: 2024-10-15
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
.