Script called by Reaction Matrix not executing properly

Script called by Reaction Matrix not executing properly

Hi all, I have a script consisting of multiple functions which is called by a reaction matrix. This script, for writing recipes to my Beckhoff PLC does not execute correctly. More precisely:
  • It looks like some of the functions in the script are 'skipped' over;
  • There are no errors in the diagnostic viewer;
  • There is no clear pattern in why some functions don't execute (properly);
  • I am 100% sure the script is called properly by the Reaction Matrix trigger;
  • I am also 100% sure the functions work properly, I have tested this by assigning them to other buttons.
Repeating a function for the 2nd or 3rd time in the script sometimes works... Does anyone know what my problems might be? Thanks in advance.

This is a migrated post! Originally posted on 29.04.2021 by user OzKa. Please be aware that information can be outdated.