__ISVALIDREF
This operator is not specified by the IEC 61131-3 standard.
It allows you to check whether a reference points to a valid value.
For how to use and an example, see the description of the reference data type.