Function extension:
- LRange Checks
With the POUs 'CheckLRangeSigned' and 'CheckLRangeUnsigned', the value range checks of a subrange type are extended to the data types ULINT and LINT. The logic in the POUs limits the value of the variables to the range limits similar to the LIMIT operator.
Example declaration of a subrange type:
liVar:LINT (0..1000); - Pointer Checks
The implicit POU for pointer monitoring 'CheckPointer' is also called when accessing 'REFERENCE TO' variables.
Contained in which products?
PLC Designer from V3.14
Application:
Via the context menu command 'Add object >POUs for implicit checks', you can add the POUs for implicit checks to the device tree of the application. These POUs need not be called in the application. The compiler automatically inserts the POUs into the code wherever variables with subrange data types or pointers are accessed in the application.