beautypg.com

Iec extending operators, Delete, Iec extending operators 9 – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 1081: L-force | plc designer

background image

L-force | PLC Designer

Programming Reference

DMS 4.1 EN 03/2011 TD29

1079

16.3.11

IEC extending Operators
Additionally to the IEC operators »PLC Designer« supports following operators:
• ADR
• BITADR
• INDEXOF
• SIZEOF
• ANDN
• ORN
• XORN
• __DELETE
• __ISVALIDREF
• __NEW
• __QUERYINTERFACE
• __QUERYPOINTER

__DELETE
This operator is not prescribed by the IEC 61131-3 standard.

Note: For compatibility reasons the compiler version must be >= 3.3.2.0.

The operator __DELETE deallocates the memory of objects who has allocated memory
with the operator __NEW before. __DELETE has no return value and its operand will be
set to 0 after the operation.
For allocating use __NEW.
Syntax:
__DELETE( )
If pointer is a pointer to a function block the dedicated method FB_Exit will be called
before the pointer is set to NULL.