F_BA_DiffPtr

The function F_BA_DiffPtr of return type UDINT specifies the difference between two memory addresses as an absolute value: internally the smaller address is subtracted from the larger one.
Syntax
FUNCTION F_BA_DiffPtr : UDINT
VAR_INPUT
pAddr1 : PVOID;
pAddr2 : PVOID;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
pAddr1 | PVOID | Address 1 |
pAddr2 | PVOID | Address 2 |