Hi,
I´ve been fiddling around with $CYCFLAG´s lately and I found it very odd that I have a hard time getting them reset.
Originally I was hoping to set a $CYCFLAG from a *.src and later on reset it in an extended submit with $CYCFLAG[X]=FALSE as I understand is the way to reset it.
From the KSS 8.5 system variables documentation I can see that it reads:
"Cyclical evaluation of cyclical flags can be activated by assigning a Boolean
expression in a robot program. Assignment of a Boolean expression
in a submit program does not result in cyclical evaluation."
There is nothing stated about resetting a $CYCFLAG in a submit program so I figured I´d test it.
This did not turn work as intended and I dumbed down the code and tested some more. -> did not work
And figured for sure atleast they can be reset through the robot interpreter. -> did not work
The program below does not reset the $CYCFLAG, and yes I tested that it is not only the user interface that is slow. It really does not get reset or cleared.
KSS is 8.7.3 and this is tested on officelite running on a hyper-v machine.
Any ideas? Have I misunderstood this completely? or can anyone else reproduce this?
The code:
DEF ErrorTest2 ( )
DECL INT i1
FOR i1=1 TO 10
$CYCFLAG[2] = $OUT[2]
MsgNotify("$CYCFLAG[2] should have been set")
WAIT SEC 2
$CYCFLAG[2] = FALSE
MsgNotify("$CYCFLAG[2] should have been reset")
WAIT SEC 2
ENDFOR
END
Display More
** update: they do eventually get reset but it may take minutes?!?