Hello everyone, im working on a KRC5 KSS8.7, we are trying to aknowledge what kind of message we get in case of having rather a colission or an Emergency Stop. For this we were thinking on using something to read the last message we get from the Controller.
DECL CHAR BUFFER[40]
DECL CHAR Substring[40]
SUBSTRING[]="COLLISION"
IF $STOPMESS THEN
; READING THE LAST MESSEAGE FROM THE SYSTEMcolisión
CWRITE($CMD,STAT,MODE,"MESSAGES GET LAST",Buffer[])
IF (Buffer[])==(Substring[]) THEN ;Compare with our string with the word we searching
SIGNAL_COLLISION = TRUE
ENDIF
ENDIF
I started with this idea, but it doesnt works, so i was wondering if anyone already did something like this or could give me a hint.
Thanks to everyone!!!!!