Hello ,
KSS V4.1.5
I have defined a counter in .DAT file like this:
DECL INT usercont=0
In .SRC file in every cycle between in an endless loop counter add number one to itself:
usercont=usercont+1
after every step program check this condition:
IF $FLAG[1]==true THEN
usercont=0
ENDIF
Everything works well and whenever I want I can reset the counter, but now I need to move this IF condition to SPS.SUB so i think i must define this counter variable as a global variable. I defined it as it was in .DAT file this time in CONFIG.DAT but when i set the $FLAG[1] to TRUE controller can't recognize this variable to reset it.
Can anybody tell what is the problem?