Posts by FLrobotics

    Hi,

    i try to run a TP program with my karel code. Therefore I use the procedure RUN_TASK and it works from time to time.

    Code
    RUN_TASK(tmp_str,0,FALSE,TRUE,1,status)

    So it's theoratically possible to move the robot by running a task.

    But often it doesn't work. Then I got a Run_TASK Status like: 3007 or 6003 and I don't really know how to fix it

    I use a LR Mate 200iD/7L with a R-30iB Mate cabinet Controller btw.


    I also tried to catch the task state with the function GET_TSK_INFO

    Code
    GET_TSK_INFO(tmp_str,0, TSK_STATUS,value_int, value_str, status)

    If anything is alright, I got the value_int = 0, but if not i got value_int = 2, what means PG_ABORTED


    That's why I wanna know how to restart an aborted task? When i CONT_TASK it fails cause the task is aborted not paused.

    Does anybody knows how i can do this?

    And does anybody got an error code manual from Fanuc, where i can check all the status values, which i get in so much Karel procedures?
    I know this side: http://linuxsand.info/fanuc/

    But therefore i still need to find out the first letters..


    Thanks a lot to any help!

    Hi dear robot-forum community!


    I have again some problems with the lovely KAREL language. I have a LR Mate 200iD/7L with a R-30iB Mate cabinet Controller and I build a socket communication between my PC and the robot. So i can set a position register with the value i send from the PC. Before moving to this position I would like to check if this position is even reachable. Therefore I try to use the built-in CHECK_EPOS procedure. In the Karel manual is the following syntax for this procedure:


    Syntax :CHECK_EPOS (eposn, uframe, utool, status <, group_no>)

    Input/Output Parameters :

    [in] eposn :XYZWPREXT

    [in] uframe :POSITION

    [in] utool :POSITION

    [out] status :INTEGER

    [in] group_no:INTEGER

    %ENVIRONMENT Group :PBCORE

    Details

    :•eposnis the XYZWPREXT position to be checked.

    •uframespecifies the uframe position to use witheposn.

    •utoolspecifies the utool position to use witheposn.

    •statusexplains the status of the check. If the position is reachable, the status will be 0.

    •group_no is optional, but if specified will be the group number foreposn. If not specified thedefault group of the program is used.


    My problem is that i don't get the values for the parameters uframe and utool. Is there a way to set a user defined variable in the data type position to the Tool Number 1 (e.g.) and the frame to the world frame/ user frame whatever?


    I already tried to set a Position variable for the uframe like this:

    WORLD:POSITION

    WORLD.location.x=0

    WORLD.location.y=0

    WORLD.location.z=0


    but then i can't set the Orientation or even set the tool. Does anybody knows a way to just set my variable to the tool or frame with the number (1,2,3,4,....)??
    Thanks a lot for any help!


    From your program list, select your program and hit "detail" (F2). If F2 is "create," hit the next button and it will be detail. Set the group mask to be all asterisks.

    Thank you! That worked


    But it only works, if there is no motion in the program. And this program needs the permission to move the robot by setting the Group mask to a number (1-..)?? ???


    %NOLOCKGROUP ist at the top of the KAREL code. Do i need other procedures do run a task in a motion group?

    Hi,


    i am trying to run a TP program with the built-in procedure RUN_TASK (Karel). I can call a TP Program with the CALL_PROG procedure but i want to have the possibility to abort the program by starting (RUN_TASK with higher priority) a Aborting Program. So i want to run it simultaneously in a task.

    I always get the error: INTP-105 Run request failed. How can i fix it? Do I have to play around with the motion groups? I am not so much into the motion group topic..

    I have btw a : LR Mate 200iD/7L with a R-30iB Mate cabinet Controller


    I tried different variations in my parameters (RUN_TASK('TESTJOB',0,FALSE,TRUE,1,status) etc.)

    and i tried to Lock and Unlock the motion group with the built in procedure LOCK_GROUP and UNLOCK_GROUP(1,status)

    nothing worked


    Does anybody has an idea what i am doing wrong?



    Code
    RUN_TASK('TESTJOB',0,FALSE,FALSE,1,status)

    Hi,

    i am trying to build a socket Messaging between a LR Mate 200iD/7L with a R-30iB Mate cabinet Controller and the Windows 10 PC. Therefore i try to build a Socket Messaging with a Karel Program.


    I created a new kl.file in roboguide and compilated it to a pc.file. Then i wanted to load it onto the robot (right click - load) but nothing happens.


    The Karel Option is activated in Roboguide and the variable $KAREL_ENB is set on 1. I can see other PC files but can't load my own.

    When i start the KCL command window there comes the following error:

    KCL is not available on the active robot controller. Please confirm that a PORT is assigned to KCL/CRT.


    What am i doing wrong?

    I am grateful for any help

Advertising from our partners