StructuredTextNoob
Member
Hi,
For strictly development purposes I would like to save the memory address of a variable as a string (e.g. "16#FFFFFFFF"). Now, specifically it is the address of an interface that I want to get the address of, and I have tried the following:
But neither lets me compile, due to the error "cannot convert type 'POINTER TO I_StatusInterface' to type 'STRING' / 'DWORD''
Using TwinCAT, if that matters.
For strictly development purposes I would like to save the memory address of a variable as a string (e.g. "16#FFFFFFFF"). Now, specifically it is the address of an interface that I want to get the address of, and I have tried the following:
Code:
MemoryString := ADR(THIS^.StatusInterface);
Code:
MemoryString := DWORD_TO_STRING(ADR(THIS^.StatusInterface));
But neither lets me compile, due to the error "cannot convert type 'POINTER TO I_StatusInterface' to type 'STRING' / 'DWORD''
Using TwinCAT, if that matters.
Last edited: