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

Load TP Program from Memory Card automatically using Karel

  • darkknight1499
  • October 7, 2022 at 12:36 PM
  • Thread is Resolved
  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • October 7, 2022 at 12:36 PM
    • #1

    Hi,

    I tried writing the karel code but it didn't compile and kept giving errors.

    Can someone help me how to write the proper karel code for this.

    Images

    • IMG-20221007-WA0031.jpg
      • 235.85 kB
      • 1,920 × 1,080
      • 49
  • hermann
    Reactions Received
    404
    Trophies
    9
    Posts
    2,595
    • October 7, 2022 at 2:13 PM
    • #2

    You should provide your faulty code, so someone can correct it. That's easier than writing whole code from scratch.

  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • October 7, 2022 at 6:03 PM
    • #3

    I've tried the following code snippet but it didn't work.

    Please guide me to correct the code.

    Code
    EXT_LOAD(list_name)
    [in] list_name : STRING
    Code
    PROGRAM EXT_LOAD
    EXT_LOAD(list_name)
    [in] list_name : STRING
    END EXT_LOAD
  • hermann
    Reactions Received
    404
    Trophies
    9
    Posts
    2,595
    • October 8, 2022 at 7:16 AM
    • #4
    Code
    PROGRAM EXT_LOAD1
    EXT_LOAD('MC:\list')
    END EXT_LOAD1

    This line with [in] is some kind of Syntax describing. Always use the part from Example. May be the slash has to be a backslash.

    As far as I understand the doc, there must exist a file on MC: with name 'list' that contains the names of TP programs that will be loaded.

    Think it's not a good idea to name the own procedure the same name of the external routine.

    Edit: forgotten ':' after MC. And changed / by \

  • DS186
    Reactions Received
    198
    Trophies
    6
    Posts
    1,049
    • October 8, 2022 at 9:08 AM
    • #5

    As hermann already suggested, use :\ instead of / in your code. This is often a problem in FANUC manuals that the backslash is not correctly translated.

  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • December 8, 2022 at 9:41 AM
    • #6

    hermann and DS186 , I still haven't been able to create the karel code to load the tp program. I even went to fanuc engineers for help but nothing worked out.

    I'm still getting errors while creating the karel file.

    I've attached the image of the error I'm getting and the code I've written.

    Images

    • IMG_20221208_140939.jpg
      • 547.29 kB
      • 1,920 × 1,081
      • 27
  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • December 8, 2022 at 9:50 AM
    • #7

    The referance for the code is available in manual (B-83274EN/02) "System Design Tool Operator's Manual" Chapter 5.

    I'm attaching the screenshot so you guys can have a look at it and see if I'm missing any thing or doing something wrong.

    Images

    • manual snip_021959.jpg
      • 267.51 kB
      • 1,920 × 983
      • 20
  • DS186
    Reactions Received
    198
    Trophies
    6
    Posts
    1,049
    • December 8, 2022 at 9:58 AM
    • #8
    Quote from darkknight1499

    hermann and DS186 , I still haven't been able to create the karel code to load the tp program. I even went to fanuc engineers for help but nothing worked out.

    I'm still getting errors while creating the karel file.

    I've attached the image of the error I'm getting and the code I've written.

    Read the message from the KTRANS window. Your code is missing a BEGIN statement after the line PROGRAM EXT_LOAD1.

  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • December 8, 2022 at 10:06 AM
    • #9
    Quote from DS186

    Read the message from the KTRANS window. Your code is missing a BEGIN statement after the line PROGRAM EXT_LOAD1.

    I've tried that but then it gives another error. And the manual hasn't specified to use BEGIN in that code.

    Images

    • 16704903509081032271177200145164.jpg
      • 434.19 kB
      • 1,600 × 1,200
      • 18
  • DS186
    Reactions Received
    198
    Trophies
    6
    Posts
    1,049
    • December 8, 2022 at 10:16 AM
    • #10

    PROGRAM EXT_LOAD1

    BEGIN

    EXT_LOAD('MC:\LIST')

    END EXT_LOAD1

  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • December 8, 2022 at 10:26 AM
    • #11

    Still the same error.

    Images

    • 16704915412996369261560735684352.jpg
      • 399.57 kB
      • 1,600 × 1,200
      • 18
  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,901
    • December 8, 2022 at 4:33 PM
    • #12

    EXT_LOAD isn't a karel built in. I would use LOAD. Also, you will need the file extension if you want to load something ('MC:\list.tp' for example).

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

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

  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • December 8, 2022 at 4:37 PM
    • #13
    Quote from Nation

    EXT_LOAD isn't a karel built in. I would use LOAD. Also, you will need the file extension if you want to load something ('MC:\list.tp' for example).

    I'm attaching the example code fanuc have given in manual.

    The file list is supposed to be made in a .DT file.

    Images

    • manual snip_021959.jpg
      • 267.43 kB
      • 1,920 × 983
      • 23
  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • December 8, 2022 at 5:12 PM
    • #14

    You're missing the "CALL"

  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • December 8, 2022 at 5:30 PM
    • #15

    Also, here's a related thread you might find helpful (or confusing): RE: Karel Program

  • Nation
    Typical Robot Error
    Reactions Received
    523
    Trophies
    9
    Posts
    1,901
    • December 8, 2022 at 7:02 PM
    • #16

    That is a call from a teach pendant program to a compiled Karel program. While you can call other Karel programs from Karel, I don't think that is the intention here.

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

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

  • hermann
    Reactions Received
    404
    Trophies
    9
    Posts
    2,595
    • December 9, 2022 at 11:09 AM
    • #17

    RTFM. You can call those System Design Tool functions only from TP programs, not from Karel programs. May be it is possible, and I haven't found it, but all examples in manual are with TP programs:

    Addendum:

    You can see the source code of exactly the function of EXT_LOAD in the 'KAREL Function OPERATOR'S MANUAL' in the chapter "4.4.2 Save,Delete, Load the Program Based on the List."

    From there on you can build your own karel procedure according to your needs.

  • R47
    Reactions Received
    11
    Trophies
    3
    Posts
    109
    • December 9, 2022 at 3:02 PM
    • #18

    hi Darkknight1944,

    This should work with Karel try:

    LOAD('UD1:example.TP',1,status)

    change "UD1" to your path "MD" or "UT1"...

  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • December 10, 2022 at 1:18 PM
    • #19

    Thanks hermann now it is clear.

  • darkknight1499
    Reactions Received
    2
    Trophies
    2
    Posts
    30
    • December 10, 2022 at 1:27 PM
    • #20
    Quote from R47

    hi Darkknight1944,

    This should work with Karel try:

    LOAD('UD1:example.TP',1,status)

    change "UD1" to your path "MD" or "UT1"...

    Hii R47, I tried your method it worked very straight forward for me.👍🏻

    I'm writing the whole code below so it is simpler if anybody look for it in future.

    Code
    PROGRAM Auto_Load
    
    BEGIN
    LOAD('MC:FILE.TP', 1, 1)
    
    END Auto_Load

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

  • Fanuc
  • karel
  • Rj3ib
  • TP programming
  • Karel programming
  • load program
  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