For a control activity All_CTRL, the following two functions will be generated:
The code generated for these functions will be as follows:
StateInfo_A11_CTRLcnt1 nextState_A11_CTRLcnt1 = 0;
if (currentState_A11_CTRLcnt1 == 0) {
nextState_A11_CTRLcnt1 = FS_A11_CTRLst2;
… The rest of the Statechart logic
if (nextState_A11_CTRLcnt1 != 0) {
if (currentState_A11_CTRLcnt1 !=
cgGlobalFlags |= BITSUPERSTEP_TASK1;