Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 10:37:07 AM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  Fanuc Robot Forum (Moderators: Sven Weyer, Jim Tyrer, Lerak, Napierian)
| | |-+  Karel program - help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Karel program - help  (Read 1193 times)
cosva
Full Member
***
Offline Offline

Posts: 113



« on: July 02, 2009, 03:06:47 PM »

Hi!

I'm new to Karel. I'm writing Karel in Roboguide version 6.40 Rev H, Build Id 6.40.72,86.
The robot which I'm programming is a LRMate200iC, an the controller is R-30iA.
I wrote an simple Karel program in Roboguide:

PROGRAM test
VAR
p1,p2 : XYZWPR
x, y, z, w, p, r,a,b : REAL
config_var : CONFIG
indx,i: INTEGER
STATUS:INTEGER
BEGIN
  $MOTYPE = JOINT
  CNV_STR_CONF('nut', config_var, STATUS)
  p2 = POS(500, 0, 0, -180, 0, 0, config_var)
  $GROUP[1].$UFRAME=p2
  p2 = POS(0, 0, 150, 0, 0, 0, config_var)
  $GROUP[1].$UTOOL=p2
  $SPEED = 200
  x = 0
  y = 0
  z = 150
  w = 0
  p = 0
  r = 0
  a = 300
  b = 600
  CNV_STR_CONF('nut', config_var, STATUS)
  p1 = POS(x-a/2, y+b/2, z, w, p, r, config_var)
  MOVE TO p1
  $MOTYPE = LINEAR
  FOR i=1 TO 4 DO
        $SPEED = 150+i*80
        $TERMTYPE=NODECEL
      p1 = POS(x-a/2, y+b/2, z, w, p, r, config_var)
      MOVE TO p1   
      p2 = POS(x+a/2, y+b/2, z, w, p, r, config_var)
      MOVE TO p2 NOWAIT
      p2 = POS(x+a/2, y-b/2, z, w, p, r, config_var)
      MOVE TO p2
      p2 = POS(x-a/2, y-b/2, z, w, p, r, config_var)
      MOVE TO p2
      MOVE TO p1
      z=z-100       
      DELAY 250
  ENDFOR
END test

And when I run a simulation in Roboguide it works.
Now I'm trying to export the program to the robot controller but with no luck.
I select the Karel program (the PC file) and I load it to the robot and it all goes well.
On the ftp:\\192.168.2.27 where the robot is on the network I can see three files created - an test.PC file, and two more files with same name but different extension.
On the http:\\robot_adress in the part with other files i can see my program.
So I go to all the programs with the iPendant (I press select) and my program test.PC is not here - I can see all macros and TP programs. The Karel VARs and Karel POSNS is also empty. Can someone help me to put the Karel p code on the robot controller and that I can execute it.
Thanks!

Cosva
Logged
Lerak
Global Moderator
*****
Offline Offline

Gender: Male
Posts: 292



« Reply #1 on: July 02, 2009, 03:35:31 PM »

First, you need the Karel option loaded on the robot to be able to run Karel Program.

Next, check if the variable $karel_enb is to 1 (no sub-group) in MENU-SYSTEM-VARIABLE


Logged

If it starts well the first time, you haven't checked all !
cosva
Full Member
***
Offline Offline

Posts: 113



« Reply #2 on: July 02, 2009, 03:42:47 PM »

Thanks for your reply!!  icon_smile

First, you need the Karel option loaded on the robot to be able to run Karel Program.

How do I load the Karel option on the robot (you mean robot controller?)? Or how do I know if the option is already loaded on the robot?

Thanks!

Cosva
Logged
Lerak
Global Moderator
*****
Offline Offline

Gender: Male
Posts: 292



« Reply #3 on: July 02, 2009, 04:03:04 PM »

Go to MANU-STATUS-VERSION ID-CONFIG and look if Karel CMD Language is there.

 
Logged

If it starts well the first time, you haven't checked all !
cosva
Full Member
***
Offline Offline

Posts: 113



« Reply #4 on: July 02, 2009, 04:46:21 PM »

Will do first thing tomorrow when I get to work.
Thanks!!
Logged
cosva
Full Member
***
Offline Offline

Posts: 113



« Reply #5 on: July 03, 2009, 03:04:07 PM »


Next, check if the variable $karel_enb is to 1 (no sub-group) in MENU-SYSTEM-VARIABLE


This was the catch! Now it works just fine!! Thanks a lot! 

Cosva
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!