Hello,
I would like to check for the validity of a pointer in CodeSys but I can't find how to do that anywhere...
How could I do that ? I would like to be able to do something like that :
IFmyPointer=NULLTHEN
...
I found this (https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_obj_pou_checkpointer/) in the documentation but I don't understand how I'm supposed to use that.
Hoping somebody can help me, have a good day !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I would like to check for the validity of a pointer in CodeSys but I can't find how to do that anywhere...
How could I do that ? I would like to be able to do something like that :
I found this (https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_obj_pou_checkpointer/) in the documentation but I don't understand how I'm supposed to use that.
Hoping somebody can help me, have a good day !
IF pThePointer <> 0 THEN
// Pointer contains an adres
xValid := TRUE;
ELSE
// Pointer does not contain an adres
xValid := FALSE;
END_IF;
Thank you very much !