Trying to figure out a set of Modules I got handed to use. In this case, I have two Modules, in two different Tasks (the main task, and a semi-static background task), that have PERS declarations for variables of the same name.
What's puzzling me is that the declaration in the main task has values set for the values of the variables:
PERS string stCylNum{17}:=["Yes","Yes","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No"];
While the declaration in the background task module does not:
PERS string stCylNum{17};
But, the background module uses IF statements to check the members of the string array for "Yes" and "No." And there is no code in the background task module that is writing any values to the array variable. The PERS in the foreground task appears to be intended to be a sort of config/setup, and the background task looks like it needs to see the values set in the PERS of the main task.
So, is this a trick to let the background task have access to the main task's variables? Or is something else going on here?