Calculates the trace of a three-dimensional array

Creates a universal function to calculate the spur of a matrix (sum of diagonal elements) of a three-dimensional array of varying sizes of the data type DINT. Thereby it will also be double checked that the array lies in a permissible memory area (DT or FL) and that its dimensions are the same.

Modified on: 2019-01-26Feedback on this pagePanasonic hotline