1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Am I writing / running KAREL the hardway?

  • Shawn Armstrong
  • April 29, 2023 at 7:10 PM
  • Thread is Unresolved
  • Shawn Armstrong
    Reactions Received
    5
    Trophies
    1
    Posts
    6
    • April 29, 2023 at 7:10 PM
    • #1

    I have a computer science background and I'm working on an interdisciplinary robotics project. Fanuc is my 2nd taste of robotics after having worked with Universal Robots.

    Fanuc_KAREL_hello_world.md
    GitHub Gist: instantly share code, notes, and snippets.
    gist.github.com

    I wrote this which outlines how I created a hello world KAREL program using a CRX-20iA/L controller on ROBOGUIDE V9.40274 with Windows11.

    It was a huge pain and I want to know, am I doing it the hard way?

    I plan to write a server / client socket implementation in the future where the robot is acting as a server executing move commands sent from a Python client and I fear this is my fate for the next few weeks.

  • MOM April 29, 2023 at 10:24 PM

    Approved the thread.
  • hermann
    Reactions Received
    407
    Trophies
    9
    Posts
    2,612
    • April 30, 2023 at 7:09 AM
    • #2

    Would say you are doing it the right way.

    You can select a Karel program direct via the select menu, if you change the system variable $karel_enb (or $enb_karel ? ) to true or may be 1.

  • rf103
    Reactions Received
    17
    Trophies
    4
    Posts
    264
    • May 1, 2023 at 12:26 PM
    • #3

    What are you trying to achieve, specifically?

    Fanuc has many interfaces to their robots, and writing Karel to implement a motion server might not be how you want to spend your time.

    Have you looked at Remote Motion Interface R912?

  • Shawn Armstrong
    Reactions Received
    5
    Trophies
    1
    Posts
    6
    • May 1, 2023 at 4:49 PM
    • #4

    I'm with a team supporting an open source testing platform designed to assist businesses with things like Q/A, R&D and maintenance. We're writing programs that interface with tools, like robots, which will abstract away programming aspects for operators.

    I've made motion servers for other manufactures in a similar way and I've been asked to attempt it with Fanuc.

  • rf103
    Reactions Received
    17
    Trophies
    4
    Posts
    264
    • May 1, 2023 at 8:08 PM
    • #5

    If you have not done so already: try the remote motion interface option.

  • rob76
    Reactions Received
    3
    Trophies
    3
    Posts
    53
    • May 3, 2023 at 12:34 PM
    • #6

    support for motion in karel was discontinued in the 90's. using karel motion today is not a good idea at all (unless you like the motion from a 30 years old motion planner). as suggested several times here, it is better to use an existing interface like remote motion interface.

  • Shawn Armstrong
    Reactions Received
    5
    Trophies
    1
    Posts
    6
    • May 3, 2023 at 6:10 PM
    • #7

    Thank you for the response. I see Remote Motion (R912) listed in Robot Options within ROBOGUIDE. I have access to the related manual and I'll spend some time looking into this today.

  • hermann
    Reactions Received
    407
    Trophies
    9
    Posts
    2,612
    • May 4, 2023 at 6:05 AM
    • #8

    You also can use Karel as socket server or client to get the positions and do the movements to that positipns with a TP program

  • Shawn Armstrong
    Reactions Received
    5
    Trophies
    1
    Posts
    6
    • May 5, 2023 at 10:50 PM
    • #9

    Wanted to report that I was able to accomplish what I set out to do strictly with KAREL and Python.

    This GUI interacts with a Python script. The script sends a message to a KAREL server. The KAREL server parses the message then moves the robot contingent on it's payload.

    236565884-c15f7dab-2ed4-4590-be3e-899b3a7b7999.gif

  • rf103
    Reactions Received
    17
    Trophies
    4
    Posts
    264
    • May 6, 2023 at 4:54 PM
    • #10

    Of course this is possible.

    There are hundreds of implementations of this.

    There is a difference between possible and recommended or best practice though.

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Tags

  • karel
  • Karel programming
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download