Hello guys, I need help and a little bit of your knowledge, can you help me?
Well, Is there any other software that compiles Rapid code or just robotstudio?
Software to compile a rapid code.
- kennedyrsb
- Thread is Unresolved
-
-
It is not compiled at all, it is merely ascii text, so you can use any text editor.
-
Hi. Thank you for your answer...
I will explain my problem better. I'm trying to pass a code to the robot but it doesn't run.
what software can i use to find out where this code error is?
__________________________________________________________________________________________________
%%%
VERSION:1
LANGUAGE:ENGLISH
%%%MODULE MESA(SYSMODULE)
PERS bool bSTART:=FALSE;
PERS bool Troca_fim:=TRUE;
PERS bool Set_Start:=FALSE;
PERS bool Aux_Start:=FALSE;
PERS bool Memoria_Mesa:=FALSE;
PERS bool Giro_Mesa:=FALSE;PROC main()
IF I_bSTART=1 AND Troca_fim=FALSE THEN
Giro_Mesa:=TRUE;
IF I_bSTART=1 AND Troca_fim=TRUE THEN
Memoria_Mesa:=TRUE;
IF Memoria_Mesa=TRUE AND Troca_fim=FALSE THEN
Aux_Start:=TRUE;b:
IF Memoria_Mesa=TRUE THEN
PulseDO \High,\PLength:=1.0, O_LED_START;
IF Aux_Start=TRUE THEN
GOTO c;
ELSE
GOTO b;
ENDIF
ENDIF
c:
IF Aux_Start=TRUE THEN
GOTO a;
ENDIF
a:
IF Giro_Mesa=TRUE THEN
bSTART:=FALSE;
Set O_LED_STOP;
Set O_LED_START;
Reset O_CIL_trava;
WaitDI I_CIL_TRAVAav,0;
WaitDI I_CIL_TRAVArec,1;
Reset O_CIL_avanc;
WaitDI I_CIL_AVANCOav,0;
WaitDI I_CIL_GIROav,1;
Set O_CIL_avanc;
WaitDI I_CIL_AVANCOav,1;
Set O_CIL_trava;
WaitDI I_CIL_GIROrec,1;
WaitDI I_CIL_GIROav,0;
WaitDI I_CIL_TRAVAav,1;
Reset O_CIL_avanc;
Troca_fim:=TRUE;
bSTART:=TRUE;
Memoria_Mesa:=FALSE;
Aux_Start:=FALSE;
Giro_Mesa:=FALSE;
Troca_fim:=TRUE;
Reset O_LED_STOP;
ENDIF
ENDIF
ENDIF
ENDIF
ENDPROC
ENDMODULE -
IF THEN requires an ENDIF before you start another IF THEN
-
The text based editor in RobotStudio will alert you of syntactical errors, and which line they appear
-
what's wrong with that? you load the program / module and it gives you errors or you can't even load it?
the initial declaration suggests an S4 controller. what model of controller do you have?