Incompatibility Error in Karel Programming: Data Type Issue

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

  • Place your Ad here!
  • Fubini

    Approved the thread.
    • Helpful

    PATH is a data structure. It is described in the karel referenc manual, in the A-Z section under appendix A. You need to use a period to access subcomponants. Should be pth1[node_ind].node_pos.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now

Advertising from our partners