Hello people
I'm trying to cancel one program and open another while the robot is running.I've tried with CWRITE as I saw some forum posts but I couldn't solve this problem.
Here is my code on SPS:
Memory and Memory_main are boolean variables.
If $IN[3] == true then
memory = TRUE
endif
IF memory THEN
CWRITE($CMD,STAT,MODE,"CANCEL 1")
memory=FALSE
memory_main = TRUE
ENDIF
IF memory_main THEN
CWRITE($CMD,STAT,MODE,"RUN /R1/TESTE( )")
memory_main = FALSE
ENDIF
Thanks for any help