Software to compile a rapid code.

  • 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

    Eng. Kennedy Robert Sotana Bertoncelli

    Departamento de Engenharia

    E-mail: kennedy@ghelplus.com.br

    Skype: ao vivo: kennedy_774

  • 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?

Advertising from our partners