I am interested to log the variables and signals at different point of the program execution to understand and sort the error.
One idea would be to create a functional block with struc/array and to call this function from main block and write this array at different program execution point like a ring buffer.
The problem I have now is, all the elements in the function need to be initialized and KUKA cannot self initialized this file. When the size of ring buffer is >5000 it is really an issue. Does someone have any different idea to make such log of variable.
This log file should hold the signal state, variable state, switch case state and internal position of robot movement etc at different times. Does someone have an innovative or easy approach to solve this issue.