it changes also the movements , it would collide because of that ..
regarding flags they are in sps:
$CYCFLAG[5] = SignalToStopRob
$cycflag[17]= Signal2LoadMagazine
both are signals from PLC (but it bahaves the same way if I use it as veriables) . PLC don't send the signal and robot stops, then PLS resends the signal, starts the robot and I only check it for sure if the signal is really on .