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

How to view Karel/.PC logic?

  • ezraseth
  • July 5, 2023 at 10:05 PM
  • Thread is Unresolved
  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 5, 2023 at 10:05 PM
    • #1

    Hello all, trying to make sense of a robot program at work. It is a slip sheet robot and its only purpose is to put a slip sheet on top of a stacked pallet before it is wrapped. I am going through the programs slowly but surely making sense of them. I het to a point where the slip sheet gets measured just before it is placed to ensure that it is centered on the top of the pallet.

    There is a call program that has arguments and contains valuable information on the calculation of the pad just before it is adjusted to be centered. The program is .PC. Is there anyway i can view the logic inside of this program to see the magic? When trying to view it only states that the program is selected. I am not currently at work so i may be able to try and "print" this tomorrow to view in notepad or something. Is there any other way? I am self taught and not very familiar at all with KAREL. Hoping someone can help! Thanks!

  • DS186
    Reactions Received
    200
    Trophies
    6
    Posts
    1,065
    • July 5, 2023 at 10:50 PM
    • #2

    To see the "magic" of a compiled *.PC file you need the KAREL source code which is a *.KL file. If you don't have the original source file it is not possible to see the code.

  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 5, 2023 at 11:28 PM
    • #3

    This is something i assume i would have to contact the original programmer to obtain?

  • DS186
    Reactions Received
    200
    Trophies
    6
    Posts
    1,065
    • July 5, 2023 at 11:36 PM
    • #4

    This would probably the best way to go in case you don't have a backup with the *.KL files.

  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 6, 2023 at 12:19 AM
    • #5

    i can take a i believe i may have a backup of the files. If not i can get one tomorrow. This would be part of an AoA backup correct? Would you be kind enough to walk me through the steps to view it or point me in the direction of a thread that explains how?

  • HawkME
    Reactions Received
    568
    Trophies
    11
    Posts
    3,268
    • July 6, 2023 at 1:31 AM
    • #6

    You won't get it with an AoA backup. A copy must be provided from the original programmer, then store it in a safe place.

  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 6, 2023 at 3:35 AM
    • #7
    Quote from HawkME

    You won't get it with an AoA backup. A copy must be provided from the original programmer, then store it in a safe place.

    So my only option is to contact the programmer? They most likely wont give this information up. There has to be another way...if not, then i guess my studies with this particular robot is over. Such a simple job that it does. Yet i wont be able to see what links the calculations together. I may try and reach out, but the chances are slim to none that i get a response...

  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 6, 2023 at 1:09 PM
    • #8

    i guess im going to try and reach out to the programmer. How exactly should i word what i need? Thanks again guys.

  • DS186
    Reactions Received
    200
    Trophies
    6
    Posts
    1,065
    • July 6, 2023 at 1:29 PM
    • #9
    Quote from ezraseth

    i guess im going to try and reach out to the programmer. How exactly should i word what i need? Thanks again guys.

    You should ask for the *.KL file (KAREL source code) for the compiled *.PC file. For example, if you have a Test.pc file running on your controller you need the Test.kl file to read the code inside.

  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 6, 2023 at 1:49 PM
    • #10
    Quote from DS186

    You should ask for the *.KL file (KAREL source code) for the compiled *.PC file. For example, if you have a Test.pc file running on your controller you need the Test.kl file to read the code inside.

    Perfect! Thank you. I hope i can reach the guys.

  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 6, 2023 at 4:52 PM
    • #11

    okay. Installer is not going to give up the source code. If someone would be so kind, how exactly would it work if they did? I would take a backup of the .PC file and open it up on my laptop using what? Roboguide? Some special KAREL software? Where would this code need to be entered in order to view this logic? Im just trying to make sense of all this. Sorry for the lack of knowledge...

  • hermann
    Reactions Received
    406
    Trophies
    9
    Posts
    2,607
    • July 6, 2023 at 4:55 PM
    • #12

    No chance. Forget it. It's just like you want to see the program/source behind excel or word.

    Edit:

    The programmer wrote the code, compiled it using roboguide and gave you the compiled code. There is no way back to the source without having the source. You can ask as often as you want, things won't change. :winking_face:

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,421
    • July 6, 2023 at 5:08 PM
    • #13

    FANUC deliberately created KAREL to not be reverse-compiled, in order to enable themselves to create high-value programs that could not be reverse-engineered or modified. Other developers also get to leverage this.

  • TitusLepic
    Reactions Received
    112
    Trophies
    6
    Posts
    442
    • July 6, 2023 at 5:19 PM
    • #14
    Quote

    If someone would be so kind, how exactly would it work if they did?

    A .kl file is a text file. You can open it in any text editor. I use notepad++

  • ROBOT_G
    Reactions Received
    23
    Trophies
    4
    Posts
    241
    • July 6, 2023 at 5:27 PM
    • #15

    Sometimes people leave the .kl files on the controller. I use to do it back in the rj and rj2 days and I used the crt port and smart term in DOS to compile the source.

  • Online
    pdl
    Reactions Received
    268
    Trophies
    9
    Posts
    1,522
    • July 6, 2023 at 7:32 PM
    • #16

    If there is nothing proprietary in the source code, I usually try to save a copy of the latest .kl file on the FR: drive for future programmers.

  • ezraseth
    Reactions Received
    3
    Trophies
    1
    Posts
    38
    • July 6, 2023 at 8:50 PM
    • #17
    Quote from TitusLepic

    A .kl file is a text file. You can open it in any text editor. I use notepad++

    again i apologize for my lack of knowledge but at what point would you enter this "code". Is it literally like a password or what? I understand the guys wont give me the code but im still confused on where this code needs to be entered or whatever. I understand it is encrypted. But how could i make a.PC file me readable to a human with some sort of code? Otherwise,as you all know, it looks like hieroglyphics...

  • R47
    Reactions Received
    11
    Trophies
    3
    Posts
    110
    • July 6, 2023 at 10:19 PM
    • #18

    ...Its not a code like an Password.. its a code like "coding".

    if necessary.. try to know what happens inside the code and rewrite it in .TP. or your own karel.

    or work around in another way.

  • DS186
    Reactions Received
    200
    Trophies
    6
    Posts
    1,065
    • July 6, 2023 at 11:16 PM
    • #19
    Quote from ezraseth

    again i apologize for my lack of knowledge but at what point would you enter this "code". Is it literally like a password or what? I understand the guys wont give me the code but im still confused on where this code needs to be entered or whatever. I understand it is encrypted. But how could i make a.PC file me readable to a human with some sort of code? Otherwise,as you all know, it looks like hieroglyphics...

    KAREL is a compiled language and is similar to Pascal. The *.KL source file must be translated into p-code before it can be executed on a robot controller. Once the file ist translated to a *.PC file it is no longer human readable. It is then kind of a "black box". Having the *.KL file is the only way to get an insight into the source code.

  • DS186
    Reactions Received
    200
    Trophies
    6
    Posts
    1,065
    • July 6, 2023 at 11:22 PM
    • #20

    And there is no way to simply translate a *.PC file back into some sort of human readable format.

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

Users Viewing This Thread

  • 3 Guests
  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