Fanuc Karel Code

  • Greetings of the day everyone ,


    Iam still learning karel ,


    do you guys know whats the karel code for the 12. stop type in Cartesian Position Check in fancu robots


    Thanks


    Austin Paul

  • I think you've got your wires crossed. Karel doesn't really have anything to do with DCS.


    Are you trying to set DCS variables with Karel?


    The twelfth item of a DCS CartesiaN Position Check is the stop type... I am still grasping at how this ties into Karel :thinking_face:


  • You may be able to find a system variable that corresponds to the Stop type as defined in the DCS settings. Unfortunately the documentation of these System variables is poor. But you can try experimenting and see if anything matches with what you need.


    The system variables themselves can be found under Hamburger Menu -> System -> Variables. You will want to look under something like $DCSS or similar.


    If you find the system variable that matches what you are looking for, you can use the following code to retrieve it in Karel:

    entry, status : INTEGER

    val : (will depend on the type - can fx be BOOL or INTEGER)

    GET_VAR(entry, '*SYSTEM*', '$variableName.$subcategoryOfTheVariable', val, status)

    The current value of the variable will be saved in val variable.

Advertising from our partners