Posts by jupp

    Not sure if you can do this, but I'm sure someone here will know.


    Here's a quick and dirty way to simulate a signal using Flags. In this example Flag [1] would be your imaginary digital input signal and would turn on after you open your grippers to place the part. You can then call this flag in other jobs. An example being that you turn it off if you have a pick from table program as well. Again - very quick and dirty if you only need one or a couple signals.

    1:

    2: !PLACE PART ON TABLE ;

    3:J P[1] 100% FINE ;

    4: !OPEN GRIPPERS ;

    5: RO[7:OPEN GRIPPERS]=ON ;

    6:

    7: !MOCK PART PRESENT SIGNAL ;

    8: F[1:PART PRESENT SIGNAL]=(ON) ;

    9:

    10: !RETREAT FROM TABLE ;

    11:J P[2] 100% FINE ;

    Hi All.


    Running into trouble with one of FANUC's KAREL example programs. The error I am encountering pertains specifically to the handling of data types within the program. It occurs when the interpreter tries to assign a value to the identifier TMP_XYZ. Here are my declared variables and lines of code where I'm getting the error:


    I am then met with the following errors when trying to compile:

    These lines of code are directly from Example B.1 in the KAREL reference manual. Considering this, it seems likely that the issue might involve either an incorrect data type declaration or a mismatch between the data types expected by the operation and those actually provided. I've tried declaring temp_xyz as XYZWPREXT and that unfortunately did not resolve the issue.


    Any thoughts appreciated! Thanks.

Advertising from our partners