RobotStudio event

Identifier not found:Calcular_Posiciones

Hello. I'm new to RAPID programming and I have a problem.
I have written the following code:

MODULE MainModule

VAR num fila := 2; 
VAR num columna := 2; 
VAR num Matriz{fila,columna} := [[1,1],[1,1]];
VAR num incX := 10;

PROC MAIN()

    Calcular_Posiciones (Matriz, incX);  <-------- Text error:Missing argument inX

ENDPROC

PROC Calcular_Posiciones( INOUT num Mat{*,*}, INOUT num inX)
    
        FOR i FROM 1 TO Dim(Mat,1) DO
            FOR j FROM 1 TO Dim(Mat,2) DO
                !código          
            ENDFOR
        ENDFOR
        
ENDPROC

ENDMODULE

Can anyone help me?

Comments

  • emtorva78 said:
    Hello. I'm new to RAPID programming and I have a problem.
    I have written the following code:

    MODULE MainModule

    VAR num fila := 2; 
    VAR num columna := 2; 
    VAR num Matriz{fila,columna} := [[1,1],[1,1]];
    VAR num incX := 10;

    PROC MAIN()

        Calcular_Posiciones (Matriz, incX);  <-------- Text error:Missing argument inX

    ENDPROC

    PROC Calcular_Posiciones( INOUT num Mat{*,*}, INOUT num inX)
        
            FOR i FROM 1 TO Dim(Mat,1) DO
                FOR j FROM 1 TO Dim(Mat,2) DO
                    !código          
                ENDFOR
            ENDFOR
            
    ENDPROC

    ENDMODULE

    Can anyone help me?
    remove the parentheses
    Calcular_Posiciones Matriz, incX; 
    Systemintegrator - Web / C# / Rapid / Robotstudio

    If I helped, please press Vote Up  :smile:
  • Thank you.