Functions used in the program
"Checkbounds" function
The "Checkbounds" function is used in the program by way of example. If an overrange occurs when accessing one of the arrays used, the lowest or highest position of the array is then automatically accessed. In order to draw the user’s attention to this overrange event, the "ADSLOGDINT" function is additionally used to output a message to the event log. If the range of one of the arrays used is exceeded, the function writes an entry into the event log of the system (Fig. TwinCAT event log after underrange event).

"CheckDivReal" function
The "CheckDivReal" function is used in the program by way of example. This function automatically checks the entire program for impermissible divisions by zero. If this is the case, a message is written in the event log of the TwinCAT system manager (fig. TwinCAT event log in case of division by 0).
