Search talk: Pointer to

 
<< < 1 2 3 4 5 .. 208 > >> (Page 3 of 208)

Post by gatto on Read codesys version in the codesys application CODESYS Forge talk (Post)
hi, i used another way declaration: pApp : POINTER TO APPLICATION; pAppInfo : POINTER TO APPLICATION_INFO; ProjectName : STRING (24) ; CodesysVersion : STRING (15) ; code: //library : // CmpApp // IoDrvEthernet // // Get Pointer to current application pApp := CmpApp.AppGetCurrent( pResult:= 0 ); // Get Pointer to Application information pAppInfo := CmpApp.AppGetApplicationInfo(pApp:= pApp, pResult:= 0 ); ProjectName := pAppInfo^.pstProjectName^ ; //convert codesys version to string CodesysVersion := IoDrvEthernet.UDINT_TO_IPSTRING ( udiIPAddress := pApp^.udiPSVersion ) ; so i think you need to convert your dwVersion in a UDINT and after convert UDINT_TO_IPSTRING
Last updated: 2025-01-17

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

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

SoftMotion, accessing PDO input data via object ref/pointer CODESYS Forge talk (Thread)
SoftMotion, accessing PDO input data via object ref/pointer
Last updated: 5 days ago

Post by davemansell on explicit cast ENUM to UINT and vice versa CODESYS Forge talk (Post)
This is from sometime ago but below might help someone else; this could be done via POINTERS. Make sure you protect for NULL pointers etc if you take this approach. // DECLARATION myEnumValue : enumMyEnum; u8 : USINT; pmyEnumValue : POINTER TO enumMyEnum; pu8 : POINTER TO USINT; // CODE pu8 := ADR(u8); pmyEnumValue := pu8; myEnumValue := pmyEnumValue^; // dereference the pointer
Last updated: 2025-08-21

Post by davemansell on explicit cast ENUM to UINT and vice versa CODESYS Forge talk (Post)
This is from sometime ago but below might help you could do this via POINTERS. Make sure you protect for NULL pointers etc if you take this approach. // DECLARATION myEnumValue : enumMyEnum; u8 : USINT; pmyEnumValue : POINTER TO enumMyEnum; pu8 : POINTER TO USINT; // CODE pmyEnumValue := pu8; myEnumValue := pmyEnumValue^; // dereference the pointer
Last updated: 2025-08-21

Post by kporter on SoftMotion, accessing PDO input data via object ref/pointer CODESYS Forge talk (Post)
Now that SP21 is out, what's the answer? I want to get a pointer to the TxPDO and RxPDO structs. I can generate a STRUCT declaration from the ESI file with a bit of Python. I just need to get the pointer from the ETC_Slave.
Last updated: 5 days ago

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

<< < 1 2 3 4 5 .. 208 > >> (Page 3 of 208)

Showing results of 5191

Sort by relevance or date