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

KL File for long program management on FANUC

  • Xav91
  • February 20, 2024 at 10:19 PM
  • Thread is Unresolved
  • Xav91
    Trophies
    1
    Posts
    1
    • February 20, 2024 at 10:19 PM
    • #1

    Hello Forum!

    I hope someone can help, I've been stock with this problem for a while and can figure it out...

    We have a M20iD/35 robot with a R30iB plus controller. We have the KAREL option, ASCII upload, and KAREL comp/Trans options loaded.

    We are using a third party software to generate the programs. Our programs are usually extremely long so the software split it into multiple LS files and also generate a KL file that is supposed to manage the upload and switch between the different files.

    The problem is that I cannot figure how to use the KL file.

    Since we are developing a customer solutions, so we are trying to avoid using roboguide to simplify the process. Thus why we added the Karel comp/Trans option (R567 & R632) as we were explained that this option would allow the controller the take the KL file and compile it directly.

    The controller won't load the KL file from a USB. Using FTP connection, I can move the file to the controller but it won't load it from there ether...

    Does anyone know that option is suppose to actually allow to do this?

    If this is not the solution, does anyone know how to turn the KL File into a PC file without using roboguide?

  • Nation February 20, 2024 at 11:07 PM

    Approved the thread.
  • Nation
    Typical Robot Error
    Reactions Received
    547
    Trophies
    9
    Posts
    1,925
    • February 20, 2024 at 11:20 PM
    • #2

    I don't have any experience with the Karel compliation process on the controller, but you could rewrite the Karel routine to take arguments from a TP program.

    I did that on a robot that had humongous blending paths.

    Here is an example of the tp program calling the Karel programs:

    Code
    :  !Download Part 1 Programs. ;
    :  CALL PROGDOWNLOAD('part1\*.tp')
    *** all the various calls and logic here***
    :  !Delete Part 1 Programs from ;
    :  ! controller. ;
    :  CALL PROGDELETE ;

    Progdelete in this case would use a list created during the program download to delete programs.

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

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

  • Online
    PnsStarter
    Reactions Received
    93
    Trophies
    6
    Posts
    332
    • February 21, 2024 at 9:26 AM
    • #3

    Hi Xav91

    This is a rare combination of features and workflow (nowadays).

    The programs (kl source) still have to be translated on the controller. That's why you can't load them "directly".

    There are several ways to translate the programs on the controller:

    (check the karel manual)

    Via KCL or with the help of another Karel program:

    Code
     KCL> TRANSLATE testprog DISPLAY LIST

    or

    Code
    Karel builtin: TRANSLATE(file_spec, listing_sw, status)
    Code
    OPEN FILE util_file ('RW', 'hello.kl')
    WRITE util_file ('PROGRAM hello', CR)
    WRITE util_file ('%NOLOCKGROUP', CR)
    WRITE util_file ('BEGIN', CR)
    WRITE util_file (' WRITE (''hello world'', CR)', CR)
    WRITE util_file ('END hello', CR)
    CLOSE FILE util_file
    TRANSLATE('hello', TRUE, status)
    IF status = 0 THEN
    LOAD('hello.pc', 0, status)
    ENDIF
    IF status = 0 THEN
    CALL_PROG('hello', prog_index)
    ENDIF
    Display More


    In general, I would recommend loading the programs automatically on the controller(FTP script) and having another ls/tp program created via script. This should replace the Karel program and call the individual programs. Since you know the Prognames during or befoer upload, generating another LS Prog is not a big task.

    There are more solutions, like calling your progs indirect with SR's


    best

    Backdate/TP-Tools: A small collection of tools that simplify the commissioning and programming of Fanuc robots. (github.com)

  • pdl
    Reactions Received
    270
    Trophies
    9
    Posts
    1,541
    • February 21, 2024 at 5:37 PM
    • #4

    Can you post a copy of the KL?

  • ROBOT_G
    Reactions Received
    23
    Trophies
    4
    Posts
    241
    • February 23, 2024 at 7:30 PM
    • #5

    You can't load a KL FILE you have to copy it to F-Rom then use the kcl prompt to translate it using ktrans filename. I haven't done this since RJ2 and we used the CRT port on the op panel board. On the computer end I used a vt 220 terminal emulator to get the kcl>

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 compilator
  • KL
  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