POINTER_COMPARED¶
Severity: warn.
PLCopen: E3 — some comparator instructions shall not be used for pointers.
A relational comparison <, >, <=, or >= is applied to a POINTER-typed operand. PLCopen forbids relational pointer comparisons because the runtime's address ordering is not standardised — the same code can return different results on different vendor runtimes. Equality (= / <>) comparisons of pointers are still allowed.
Settings. No check-specific config. Operands are tracked as POINTER-typed via the symbol table.
Trigger.
The bot posts.
Fix. Use = / <> if you need to check pointer identity, or compare the values they point at (pA^ vs pB^).