DWORD auf Modbusadresse(n) zuweisen
CODESYS Forge
talk
(Thread)
DWORD auf Modbusadresse(n) zuweisen
Last updated: 2008-08-01
Baustein zur Ausgabe eines DWORD
CODESYS Forge
talk
(Thread)
Baustein zur Ausgabe eines DWORD
Last updated: 2014-03-07
SysTime64, shifting between DWORD
CODESYS Forge
talk
(Thread)
SysTime64, shifting between DWORD
Last updated: 2009-03-19
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
CODESYS Forge
talk
(Thread)
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
Last updated: 2021-04-26
how to execute a pointer to a function or a function block?
CODESYS Forge
talk
(Thread)
how to execute a pointer to a function or a function block?
Last updated: 2017-04-04
Funktion - Pointer auf variables Array
CODESYS Forge
talk
(Thread)
Funktion - Pointer auf variables Array
Last updated: 2017-09-26
SPS absturz nach Pointer dereferenzierung
CODESYS Forge
talk
(Thread)
SPS absturz nach Pointer dereferenzierung
Last updated: 2023-06-30
Next problem with Pointer
CODESYS Forge
talk
(Thread)
Next problem with Pointer
Last updated: 2008-06-06
Communication between Libraries with pointer
CODESYS Forge
talk
(Thread)
Communication between Libraries with pointer
Last updated: 2023-06-30
Pointer mit Variable als Offset
CODESYS Forge
talk
(Thread)
Pointer mit Variable als Offset
Last updated: 2010-08-27
Pointer mit System-Ereignis "Callback_Start" initi
CODESYS Forge
talk
(Thread)
Pointer mit System-Ereignis "Callback_Start" initi
Last updated: 2007-11-15
<identifier>: POINTER TO <data type | function block | program | method | function>;
CODESYS Forge
talk
(Thread)
<identifier>: POINTER TO <data type="" |="" function="" block="" program="" method="">;</data></identifier>
Last updated: 2022-03-23
Wie kann ich einen Pointer to ULINT in eine variable Struktur verwandeln?
CODESYS Forge
talk
(Thread)
Wie kann ich einen Pointer to ULINT in eine variable Struktur verwandeln?
Last updated: 2021-11-23
Post by simotion on Pointer to Softmotion axis
CODESYS Forge
talk
(Post)
No ideas?
Last updated: 2023-10-27
Fehler 4010: "Kann REAL nicht in DWORD konvertieren" ??????
CODESYS Forge
talk
(Thread)
Fehler 4010: "Kann REAL nicht in DWORD konvertieren" ??????
Last updated: 2012-03-01
Is DWORD considered signed or unsigned?
CODESYS Forge
talk
(Thread)
Is DWORD considered signed or unsigned?
Last updated: 2017-07-26
Post by struccc on Bibliothek: floatingpointutils
CODESYS Forge
talk
(Post)
The issue s the byte order typically in this case. Can be especially problematic with floating point numbers - even more tricky if transferred with a word based protocol. It is a peasant way to try out the alternatives, dword order can be a-b-c-d, b-a-d-c, c-d-a-b, d-c-b-a where a is the most significant, d is the least significant byte. So all you need is to swap the bytes in your dword, until you get the expected result. If you don't want to mess writing code for this, I'd recommend CAA_Memory library for that: MEM.ReverseBYTEsInDWORD and MEM.ReverseWORDsInDWORD functions would definitively do the trick. Otherwise, can do like this: VAR dwIn : DWORD := 16#11223344; dwOut : DWORD; rOut : REAL; pIN : POINTER TO BYTE; pOUT : POINTER TO BYTE; END_VAR pIN := ADR(dwIn); //pOUt := ADR(dwOut); pOUt := ADR(rOut); pOut[0] := pIN[3]; pOut[1] := pIN[2]; pOut[2] := pIN[1]; pOut[3] := pIN[0]; Ugly, but does the job...
Last updated: 2024-11-19
Post by trusty-squire on CNC - How to manipulate SMC_GeoInfo objects
CODESYS Forge
talk
(Post)
Sometimes you just need to pose a question on a forum and re-read it to get clarity. pGeoInfo := SMC_GetObj(poq:=ADR(fbCncInterpreter.poqDataOut), n:=1); This won't work, I'm providing a pointer to a pointer, as poqDataOut is already a pointer! I just need to remove the ADR() and it works. pGeoInfo := SMC_GetObj(poq:=fbCncInterpreter.poqDataOut, n:=1);
Last updated: 2024-07-26
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
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
.